From patchwork Fri May 18 12:56:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jonathan A. Kollasch" X-Patchwork-Id: 916291 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=kollasch.net Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40nSq14Mt7z9s3B for ; Fri, 18 May 2018 22:56:28 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 6585CC21FA0; Fri, 18 May 2018 12:56:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id E3881C21EBA; Fri, 18 May 2018 12:56:18 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 19040C21EBA; Fri, 18 May 2018 12:56:16 +0000 (UTC) Received: from poghril.kollasch.net (poghril.kollasch.net [71.19.157.95]) by lists.denx.de (Postfix) with ESMTPS id 5F726C21EAE for ; Fri, 18 May 2018 12:56:16 +0000 (UTC) Received: from mail.kollasch.net (q.kollasch.net [168.103.54.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.kollasch.net", Issuer "kollasch.net postmaster CA" (not verified)) by poghril.kollasch.net (Postfix) with ESMTPS id 7D02223A; Fri, 18 May 2018 12:56:13 +0000 (UTC) (envelope-from jakllsch@kollasch.net) Received: from terminus.kollasch.net (terminus.kollasch.net [IPv6:2001:470:c003:410:3697:f6ff:fe00:7027]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jakllsch@KOLLASCH.NET) by mail.kollasch.net (Postfix) with ESMTPSA id C63861DC91; Fri, 18 May 2018 12:56:11 +0000 (UTC) (envelope-from jakllsch@kollasch.net) From: "Jonathan A. Kollasch" To: u-boot@lists.denx.de Date: Fri, 18 May 2018 07:56:07 -0500 Message-Id: <20180518125607.28292-1-jakllsch@kollasch.net> X-Mailer: git-send-email 2.11.0 Cc: Maxime Ripard , Antony Antony Subject: [U-Boot] [PATCH] arm64: dts: allwinner: h5: NanoPi NEO Plus2 : add EMAC support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" add arm64 H5 dwmac-sun8i support for this board commit arm64: dts: allwinner: h5: NanoPi NEO Plus2 : add EMAC support ("27d7f929702739c186e72a4dcd255e0faa3beefc") from torvalds/linux Signed-off-by: Jonathan A. Kollasch Signed-off-by: Antony Antony --- arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts index f1406c224b..aadc087775 100644 --- a/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts +++ b/arch/arm/dts/sun50i-h5-nanopi-neo-plus2.dts @@ -52,6 +52,7 @@ compatible = "friendlyarm,nanopi-neo-plus2", "allwinner,sun50i-h5"; aliases { + ethernet0 = &emac; serial0 = &uart0; }; @@ -71,6 +72,22 @@ status = "okay"; }; +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&emac_rgmii_pins>; + phy-supply = <®_gmac_3v3>; + phy-handle = <&ext_rgmii_phy>; + phy-mode = "rgmii"; + status = "okay"; +}; + +&external_mdio { + ext_rgmii_phy: ethernet-phy@7 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <7>; + }; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>;