arm64: tegra: Update OTG port entries for Jetson TX1
authorNagarjuna Kristam <nkristam@nvidia.com>
Mon, 10 Feb 2020 08:11:39 +0000 (13:41 +0530)
committerThierry Reding <treding@nvidia.com>
Thu, 12 Mar 2020 11:14:27 +0000 (12:14 +0100)
Populate OTG vbus regulator and add usb-role-switch entry to USB 2-0
port and corresponding connector details.

Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi

index b009507..18c0610 100644 (file)
                       <&{/padctl@7009f000/pads/pcie/lanes/pcie-5}>;
                phy-names = "usb2-0", "usb2-1", "usb2-2", "usb2-3", "usb3-0",
                            "usb3-1";
-
                dvddio-pex-supply = <&vdd_pex_1v05>;
                hvddio-pex-supply = <&vdd_1v8>;
                avdd-usb-supply = <&vdd_3v3_sys>;
                ports {
                        usb2-0 {
                                status = "okay";
+                               vbus-supply = <&vdd_usb_vbus_otg>;
                                mode = "otg";
+
+                               usb-role-switch;
+                               connector {
+                                       compatible = "usb-b-connector",
+                                                    "gpio-usb-b-connector";
+                                       label = "micro-USB";
+                                       type = "micro";
+                                       vbus-gpio = <&gpio TEGRA_GPIO(Z, 0)
+                                                    GPIO_ACTIVE_LOW>;
+                                       id-gpio = <&pmic 0 0>;
+                               };
                        };
 
                        usb2-1 {
                        vin-supply = <&vdd_5v0_sys>;
                };
 
+               vdd_usb_vbus_otg: regulator@11 {
+                       compatible = "regulator-fixed";
+                       reg = <9>;
+                       regulator-name = "USB_VBUS_EN0";
+                       regulator-min-microvolt = <5000000>;
+                       regulator-max-microvolt = <5000000>;
+                       gpio = <&gpio TEGRA_GPIO(CC, 4) GPIO_ACTIVE_HIGH>;
+                       enable-active-high;
+                       vin-supply = <&vdd_5v0_sys>;
+               };
+
                vdd_hdmi: regulator@10 {
                        compatible = "regulator-fixed";
                        reg = <10>;