From patchwork Wed Jun 18 06:16:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Bresticker X-Patchwork-Id: 4373411 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A2C9DBEEAA for ; Wed, 18 Jun 2014 06:21:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BDECD2017D for ; Wed, 18 Jun 2014 06:21:07 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (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 E81B4200E5 for ; Wed, 18 Jun 2014 06:21:06 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wx9Ce-0005vO-LI; Wed, 18 Jun 2014 06:18:36 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wx9BC-0005Kx-R3 for linux-arm-kernel@bombadil.infradead.org; Wed, 18 Jun 2014 06:17:07 +0000 Received: from mail-ig0-f201.google.com ([209.85.213.201]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wx9BA-00079C-Bp for linux-arm-kernel@lists.infradead.org; Wed, 18 Jun 2014 06:17:05 +0000 Received: by mail-ig0-f201.google.com with SMTP id h15so54512igd.2 for ; Tue, 17 Jun 2014 23:16:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NKhPv/pc7dFPcr1doiT6LYCfXI08jJIqEeE/90Q8ukk=; b=Q88kpyvgGEHQzn1lT9PRCy3dP6Gpc3WgdBmXxamn0rubwghfsbrlYnsku7Tkx00MeI kyYIAn+v2aPwy2cILnEm5ZJ9nc4WnUXPQ182SXIBdcr9jkJ/vvNPF2JST30bVmJ31fEz 0Z9uefbJjIuFCnmq3SPUU8z9+OK39BWZZAWYW9NE3RLs40qJU2TnFy1gjxMWBZnRa4gw OJFg59B1oL5ydYVhlrp7pgObJiNBzDliMfVaG5T8xc7UTlBovoRdqFpLx0Jcp5srjqRe oOokVXlE6muLnPdF3Qya1+BargSha9/sY+x1psqB4SdKJ46vbc53a7MBqmfw+ft6DmI+ Yq/Q== X-Gm-Message-State: ALoCoQnsEx5hkcXyl/9o494DwijaTqVT9kC7g5o30RO2IBNCJDq6xrtP/zOh4KqzRo5Cgm7K3CXG X-Received: by 10.182.130.169 with SMTP id of9mr846396obb.27.1403072202848; Tue, 17 Jun 2014 23:16:42 -0700 (PDT) Received: from corp2gmr1-2.hot.corp.google.com (corp2gmr1-2.hot.corp.google.com [172.24.189.93]) by gmr-mx.google.com with ESMTPS id t4si74607yhm.0.2014.06.17.23.16.42 for (version=TLSv1.1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Jun 2014 23:16:42 -0700 (PDT) Received: from abrestic.mtv.corp.google.com (abrestic.mtv.corp.google.com [172.22.72.111]) by corp2gmr1-2.hot.corp.google.com (Postfix) with ESMTP id A37285A449E; Tue, 17 Jun 2014 23:16:42 -0700 (PDT) Received: by abrestic.mtv.corp.google.com (Postfix, from userid 137652) id 679C7220378; Tue, 17 Jun 2014 23:16:42 -0700 (PDT) From: Andrew Bresticker To: devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org Subject: [PATCH v1 9/9] ARM: tegra: venice2: Add XHCI support Date: Tue, 17 Jun 2014 23:16:20 -0700 Message-Id: <1403072180-4944-10-git-send-email-abrestic@chromium.org> X-Mailer: git-send-email 2.0.0.526.g5318336 In-Reply-To: <1403072180-4944-1-git-send-email-abrestic@chromium.org> References: <1403072180-4944-1-git-send-email-abrestic@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140618_071704_507551_8D96C078 X-CRM114-Status: GOOD ( 12.53 ) X-Spam-Score: -2.6 (--) Cc: Mark Rutland , Russell King , Mathias Nyman , Pawel Moll , Ian Campbell , Andrew Bresticker , Greg Kroah-Hartman , Linus Walleij , Randy Dunlap , Kishon Vijay Abraham I , Grant Likely , Rob Herring , Thierry Reding , Kumar Gala , Stephen Warren , Alan Stern , Arnd Bergmann X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 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=-1.9 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD, 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 Assign ports previously owned by the EHCI controllers to the XHCI controller. There are two external USB ports (UTMI ports 0/2 and USB3 ports 0/1) and an internal USB port (UTMI port 1). PCIe lanes 0 and 1 are used by the USB3 ports. Signed-off-by: Andrew Bresticker --- arch/arm/boot/dts/tegra124-venice2.dts | 72 +++++++++++++++++++++------------- 1 file changed, 45 insertions(+), 27 deletions(-) diff --git a/arch/arm/boot/dts/tegra124-venice2.dts b/arch/arm/boot/dts/tegra124-venice2.dts index f1a5bac..bf88c81 100644 --- a/arch/arm/boot/dts/tegra124-venice2.dts +++ b/arch/arm/boot/dts/tegra124-venice2.dts @@ -878,6 +878,51 @@ status = "okay"; }; + usb@0,70090000 { + status = "okay"; + phys = <&padctl TEGRA_XUSB_PADCTL_UTMI_P0>, + <&padctl TEGRA_XUSB_PADCTL_UTMI_P1>, + <&padctl TEGRA_XUSB_PADCTL_UTMI_P2>, + <&padctl TEGRA_XUSB_PADCTL_USB3_P0>, + <&padctl TEGRA_XUSB_PADCTL_USB3_P1>; + phy-names = "utmi-0", "utmi-1", "utmi-2", "usb3-0", "usb3-1"; + s1p05v-supply = <&vdd_1v05_run>; + s3p3v-supply = <&vdd_3v3_lp0>; + s1p8v-supply = <&vddio_1v8>; + }; + + padctl@0,7009f000 { + pinctrl-0 = <&padctl_default>; + pinctrl-names = "default"; + + vbus-otg-0-supply = <&vdd_usb1_vbus>; + vbus-otg-1-supply = <&vdd_run_cam>; + vbus-otg-2-supply = <&vdd_usb3_vbus>; + + padctl_default: pinmux { + otg { + nvidia,lanes = "otg-0", "otg-1", "otg-2"; + nvidia,function = "xusb"; + }; + + usb3p0 { + nvidia,lanes = "pcie-0"; + nvidia,function = "usb3"; + nvidia,iddq = <0>; + nvidia,usb3-port-num = <0>; + nvidia,usb2-port-num = <0>; + }; + + usb3p1 { + nvidia,lanes = "pcie-1"; + nvidia,function = "usb3"; + nvidia,iddq = <0>; + nvidia,usb3-port-num = <1>; + nvidia,usb2-port-num = <2>; + }; + }; + }; + sdhci@0,700b0400 { cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>; power-gpios = <&gpio TEGRA_GPIO(R, 0) GPIO_ACTIVE_HIGH>; @@ -898,33 +943,6 @@ }; }; - usb@0,7d000000 { - status = "okay"; - }; - - usb-phy@0,7d000000 { - status = "okay"; - vbus-supply = <&vdd_usb1_vbus>; - }; - - usb@0,7d004000 { - status = "okay"; - }; - - usb-phy@0,7d004000 { - status = "okay"; - vbus-supply = <&vdd_run_cam>; - }; - - usb@0,7d008000 { - status = "okay"; - }; - - usb-phy@0,7d008000 { - status = "okay"; - vbus-supply = <&vdd_usb3_vbus>; - }; - backlight: backlight { compatible = "pwm-backlight";