arm64: tegra: Enable USB device for Jetson AGX Orin
authorJon Hunter <jonathanh@nvidia.com>
Tue, 30 May 2023 14:02:31 +0000 (15:02 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 6 Jun 2023 13:11:21 +0000 (15:11 +0200)
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>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts

index caa9e95..ac64dac 100644 (file)
 
                        ports {
                                usb2-0 {
-                                       mode = "host";
+                                       mode = "otg";
+                                       usb-role-switch;
                                        status = "okay";
                                        port {
                                                hs_typec_p1: endpoint {
                        };
                };
 
+               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";