arm64: tegra: Update USB connector nodes
authorThierry Reding <treding@nvidia.com>
Fri, 12 Jun 2020 07:31:55 +0000 (09:31 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 15 Jul 2020 09:05:46 +0000 (11:05 +0200)
Use the preferred {id,vbus}-gpios over the {id,vbus}-gpio properties and
fix the ordering of compatible strings (most-specific ones should come
first).

Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts
arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi
arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts

index 482ed7b..4a7a022 100644 (file)
                                status = "okay";
                                mode = "otg";
                                vbus-supply = <&vdd_usb0>;
-
                                usb-role-switch;
+
                                connector {
-                                       compatible = "usb-b-connector",
-                                                    "gpio-usb-b-connector";
+                                       compatible = "gpio-usb-b-connector",
+                                                    "usb-b-connector";
                                        label = "micro-USB";
                                        type = "micro";
-                                       vbus-gpio = <&gpio
-                                                    TEGRA186_MAIN_GPIO(X, 7)
-                                                    GPIO_ACTIVE_LOW>;
-                                       id-gpio = <&pmic 0 GPIO_ACTIVE_HIGH>;
+                                       vbus-gpios = <&gpio
+                                                     TEGRA186_MAIN_GPIO(X, 7)
+                                                     GPIO_ACTIVE_LOW>;
+                                       id-gpios = <&pmic 0 GPIO_ACTIVE_HIGH>;
                                };
-
                        };
 
                        usb2-1 {
index 98f8f97..83f74ff 100644 (file)
                        usb2-0 {
                                status = "okay";
                                vbus-supply = <&vdd_usb_vbus_otg>;
+                               usb-role-switch;
                                mode = "otg";
 
-                               usb-role-switch;
                                connector {
-                                       compatible = "usb-b-connector",
-                                                    "gpio-usb-b-connector";
+                                       compatible = "gpio-usb-b-connector",
+                                                    "usb-b-connector";
                                        label = "micro-USB";
                                        type = "micro";
-                                       vbus-gpio = <&gpio TEGRA_GPIO(Z, 0)
-                                                    GPIO_ACTIVE_LOW>;
-                                       id-gpio = <&pmic 0 0>;
+                                       vbus-gpios = <&gpio TEGRA_GPIO(Z, 0)
+                                                     GPIO_ACTIVE_LOW>;
+                                       id-gpios = <&pmic 0 GPIO_ACTIVE_HIGH>;
                                };
                        };
 
index 4916bed..f9fdacd 100644 (file)
                        usb2-0 {
                                status = "okay";
                                mode = "peripheral";
-
                                usb-role-switch;
+
                                connector {
-                                       compatible = "usb-b-connector",
-                                                    "gpio-usb-b-connector";
+                                       compatible = "gpio-usb-b-connector",
+                                                    "usb-b-connector";
                                        label = "micro-USB";
                                        type = "micro";
-                                       vbus-gpio = <&gpio TEGRA_GPIO(CC, 4)
-                                                    GPIO_ACTIVE_LOW>;
+                                       vbus-gpios = <&gpio TEGRA_GPIO(CC, 4)
+                                                     GPIO_ACTIVE_LOW>;
                                };
                        };