ARM: tegra: Enable UDC on Jetson TK1
authorThierry Reding <treding@nvidia.com>
Wed, 16 Aug 2017 10:32:44 +0000 (13:32 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 17 Aug 2017 14:36:47 +0000 (16:36 +0200)
Override the compatible string of the first USB controller to enable
device mode.

Tested-by: Nicolas Chauvet <kwizart@gmail.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/boot/dts/tegra124-jetson-tk1.dts

index 7bacb2954f586357bb689dbbd4c51895a4f5653d..61873d642a45b207ef33c885b76469f9d9ed084b 100644 (file)
 
                                lanes {
                                        usb2-0 {
-                                               nvidia,function = "xusb";
+                                               nvidia,function = "snps";
                                                status = "okay";
                                        };
 
                };
        };
 
+       usb@7d000000 {
+               compatible = "nvidia,tegra124-udc";
+               status = "okay";
+               dr_mode = "peripheral";
+       };
+
+       usb-phy@7d000000 {
+               status = "okay";
+       };
+
        /* mini-PCIe USB */
        usb@7d004000 {
                status = "okay";