[Patch V5 20/21] arm64: tegra: update OTG port entries for jetson-nano
From: Nagarjuna Kristam
Date: Mon Feb 10 2020 - 03:13:44 EST
Add usb-role-switch entry to peripheral usb port and add corresponding
connector details.
Signed-off-by: Nagarjuna Kristam <nkristam@xxxxxxxxxx>
---
V5:
- New patch in the series.
---
arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts b/arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts
index 9101d3a..b75f69d 100644
--- a/arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts
+++ b/arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts
@@ -505,7 +505,17 @@
ports {
usb2-0 {
status = "okay";
- mode = "otg";
+ mode = "peripheral";
+
+ usb-role-switch;
+ connector {
+ compatible = "usb-b-connector",
+ "gpio-usb-b-connector";
+ label = "micro-USB";
+ type = "micro";
+ vbus-gpio = <&gpio TEGRA_GPIO(CC, 4)
+ GPIO_ACTIVE_LOW>;
+ };
};
usb2-1 {
--
2.7.4