[Patch V11 09/11] arm64: tegra: Enable xudc on Jetson TX2

From: Nagarjuna Kristam
Date: Fri Oct 18 2019 - 05:40:32 EST


Enable XUSB device mode driver for USB0 slot on Jetson TX2.

Signed-off-by: Nagarjuna Kristam <nkristam@xxxxxxxxxx>
---
arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts | 29 +++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts b/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts
index 2e61957..b55de35 100644
--- a/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts
+++ b/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts
@@ -131,7 +131,7 @@
status = "okay";

lanes {
- usb2-0 {
+ micro_b: usb2-0 {
nvidia,function = "xusb";
status = "okay";
};
@@ -201,6 +201,20 @@
phy-names = "usb2-0", "usb2-1", "usb3-0";
};

+ usb@3550000 {
+ status = "okay";
+
+ phys = <&micro_b>;
+ phy-names = "usb2";
+ usb-role-switch;
+
+ port {
+ usb_role_switch: endpoint {
+ remote-endpoint = <&usb_b_conn_ep>;
+ };
+ };
+ };
+
i2c@c250000 {
/* carrier board ID EEPROM */
eeprom@57 {
@@ -367,4 +381,17 @@
vin-supply = <&vdd_5v0_sys>;
};
};
+
+ usb_type_b: connector {
+ compatible = "usb-b-connector", "gpio-usb-b-connector";
+ label = "micro-USB";
+ type = "micro";
+ vbus-gpio = <&gpio TEGRA186_MAIN_GPIO(X, 7) GPIO_ACTIVE_LOW>;
+
+ port {
+ usb_b_conn_ep: endpoint {
+ remote-endpoint = <&usb_role_switch>;
+ };
+ };
+ };
};
--
2.7.4