[U-Boot] [PATCH V2 2/2] ARM: tegra: enable USB device mode port on Dalmore

Stephen Warren swarren at wwwdotorg.org
Mon Feb 15 18:34:04 CET 2016


From: Stephen Warren <swarren at nvidia.com>

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 at nvidia.com>
---
v2: Don't set CONFIG_USB_MAX_CONTROLLER_COUNT in config header.
---
 arch/arm/dts/tegra114-dalmore.dts | 9 ++++++++-
 include/configs/dalmore.h         | 1 +
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/arch/arm/dts/tegra114-dalmore.dts b/arch/arm/dts/tegra114-dalmore.dts
index 51ff266d760a..49195c35964a 100644
--- a/arch/arm/dts/tegra114-dalmore.dts
+++ b/arch/arm/dts/tegra114-dalmore.dts
@@ -18,7 +18,8 @@
 		i2c4 = "/i2c at 7000c700";
 		sdhci0 = "/sdhci at 78000600";
 		sdhci1 = "/sdhci at 78000400";
-		usb0 = "/usb at 7d008000";
+		usb0 = "/usb at 7d000000";
+		usb1 = "/usb at 7d008000";
 	};
 
 	memory {
@@ -67,6 +68,12 @@
 		status = "okay";
 	};
 
+	usb at 7d000000 {
+		status = "okay";
+		dr_mode = "otg";
+		nvidia,vbus-gpio = <&gpio TEGRA_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
+	};
+
 	usb at 7d008000 {
 		nvidia,vbus-gpio = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>;
 		status = "okay";
diff --git a/include/configs/dalmore.h b/include/configs/dalmore.h
index fdfda6b90348..f74ced1b4395 100644
--- a/include/configs/dalmore.h
+++ b/include/configs/dalmore.h
@@ -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 */
-- 
2.7.0



More information about the U-Boot mailing list