[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20211222071528.144472-1-waynec@nvidia.com>
Date: Wed, 22 Dec 2021 15:15:28 +0800
From: Wayne Chang <waynec@...dia.com>
To: <robh+dt@...nel.org>, <thierry.reding@...il.com>,
<jonathanh@...dia.com>
CC: <spujar@...dia.com>, <mchehab+huawei@...nel.org>,
<skomatineni@...dia.com>, <devicetree@...r.kernel.org>,
<linux-tegra@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Wayne Chang <waynec@...dia.com>
Subject: [PATCH 1/1] arm64: tegra: Enable Jetson Xavier NX USB device mode
This commit enables USB device mode at J5 micro-B
USB port of Jetson Xavier NX.
Signed-off-by: Wayne Chang <waynec@...dia.com>
---
.../boot/dts/nvidia/tegra194-p3509-0000.dtsi | 25 +++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/arch/arm64/boot/dts/nvidia/tegra194-p3509-0000.dtsi b/arch/arm64/boot/dts/nvidia/tegra194-p3509-0000.dtsi
index a055f17218bb..f4733b98fcaa 100644
--- a/arch/arm64/boot/dts/nvidia/tegra194-p3509-0000.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra194-p3509-0000.dtsi
@@ -1826,6 +1826,10 @@ padctl@...0000 {
pads {
usb2 {
lanes {
+ usb2-0 {
+ status = "okay";
+ };
+
usb2-1 {
status = "okay";
};
@@ -1846,6 +1850,20 @@ usb3-2 {
};
ports {
+ usb2-0 {
+ mode = "otg";
+ status = "okay";
+ usb-role-switch;
+ connector {
+ compatible = "gpio-usb-b-connector",
+ "usb-b-connector";
+ label = "micro-USB";
+ type = "micro";
+ vbus-gpio = <&gpio TEGRA194_MAIN_GPIO(Z, 1)
+ GPIO_ACTIVE_LOW>;
+ };
+ };
+
usb2-1 {
mode = "host";
status = "okay";
@@ -1874,6 +1892,13 @@ usb@...0000 {
phy-names = "usb2-1", "usb2-2", "usb3-2";
};
+ usb@...0000 {
+ status = "okay";
+
+ phys = <&{/bus@...adctl@...0000/pads/usb2/lanes/usb2-0}>;
+ phy-names = "usb2-0";
+ };
+
spi@...0000 {
status = "okay";
--
2.25.1
Powered by blists - more mailing lists