From patchwork Mon Jun 6 16:36:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 631021 X-Patchwork-Delegate: treding@nvidia.com 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 3rNgMV38G4z9t3Z for ; Tue, 7 Jun 2016 02:36:54 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=UhgLs1fC; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752526AbcFFQgy (ORCPT ); Mon, 6 Jun 2016 12:36:54 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33688 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752410AbcFFQgx (ORCPT ); Mon, 6 Jun 2016 12:36:53 -0400 Received: by mail-wm0-f67.google.com with SMTP id c74so9628975wme.0 for ; Mon, 06 Jun 2016 09:36:52 -0700 (PDT) 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=k+JxeDWMrC6M0uEj5I78ZkA9oWVjWl/TKWyaKhQzXgg=; b=UhgLs1fCl5GfCi+7igh+4wU+HdeyXq556vuBoMZEZTj3Oo1fFoLN8KCtAyEkbfVMAB zt0D9JaOvJE9rln12KXRWUxq2o5PACjEr1JGCEhpU7mSlcuNXIiVXilX8FLmSIzBKOwF V3XpfGWDef22RgjbNOMPtB6Ss3VeM1wRXIyj9gu0qif7HzGwyGjvEFwcJweHo9Za2nLw /uVm9xUCFaP//n3XzhIIqalDzObNpuoIKfE9tdiJCg/QHeR1ZJUhmjoz3xlKbOe5jgv2 4miAr+7uraR49zamGwwAVLw7fJdyZWQO4KZwEdf9ei/ykIMx/7mpbawvtv00+PZ6DgdR wndg== 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=k+JxeDWMrC6M0uEj5I78ZkA9oWVjWl/TKWyaKhQzXgg=; b=LTn8jfoyRCn19X+6U2YFBUpgfYSiU7jhf36eYkbLhYO4uZOcCJbmQ1NGg/QyQKcAHt d4vdHdONskfKhhdLXTT1ttjg+QtvicuEslLMJMUIuL0FXqdOmBVEiA5WED/qcGfcfWYs dIcfyH1jJ4t/CA5zMIaEX9SslkqINpDbiVt4XdIxwPb+8hiCstuj6dXQl4+ZRzTkKSIt EP9xSEH0bqEv+FtSbNv6PXsa7hosY/iKv6yhIQjiDkTgLYrkCJMLOSLOve4sn7zdcMPS jU64ry3huq2YCl01NJmpyPgchgpBraitIjATI24edkFf8fp81jtejDnOWz/e1oqH1yCy bHxw== X-Gm-Message-State: ALyK8tJ3BANXiDvrbV5OeaLm1Fbbyc5mZk7DSPgjb2d81dLv4O1ySxU5dUFvw5gKm1BsFg== X-Received: by 10.28.175.7 with SMTP id y7mr5683351wme.59.1465231011851; Mon, 06 Jun 2016 09:36:51 -0700 (PDT) Received: from localhost (port-6551.pppoe.wtnet.de. [84.46.25.176]) by smtp.gmail.com with ESMTPSA id vv1sm12262831wjc.34.2016.06.06.09.36.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jun 2016 09:36:50 -0700 (PDT) From: Thierry Reding To: Thierry Reding Cc: Alexandre Courbot , Jon Hunter , linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 8/8] arm64: tegra: Enable XUSB controller on Jetson TX1 Date: Mon, 6 Jun 2016 18:36:37 +0200 Message-Id: <20160606163637.14234-8-thierry.reding@gmail.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20160606163637.14234-1-thierry.reding@gmail.com> References: <20160606163637.14234-1-thierry.reding@gmail.com> Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org From: Thierry Reding Signed-off-by: Thierry Reding --- arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 162 +++++++++++++++++++++++++ 1 file changed, 162 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi b/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi index 78a16a57fec7..8bba178d8d0f 100644 --- a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi @@ -1278,6 +1278,146 @@ }; }; + usb@70090000 { + phys = <&{/padctl@7009f000/pads/usb2/lanes/usb2-0}>, + <&{/padctl@7009f000/pads/usb2/lanes/usb2-1}>, + <&{/padctl@7009f000/pads/usb2/lanes/usb2-2}>, + <&{/padctl@7009f000/pads/usb2/lanes/usb2-3}>, + <&{/padctl@7009f000/pads/pcie/lanes/pcie-6}>, + <&{/padctl@7009f000/pads/pcie/lanes/pcie-5}>; + phy-names = "usb2-0", "usb2-1", "usb2-2", "usb2-3", "usb3-0", + "usb3-1"; + + dvddio-pex-supply = <&vdd_pex_1v05>; + hvddio-pex-supply = <&vdd_1v8>; + avdd-usb-supply = <&vdd_3v3_sys>; + /* XXX what are these? */ + avdd-pll-utmip-supply = <&vdd_1v8>; + avdd-pll-uerefe-supply = <&vdd_pex_1v05>; + dvdd-usb-ss-pll-supply = <&vdd_pex_1v05>; + hvdd-usb-ss-pll-e-supply = <&vdd_1v8>; + + status = "okay"; + }; + + padctl@7009f000 { + status = "okay"; + + pads { + usb2 { + status = "okay"; + + lanes { + usb2-0 { + nvidia,function = "xusb"; + status = "okay"; + }; + + usb2-1 { + nvidia,function = "xusb"; + status = "okay"; + }; + + usb2-2 { + nvidia,function = "xusb"; + status = "okay"; + }; + + usb2-3 { + nvidia,function = "xusb"; + status = "okay"; + }; + }; + }; + + pcie { + status = "okay"; + + lanes { + pcie-0 { + nvidia,function = "pcie-x1"; + status = "okay"; + }; + + pcie-1 { + nvidia,function = "pcie-x4"; + status = "okay"; + }; + + pcie-2 { + nvidia,function = "pcie-x4"; + status = "okay"; + }; + + pcie-3 { + nvidia,function = "pcie-x4"; + status = "okay"; + }; + + pcie-4 { + nvidia,function = "pcie-x4"; + status = "okay"; + }; + + pcie-5 { + nvidia,function = "usb3-ss"; + status = "okay"; + }; + + pcie-6 { + nvidia,function = "usb3-ss"; + status = "okay"; + }; + }; + }; + + sata { + status = "okay"; + + lanes { + sata-0 { + nvidia,function = "sata"; + status = "okay"; + }; + }; + }; + }; + + ports { + usb2-0 { + status = "okay"; + mode = "otg"; + }; + + usb2-1 { + status = "okay"; + vbus-supply = <&vdd_5v0_rtl>; + mode = "host"; + }; + + usb2-2 { + status = "okay"; + vbus-supply = <&vdd_usb_vbus>; + mode = "host"; + }; + + usb2-3 { + status = "okay"; + mode = "host"; + }; + + usb3-0 { + nvidia,usb2-companion = <1>; + status = "okay"; + }; + + usb3-1 { + nvidia,usb2-companion = <2>; + status = "okay"; + }; + }; + }; + /* MMC/SD */ sdhci@700b0000 { status = "okay"; @@ -1390,6 +1530,28 @@ enable-active-high; vin-supply = <&vdd_1v8>; }; + + vdd_5v0_rtl: regulator@8 { + compatible = "regulator-fixed"; + reg = <8>; + regulator-name = "RTL_5V"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio TEGRA_GPIO(H, 1) GPIO_ACTIVE_HIGH>; + enable-active-high; + vin-supply = <&vdd_5v0_sys>; + }; + + vdd_usb_vbus: regulator@9 { + compatible = "regulator-fixed"; + reg = <9>; + regulator-name = "USB_VBUS_EN1"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio TEGRA_GPIO(CC, 5) GPIO_ACTIVE_HIGH>; + enable-active-high; + vin-supply = <&vdd_5v0_sys>; + }; }; gpio-keys {