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

Signed-off-by: Nagarjuna Kristam <nkris...@nvidia.com>
Reviewed-by: JC Kuo <jc...@nvidia.com>
---
 arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi | 29 ++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi 
b/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi
index a7dc319..f3f3704 100644
--- a/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi
@@ -1483,6 +1483,21 @@
                vmmc-supply = <&vdd_3v3_sd>;
        };
 
+       xudc@700d0000 {
+               status = "okay";
+               phys = <&{/padctl@7009f000/pads/usb2/lanes/usb2-0}>;
+               phy-names = "usb2";
+               avddio-usb-supply = <&vdd_3v3_sys>;
+               hvdd-usb-supply = <&vdd_1v8>;
+               usb-role-switch;
+
+               port {
+                       usb_role_switch: endpoint@0 {
+                               remote-endpoint = <&usb_b_conn_ep>;
+                       };
+               };
+       };
+
        regulators {
                compatible = "simple-bus";
                #address-cells = <1>;
@@ -1641,4 +1656,18 @@
                        linux,code = <KEY_VOLUMEUP>;
                };
        };
+
+       usb_type_b: connector {
+               compatible = "linux,typeb-conn-gpio", "usb-b-connector";
+               label = "micro-USB";
+               type = "micro";
+               vbus-gpio = <&gpio TEGRA_GPIO(Z, 0) GPIO_ACTIVE_LOW>;
+
+               port {
+                       usb_b_conn_ep: endpoint@0 {
+                               remote-endpoint = <&usb_role_switch>;
+                       };
+               };
+       };
+
 };
-- 
2.7.4

Reply via email to