From patchwork Tue Mar 27 10:32:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 132471 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp4898299ljb; Tue, 27 Mar 2018 03:32:58 -0700 (PDT) X-Google-Smtp-Source: AG47ELtE2LKU3CcgYzFtjRwHdPiXmvDM/Q5B0E69QRQPypVLc3pF1JjG0qtYGtOXN/TqeenAAoIy X-Received: by 2002:a17:902:988c:: with SMTP id s12-v6mr29181395plp.318.1522146777999; Tue, 27 Mar 2018 03:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522146777; cv=none; d=google.com; s=arc-20160816; b=q+4eoVR+AXu21wH0OrwGAcIZkstgg/zaA+iWsGKxNEpvnSYbKVSo/gjvxt9x4b3ftj 8aHk8QK46o+iPTIr+SH7V+od/ch0jrRJb0uXVOf5AZRfmFc+O92Rh73bzb2sI5Kbo+1m goTn4aD8fqoGVRvZq7oDkeQcJ3PyDXmV+Jiyxq2/ui62G8/Kc/Ynn2ycrXE1gTdewi3T TM/Bj/VSC27NoHOsQmZ8Ng/vCxr5n2Uy+r2w/onxBtJ7ODqP0kAGYW3j+C+FsmoUKTrt XNSLZrqSl6QzSBuD/jCbbi1Aca9D6mP1m2ZSVft8LWI/xzLByJHVOp4pzWUoXDqOl4zD OZNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=rbjUJuR71yZ0mi8/B5dv/hy9BkipZhevN0z0BjgyLp8=; b=ETOKwEZFzbiXue9r5TRHAzxoKDpEJgKBunzmOgiw1isjD1ya5rWfJx6p72mLRTZAOU oDjCEfQ0kITdNm/RJ/Gh09Psrkxs8GQvfpL4DElg0vRp9SVik0V/AmC2o+y7eqFpc6sN lXsBPm4T9PcRc8MLvBogv43syBD6DdC8aZ/CwgF3k1dCB/qwIx/nN83erq/8Kl0rHqdV suSDh+NPlioC2eTIoxGVEXMzw/TW9TnfEzHZjpR05KCpeDoc72ZHnKD1VLsV0TyCDxWl 5Xq/CDpN5nyQdOEEX25c3eQ6MvlcOHpzBrM66IGx6ChhzRxkDFYaW4phEGeUIQDD4Fg2 saDQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12si680786pgr.256.2018.03.27.03.32.57; Tue, 27 Mar 2018 03:32:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751124AbeC0Kc5 (ORCPT + 6 others); Tue, 27 Mar 2018 06:32:57 -0400 Received: from mx.socionext.com ([202.248.49.38]:4959 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751066AbeC0Kc4 (ORCPT ); Tue, 27 Mar 2018 06:32:56 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 27 Mar 2018 19:32:55 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id C189161885; Tue, 27 Mar 2018 19:32:55 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 27 Mar 2018 19:32:55 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 79E391A159F; Tue, 27 Mar 2018 19:32:55 +0900 (JST) From: Kunihiko Hayashi To: Masahiro Yamada , linux-arm-kernel@lists.infradead.org Cc: Rob Herring , Mark Rutland , devicetree@vger.kernel.org, Masami Hiramatsu , Jassi Brar , Kunihiko Hayashi Subject: [PATCH 2/2] arm64: dts: uniphier: add ethernet node for PXs3 Date: Tue, 27 Mar 2018 19:32:46 +0900 Message-Id: <1522146766-14435-3-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522146766-14435-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1522146766-14435-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add nodes of the AVE ethernet controller for PXs3 and the boards. This SoC has two controllers. Signed-off-by: Kunihiko Hayashi --- .../arm64/boot/dts/socionext/uniphier-pxs3-ref.dts | 22 +++++++++++++ arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi | 36 ++++++++++++++++++++++ 2 files changed, 58 insertions(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts b/arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts index 3c71087..f9fa61d 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts +++ b/arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts @@ -80,3 +80,25 @@ &nand { status = "okay"; }; + +ð0 { + status = "okay"; + phy-handle = <ðphy0>; +}; + +ð1 { + status = "okay"; + phy-handle = <ðphy1>; +}; + +&mdio0 { + ethphy0: ethphy@0 { + reg = <0>; + }; +}; + +&mdio1 { + ethphy1: ethphy@0 { + reg = <0>; + }; +}; diff --git a/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi b/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi index 234fc58..0a5a7c2 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi @@ -407,6 +407,42 @@ }; }; + eth0: ethernet@65000000 { + compatible = "socionext,uniphier-pxs3-ave4"; + status = "disabled"; + reg = <0x65000000 0x8500>; + interrupts = <0 66 4>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ether_rgmii>; + clocks = <&sys_clk 6>; + resets = <&sys_rst 6>; + phy-mode = "rgmii"; + local-mac-address = [00 00 00 00 00 00]; + + mdio0: mdio { + #address-cells = <1>; + #size-cells = <0>; + }; + }; + + eth1: ethernet@65200000 { + compatible = "socionext,uniphier-pxs3-ave4"; + status = "disabled"; + reg = <0x65200000 0x8500>; + interrupts = <0 67 4>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ether1_rgmii>; + clocks = <&sys_clk 7>; + resets = <&sys_rst 7>; + phy-mode = "rgmii"; + local-mac-address = [00 00 00 00 00 00]; + + mdio1: mdio { + #address-cells = <1>; + #size-cells = <0>; + }; + }; + nand: nand@68000000 { compatible = "socionext,uniphier-denali-nand-v5b"; status = "disabled";