From patchwork Fri Mar 24 18:24:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Tomsich X-Patchwork-Id: 743337 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3vqX2m6By5z9s3w for ; Sat, 25 Mar 2017 05:27:28 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 7FF32C21C38; Fri, 24 Mar 2017 18:26:45 +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 4B310C21C79; Fri, 24 Mar 2017 18:24:57 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 58E28C21C6B; Fri, 24 Mar 2017 18:24:44 +0000 (UTC) Received: from mail.theobroma-systems.com (vegas.theobroma-systems.com [144.76.126.164]) by lists.denx.de (Postfix) with ESMTPS id 6A768C21C2C for ; Fri, 24 Mar 2017 18:24:41 +0000 (UTC) Received: from [86.59.122.178] (port=58172 helo=android.lan) by mail.theobroma-systems.com with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1crTt9-000614-4A; Fri, 24 Mar 2017 19:24:39 +0100 From: Philipp Tomsich To: u-boot@lists.denx.de Date: Fri, 24 Mar 2017 19:24:28 +0100 Message-Id: <1490379869-47505-7-git-send-email-philipp.tomsich@theobroma-systems.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1490379869-47505-1-git-send-email-philipp.tomsich@theobroma-systems.com> References: <1490379869-47505-1-git-send-email-philipp.tomsich@theobroma-systems.com> Cc: Klaus Goger , Philipp Tomsich , MengDongyang Subject: [U-Boot] [PATCH 6/6] dts: rk3399-puma: add gmac for the RK3399-Q7 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" This change enables the Gigabit Ethernet support on the RK3399-Q7. X-AffectedPlatforms: RK3399-Q7 Signed-off-by: Philipp Tomsich Acked-by: Simon Glass --- arch/arm/dts/rk3399-puma.dts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/dts/rk3399-puma.dts b/arch/arm/dts/rk3399-puma.dts index 31f9c3d..01cb3fa 100644 --- a/arch/arm/dts/rk3399-puma.dts +++ b/arch/arm/dts/rk3399-puma.dts @@ -50,6 +50,20 @@ regulator-name = "vcc5v0_host"; gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>; }; + + clkin_gmac: external-gmac-clock { + compatible = "fixed-clock"; + clock-frequency = <125000000>; + clock-output-names = "clkin_gmac"; + #clock-cells = <0>; + }; + + vcc_phy: vcc-phy-regulator { + compatible = "regulator-fixed"; + regulator-name = "vcc_phy"; + regulator-always-on; + regulator-boot-on; + }; }; &emmc_phy { @@ -122,3 +136,19 @@ }; }; }; + +&gmac { + phy-supply = <&vcc_phy>; + phy-mode = "rgmii"; + clock_in_out = "input"; + snps,reset-gpio = <&gpio3 16 GPIO_ACTIVE_LOW>; + snps,reset-active-low; + snps,reset-delays-us = <0 10000 50000>; + assigned-clocks = <&cru SCLK_RMII_SRC>; + assigned-clock-parents = <&clkin_gmac>; + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; + tx_delay = <0x10>; + rx_delay = <0x10>; + status = "okay"; +};