diff mbox series

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

Message ID 20230530140232.53854-1-jonathanh@nvidia.com
State Accepted
Headers show
Series [1/2] arm64: tegra: Enable USB device for Jetson AGX Orin | expand

Commit Message

Jon Hunter May 30, 2023, 2:02 p.m. UTC
Enable USB device support for the Jetson AGX Orin platform and update
the mode for the usb2-0 port to be on-the-go.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
---
 .../dts/nvidia/tegra234-p3737-0000+p3701-0000.dts     | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

Comments

Thierry Reding June 6, 2023, 1:12 p.m. UTC | #1
From: Thierry Reding <treding@nvidia.com>


On Tue, 30 May 2023 15:02:31 +0100, Jon Hunter wrote:
> 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,
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts b/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts
index aacacfe4a6ea..5b4f4f3ae34d 100644
--- a/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts
+++ b/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts
@@ -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";