Skip to contentSkip to conversation

arm64: tegra: Enable USB device for Jetson AGX Orin

PATCH Applied Jon Hunter 2 participants 3 messages May 30, 2023 – Jun 6, 2023

Subsystems (2)
lore
Share & tools
lore

Jon Hunter

author maintainer
#0 lore raw

PATCH 1/2 arm64: tegra: Enable USB device for Jetson AGX Orin

Enable USB device support for the Jetson AGX Orin platform and update the mode for the usb2-0 port to be on-the-go.

---
 .../dts/nvidia/tegra234-p3737-0000+p3701-0000.dts     | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts +10 -1
index aacacfe4a6ea..5b4f4f3ae34d 100644
@@ -2096,7 +2096,8 @@ usb3-2 {
 
 			ports {
 				usb2-0 {
-					mode = "host";
+					mode = "otg";
+					usb-role-switch;
 					status = "okay";
 					port {
 						hs_typec_p1: endpoint {
@@ -2152,6 +2153,14 @@ usb3-2 {
 			};
 		};
 
+		usb@3550000 {
+			status = "okay";
+
+			phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>,
+			       <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>;
+			phy-names = "usb2-0", "usb3-0";
+		};
+
 		usb@3610000 {
 			status = "okay";
 
Signature · 1 line
2.34.1
author maintainer
#1 lore raw

PATCH 2/2 arm64: tegra: Update USB phy-name for Jetson Orin NX

Running 'make dtbs_check' reports the following warning for the Jetson Orin NX platform ...

arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767-0000.dtb:

     usb@3550000: phy-names:1: 'usb3-0' was expected

Fix this by updating the phy-names:1 to be 'usb3-0' as expected.

---
 arch/arm64/boot/dts/nvidia/tegra234-p3768-0000.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/nvidia/tegra234-p3768-0000.dtsi +1 -1
index aee21428e1a5..bbd68ef93d97 100644
@@ -119,7 +119,7 @@ usb@3550000 {
 
 			phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>,
 			       <&{/bus@0/padctl@3520000/pads/usb3/lanes/usb3-1}>;
-			phy-names = "usb2-0", "usb3-1";
+			phy-names = "usb2-0", "usb3-0";
 		};
 
 		usb@3610000 {
Signature · 1 line
2.34.1
#2 lore raw
In reply to Jon Hunter

From: Thierry Reding <[email protected]>

Quoted 4 lines · Jon Hunter

Enable USB device support for the Jetson AGX Orin platform and update the mode for the usb2-0 port to be on-the-go.

Applied, thanks!

[1/2] arm64: tegra: Enable USB device for Jetson AGX Orin

      commit: 620405856d591ef95b01ee3e275af3a636c05010
[2/2] arm64: tegra: Update USB phy-name for Jetson Orin NX
      commit: 86d24f98b75d3a58503554e8d1dd277ae7386966

Best regards,

Signature · 1 line
Thierry Reding <[email protected]>