* [PATCH 1/1] arm64: tegra: Enable Jetson Xavier NX USB device mode
@ 2021-12-22 7:15 Wayne Chang
0 siblings, 0 replies; only message in thread
From: Wayne Chang @ 2021-12-22 7:15 UTC (permalink / raw)
To: robh+dt, thierry.reding, jonathanh
Cc: spujar, mchehab+huawei, skomatineni, devicetree, linux-tegra,
linux-kernel, Wayne Chang
This commit enables USB device mode at J5 micro-B
USB port of Jetson Xavier NX.
Signed-off-by: Wayne Chang <waynec@nvidia.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@3520000 {
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@3610000 {
phy-names = "usb2-1", "usb2-2", "usb3-2";
};
+ usb@3550000 {
+ status = "okay";
+
+ phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>;
+ phy-names = "usb2-0";
+ };
+
spi@3270000 {
status = "okay";
--
2.25.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-22 7:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-22 7:15 [PATCH 1/1] arm64: tegra: Enable Jetson Xavier NX USB device mode Wayne Chang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox