ARM: tegra: enable USB device mode port on Dalmore
authorStephen Warren <swarren@nvidia.com>
Mon, 15 Feb 2016 17:34:04 +0000 (10:34 -0700)
committerTom Warren <twarren@nvidia.com>
Thu, 18 Feb 2016 17:02:19 +0000 (10:02 -0700)
This allows U-Boot to expose UMS and DFU protocols on this port in device
mode, or to act as a USB host on the port, using an "OTG" (micro-B to
female A host) cable.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/dts/tegra114-dalmore.dts
include/configs/dalmore.h

index 51ff266d760a69c56d12bd69b021b3c7ed5de8c0..49195c35964a294fa1b217fafd4feaf6e560927a 100644 (file)
@@ -18,7 +18,8 @@
                i2c4 = "/i2c@7000c700";
                sdhci0 = "/sdhci@78000600";
                sdhci1 = "/sdhci@78000400";
-               usb0 = "/usb@7d008000";
+               usb0 = "/usb@7d000000";
+               usb1 = "/usb@7d008000";
        };
 
        memory {
                status = "okay";
        };
 
+       usb@7d000000 {
+               status = "okay";
+               dr_mode = "otg";
+               nvidia,vbus-gpio = <&gpio TEGRA_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
+       };
+
        usb@7d008000 {
                nvidia,vbus-gpio = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>;
                status = "okay";
index fdfda6b90348fb0fcfda7d743d2e853c49e2674b..f74ced1b439559829edcca0ead81b0542a89818c 100644 (file)
@@ -58,6 +58,7 @@
 /* General networking support */
 #define CONFIG_CMD_DHCP
 
+#include "tegra-common-usb-gadget.h"
 #include "tegra-common-post.h"
 
 #endif /* __CONFIG_H */