From patchwork Fri Nov 21 10:41:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 413003 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 5A34F140180 for ; Fri, 21 Nov 2014 21:48:35 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751857AbaKUKsV (ORCPT ); Fri, 21 Nov 2014 05:48:21 -0500 Received: from mout.perfora.net ([74.208.4.196]:52494 "EHLO mout.perfora.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751128AbaKUKsU (ORCPT ); Fri, 21 Nov 2014 05:48:20 -0500 X-Greylist: delayed 327 seconds by postgrey-1.27 at vger.kernel.org; Fri, 21 Nov 2014 05:48:19 EST Received: from localhost.localdomain (190-191.5-85.cust.bluewin.ch [85.5.191.190]) by mrelay.perfora.net (node=mreueus002) with ESMTP (Nemesis) id 0M2v8i-1Y7upp48Fa-00sdyd; Fri, 21 Nov 2014 11:42:08 +0100 From: Marcel Ziswiler To: swarren@wwwdotorg.org, thierry.reding@gmail.com Cc: linux@arm.linux.org.uk, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, stefan@agner.ch, Marcel Ziswiler Subject: [PATCH] ARM: tegra: colibri t30: fix on-module ethernet Date: Fri, 21 Nov 2014 11:41:41 +0100 Message-Id: X-Mailer: git-send-email 1.9.3 X-Provags-ID: V02:K0:x06M1XxNwJ9pDQvX7Ej3AWug9iFoV03dTcTZ8VXs+CU Uqi8gRnDbFubxK5yAnhmd72v/2/Ci81nR75zm6tOiYC2vBE1dk 4+dvX2ilZIn+qGN439NXpFTw1uP187HKhyYO8oHvrGaqVZUX73 Oq8tk/aUd7sAj3qxHXtSSP4HNTYHBuGmG50TxrczdB/XWXYug5 QzbjcRtVENnj3LKJ8VTjpEMuQQEIGorz7O+qnZLndRXWQr9naS FEE1fV7DnMD4UdlM6oFgS4wHlTQSS4GmkqqJBTPyDZLsJHOROz 63tXWJFtZXMl0Cpr28Bkmjmr93CFouU8MgEkuurV/o4NYYlHdX o0STLgGMag5exfm0PiuK9N7eOsjPDeqoOSrqw+yS7Ns+vThRXW FcimfD414Vn/TFVqzaav1/29HgRIs+5G/MKqGtE/P4Nx+WUqng 0e0MvGSjsDuGFx8fOIHckGMlzag== X-UI-Out-Filterresults: notjunk:1; Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org Looks like Ethernet only ever worked if U-Boot properly brought it up as both the reset as well as the VBUS lines were not actively handled in-kernel. This patch fixes this by just pulling up the reset GPIO and properly enabling VBUS via a GPIO enabled fixed regulator VBUS supply. Signed-off-by: Marcel Ziswiler --- Don't know whether this one could still make it into the current RC cycle as it is clearly a bug fix. arch/arm/boot/dts/tegra30-colibri.dtsi | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot/dts/tegra30-colibri.dtsi b/arch/arm/boot/dts/tegra30-colibri.dtsi index c4ed1be..ddbdb77 100644 --- a/arch/arm/boot/dts/tegra30-colibri.dtsi +++ b/arch/arm/boot/dts/tegra30-colibri.dtsi @@ -167,6 +167,22 @@ nvidia,pull = ; nvidia,tristate = ; }; + + /* LAN_RESET# */ + pex_l0_prsnt_n_pdd0 { + nvidia,pins = "pex_l0_prsnt_n_pdd0"; + nvidia,function = "rsvd3"; + nvidia,pull = ; + nvidia,tristate = ; + }; + + /* LAN_V_BUS */ + pex_l0_clkreq_n_pdd2 { + nvidia,pins = "pex_l0_clkreq_n_pdd2"; + nvidia,function = "rsvd3"; + nvidia,pull = ; + nvidia,tristate = ; + }; }; }; @@ -345,6 +361,7 @@ usb-phy@7d004000 { status = "okay"; nvidia,is-wired = <1>; + vbus-supply = <&lan_vbus_reg>; }; clocks { @@ -382,5 +399,17 @@ regulator-max-microvolt = <5000000>; regulator-always-on; }; + + /* LAN_V_BUS */ + lan_vbus_reg: regulator@102 { + compatible = "regulator-fixed"; + reg = <102>; + regulator-name = "lan_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio TEGRA_GPIO(DD, 2) GPIO_ACTIVE_HIGH>; + enable-active-high; + vin-supply = <&charge_pump_5v0_reg>; + }; }; };