From patchwork Tue Mar 27 10:32:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 132470 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp4898258ljb; Tue, 27 Mar 2018 03:32:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx48141L6PTL7NqVbWUln9m4n3fyto8kAwogNF+7QmdL0Hfi9VVkd8gxYT5usfu16fTbV4+d3 X-Received: by 10.98.17.85 with SMTP id z82mr611633pfi.206.1522146776046; Tue, 27 Mar 2018 03:32:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522146776; cv=none; d=google.com; s=arc-20160816; b=Ro2Bqp11jyt+7cEi6cStYXVSelyIS01UFZFCL6AvXsaGIQgoZ67ZG9Jm6KjtWzm53J YqzpUU8mScMgJji9GL/86LtLRrBbZzZtrhQqs7B2yt/O18JKAbdE8gNvO46qBHR9SqIA EkMceedQ+0IPUIR8l17m+KLgbs5uK5+xj4x7ko9U6ZSPmRlE9ULrbr4kE9XfrcCB0AgD C/W1Gw/oE4RNSCbaWm1tlIUdE7N2hr5xrcwVrYQdWo8a6OnJZ+Mw5oiJs9eNsMuQWoeB TAA5lqutB9WbVHP1M6GLcL3d9O4Lx8NbdijWdlM1PMpaLU/6uBhg4gb70f1GZMKJN0ti 85rg== 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=DgPSq0QzNdguNO2UQgzyLvFTZs1ylxp8I+IUK+xI+1A=; b=Enh4Wkjn1OkovoPWfMq0yN87cGR0i90vLs8aCivpWua2wIuEWIz9O2CCZVhOWhV9Da UXqxVa98+dhFihYm113HWMsQGYtsLBXswX0QCsI8gJiNVTd53r5ApxJkiYnnFXDYYZtX hcmrucxIL5swak3z5IgYDaelDA723nvPPJwlQd5flsSWYdTq4lfVQwlgWqYhAcWZv2jQ SWfLf9hamznHE9b0SrLWM9LVVpzSfvcBTwAcaTYdl/By9dKxS8LwfWUXpwTLQ46vNDVx iWkvGiLtDXKvS8f9LFImRi6SGu06dj5eyO7FpMMeFPiXP2LpWlCj3/NQShHT7xh+Clhy 0nkQ== 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.55; Tue, 27 Mar 2018 03:32:56 -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 S1751086AbeC0Kcz (ORCPT + 6 others); Tue, 27 Mar 2018 06:32:55 -0400 Received: from mx.socionext.com ([202.248.49.38]:4952 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751066AbeC0Kcy (ORCPT ); Tue, 27 Mar 2018 06:32:54 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 27 Mar 2018 19:32:54 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 432FC180C0A; Tue, 27 Mar 2018 19:32:54 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 27 Mar 2018 19:32:54 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id D3CC21A159F; Tue, 27 Mar 2018 19:32:53 +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 1/2] ARM: dts: uniphier: add pinctrl groups of ethernet for second instance Date: Tue, 27 Mar 2018 19:32:45 +0900 Message-Id: <1522146766-14435-2-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 pinctrl groups of ethernet, such as "ether1_rgmii" and "ether1_rmii". These are used for second ethernet instance. Signed-off-by: Kunihiko Hayashi --- arch/arm/boot/dts/uniphier-pinctrl.dtsi | 10 ++++++++++ 1 file changed, 10 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/arm/boot/dts/uniphier-pinctrl.dtsi b/arch/arm/boot/dts/uniphier-pinctrl.dtsi index de481c3..c094377 100644 --- a/arch/arm/boot/dts/uniphier-pinctrl.dtsi +++ b/arch/arm/boot/dts/uniphier-pinctrl.dtsi @@ -33,6 +33,16 @@ function = "ether_rmii"; }; + pinctrl_ether1_rgmii: ether1-rgmii { + groups = "ether1_rgmii"; + function = "ether1_rgmii"; + }; + + pinctrl_ether1_rmii: ether1-rmii { + groups = "ether1_rmii"; + function = "ether1_rmii"; + }; + pinctrl_i2c0: i2c0 { groups = "i2c0"; function = "i2c0"; 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";