From patchwork Wed Feb 14 09:30:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 128326 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp406868ljc; Wed, 14 Feb 2018 01:30:37 -0800 (PST) X-Google-Smtp-Source: AH8x2255iQKLRoMLXb7DRlF6Skkid0kSa5SLIARPBhs+hYpiAt75/FdwtSpMLsSAYRpXvtq8SNf7 X-Received: by 10.101.80.193 with SMTP id s1mr3445118pgp.417.1518600637020; Wed, 14 Feb 2018 01:30:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518600637; cv=none; d=google.com; s=arc-20160816; b=pJaZIZs34jMLjbyja7dlyqnf9/KzqY9cwMjcxW/92pS2r78faWjcJMzBGE/IzDEUse YaEemxAoK5FapLhbcLgu/L+cruUwUc1qp6rmLJA95MF2OX40MHlKqBKZj/9j5BV8IL4D q2ifHJF7w045mrj51HaQ+lUPO6H8TxQg/MQS/jsxKp6i8WhNBgLKGs9lJ4+gIotBHo+9 hQD6HPf7ZqL2KXuSS550TrFvblA0sgbnfXg/H2ZUU0rklpahaKNnVWH5zgULkj2HQ6zO zO9ZsybvAfvr1TzgK1j9qzYK/JK+RMkDQRvRpkIUyrwDajmDS76ps1fyPbVZ03Yq/ivp gmOA== 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=73FxUb4ZqGYu686lumyLeDS8mPcgbKEOECo4MAbv5FQ=; b=GmPt5OOQFMjl6kR6aRx6z8918G8PGYbUbeAspXg5NhzwA5AagUmtOYTphpxRv8t5gX nd7kZ0S2w7YJFtJfabM84ElJzkHbFTetOCfX2AlcZieujagFcJ82mSVcNnPBUrwlEoGN 3SsqYy3XpXu0PnYsVaTyXHFCICiPzUIlo8YgyNKOTofMUROmmk4+FDV5DtS3n8fD+wjO wg9jF5ieYucStrOq9nXAL1n1+SuLiTooFr2qRuBJjz1QtzG7g8Gv+wKWfinMOGllJuq5 yVpgUWU8sRSKPmcEEBe8YXhVZaKccKnLHxMBnh5saLXxl+GTgqrFkt6aou5J505B4FFZ MJJw== 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 g4-v6si2835260plp.818.2018.02.14.01.30.36; Wed, 14 Feb 2018 01:30:37 -0800 (PST) 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 S966446AbeBNJag (ORCPT + 6 others); Wed, 14 Feb 2018 04:30:36 -0500 Received: from mx.socionext.com ([202.248.49.38]:32769 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966688AbeBNJaf (ORCPT ); Wed, 14 Feb 2018 04:30:35 -0500 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 14 Feb 2018 18:30:34 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id B2D5A180B60; Wed, 14 Feb 2018 18:30:34 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 14 Feb 2018 18:30:57 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 4A9ED1A1704; Wed, 14 Feb 2018 18:30:34 +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 v2 2/2] arm64: dts: uniphier: add AVE ethernet node Date: Wed, 14 Feb 2018 18:30:29 +0900 Message-Id: <1518600629-14317-3-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518600629-14317-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1518600629-14317-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 LD11 and LD20 SoCs and the boards. Signed-off-by: Kunihiko Hayashi Signed-off-by: Jassi Brar --- arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts | 11 +++++++++++ arch/arm64/boot/dts/socionext/uniphier-ld11-ref.dts | 11 +++++++++++ arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi | 16 ++++++++++++++++ arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts | 13 +++++++++++++ arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts | 11 +++++++++++ arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi | 18 ++++++++++++++++++ 6 files changed, 80 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-ld11-global.dts b/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts index 2452b22..801997a 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts +++ b/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts @@ -72,3 +72,14 @@ &nand { status = "okay"; }; + +ð { + status = "okay"; + phy-handle = <ðphy>; +}; + +&mdio { + ethphy: ethphy@1 { + reg = <1>; + }; +}; diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld11-ref.dts b/arch/arm64/boot/dts/socionext/uniphier-ld11-ref.dts index 6bdefb2..db207e4 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld11-ref.dts +++ b/arch/arm64/boot/dts/socionext/uniphier-ld11-ref.dts @@ -70,3 +70,14 @@ &usb2 { status = "okay"; }; + +ð { + status = "okay"; + phy-handle = <ðphy>; +}; + +&mdio { + ethphy: ethphy@1 { + reg = <1>; + }; +}; diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi b/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi index 1c63d0a..2773cfa 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi @@ -456,6 +456,22 @@ }; }; + eth: ethernet@65000000 { + compatible = "socionext,uniphier-ld11-ave4"; + status = "disabled"; + reg = <0x65000000 0x8500>; + interrupts = <0 66 4>; + clocks = <&sys_clk 6>; + resets = <&sys_rst 6>; + phy-mode = "rmii"; + local-mac-address = [00 00 00 00 00 00]; + + mdio: mdio { + #address-cells = <1>; + #size-cells = <0>; + }; + }; + nand: nand@68000000 { compatible = "socionext,uniphier-denali-nand-v5b"; status = "disabled"; diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts b/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts index fc2bc9d..be95598 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts +++ b/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts @@ -54,3 +54,16 @@ &nand { status = "okay"; }; + +ð { + status = "okay"; + phy-mode = "rmii"; + pinctrl-0 = <&pinctrl_ether_rmii>; + phy-handle = <ðphy>; +}; + +&mdio { + ethphy: ethphy@1 { + reg = <1>; + }; +}; diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts b/arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts index 254d679..184a684 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts +++ b/arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts @@ -58,3 +58,14 @@ &i2c0 { status = "okay"; }; + +ð { + status = "okay"; + phy-handle = <ðphy>; +}; + +&mdio { + ethphy: ethphy@0 { + reg = <0>; + }; +}; diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi index 5c81070..5652c59 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi @@ -512,6 +512,24 @@ }; }; + eth: ethernet@65000000 { + compatible = "socionext,uniphier-ld20-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]; + + mdio: mdio { + #address-cells = <1>; + #size-cells = <0>; + }; + }; + nand: nand@68000000 { compatible = "socionext,uniphier-denali-nand-v5b"; status = "disabled";