From patchwork Thu Dec 19 16:06:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 3383451 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B57E09F375 for ; Thu, 19 Dec 2013 16:51:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9739120687 for ; Thu, 19 Dec 2013 16:51:11 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C795C20694 for ; Thu, 19 Dec 2013 16:51:06 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VtgBz-0007hi-47; Thu, 19 Dec 2013 16:11:21 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VtgB0-0006cL-4S; Thu, 19 Dec 2013 16:10:18 +0000 Received: from mail-bk0-x22a.google.com ([2a00:1450:4008:c01::22a]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vtg9I-0006OK-MC for linux-arm-kernel@lists.infradead.org; Thu, 19 Dec 2013 16:08:33 +0000 Received: by mail-bk0-f42.google.com with SMTP id w11so794244bkz.1 for ; Thu, 19 Dec 2013 08:08:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KMhSIiWTahUriOykNqQD2PPmmmqV4U3OKX9QSKPRT38=; b=ltMUouKbCETd59YxDk04oGGS97PNX4HIeY7BZ6bDiK1nCW6USODtqE20cMPyXC6orR h6/57HXtQp/QG8NffcdJegJWZuvyvv7v+AM2YiZifevZjqCpgtXqOGP7f6twkhEPEcsm dZFvSGapks2zN8Pf6FXoMPQCzLW3QzelkSoOQSnhCLR6tO0T+Yytl9q0QImp649TzreU 15x6CURRZh1jOxQQpqMb1dJnWqppR/3PFv1J0qffh3VvDOzpESNeZj7A4GAt5Abb/pD0 9AxbHE8F2uZmnYN7C968CfALRekFjfPu6M17Fd9fvgRwnrMfoyB8ajcO6+3jvDVEtoAt oM2w== X-Received: by 10.205.65.132 with SMTP id xm4mr1823603bkb.1.1387469291015; Thu, 19 Dec 2013 08:08:11 -0800 (PST) Received: from localhost (port-10467.pppoe.wtnet.de. [84.46.41.12]) by mx.google.com with ESMTPSA id s9sm3934253bkg.15.2013.12.19.08.08.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Dec 2013 08:08:09 -0800 (PST) From: Thierry Reding To: Stephen Warren Subject: [PATCH 10/10] ARM: tegra: Enable USB on Venice2 Date: Thu, 19 Dec 2013 17:06:22 +0100 Message-Id: <1387469182-14398-11-git-send-email-treding@nvidia.com> X-Mailer: git-send-email 1.8.4.2 In-Reply-To: <1387469182-14398-1-git-send-email-treding@nvidia.com> References: <1387469182-14398-1-git-send-email-treding@nvidia.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131219_110832_867176_0106E156 X-CRM114-Status: GOOD ( 11.88 ) X-Spam-Score: -2.0 (--) Cc: linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP USB1 and USB3 are routed to two external connectors, while USB2 is used for the integrated webcam. Signed-off-by: Thierry Reding --- Note: connecting a USB mouse to USB3 works properly and lsusb also detects the integrated webcam, though I haven't tested whether the camera actually works. USB1 doesn't seem to work, but I suspect that might just be because it's used for recovery mode and we can't switch it around at runtime yet. --- arch/arm/boot/dts/tegra124-venice2.dts | 47 +++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra124-venice2.dts b/arch/arm/boot/dts/tegra124-venice2.dts index b770e903fabb..efdf93e6f5cc 100644 --- a/arch/arm/boot/dts/tegra124-venice2.dts +++ b/arch/arm/boot/dts/tegra124-venice2.dts @@ -534,7 +534,7 @@ ams,enable-tracking; }; - ldo4 { + cam_2v8_reg: ldo4 { regulator-name = "avdd_cam"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; @@ -715,6 +715,33 @@ }; }; + usb@7d000000 { + status = "okay"; + }; + + usb-phy@7d000000 { + status = "okay"; + vbus-supply = <&usb1_vbus_reg>; + }; + + usb@7d004000 { + status = "okay"; + }; + + usb-phy@7d004000 { + status = "okay"; + vbus-supply = <&cam_2v8_reg>; + }; + + usb@7d008000 { + status = "okay"; + }; + + usb-phy@7d008000 { + status = "okay"; + vbus-supply = <&usb3_vbus_reg>; + }; + backlight: backlight { compatible = "pwm-backlight"; @@ -788,6 +815,24 @@ gpio = <&gpio TEGRA_GPIO(P, 2) 0 GPIO_ACTIVE_HIGH>; enable-active-high; }; + + usb1_vbus_reg: regulator@3 { + compatible = "regulator-fixed"; + reg = <3>; + regulator-name = "usb1_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-boot-on; + }; + + usb3_vbus_reg: regulator@4 { + compatible = "regulator-fixed"; + reg = <4>; + regulator-name = "usb3_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-boot-on; + }; }; sound {