Commit 1ca6bc89 authored by Thierry Reding's avatar Thierry Reding

arm64: tegra: Update USB connector nodes

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: default avatarThierry Reding <treding@nvidia.com>
parent c8d05184
...@@ -171,19 +171,18 @@ usb2-0 { ...@@ -171,19 +171,18 @@ usb2-0 {
status = "okay"; status = "okay";
mode = "otg"; mode = "otg";
vbus-supply = <&vdd_usb0>; vbus-supply = <&vdd_usb0>;
usb-role-switch; usb-role-switch;
connector { connector {
compatible = "usb-b-connector", compatible = "gpio-usb-b-connector",
"gpio-usb-b-connector"; "usb-b-connector";
label = "micro-USB"; label = "micro-USB";
type = "micro"; type = "micro";
vbus-gpio = <&gpio vbus-gpios = <&gpio
TEGRA186_MAIN_GPIO(X, 7) TEGRA186_MAIN_GPIO(X, 7)
GPIO_ACTIVE_LOW>; GPIO_ACTIVE_LOW>;
id-gpio = <&pmic 0 GPIO_ACTIVE_HIGH>; id-gpios = <&pmic 0 GPIO_ACTIVE_HIGH>;
}; };
}; };
usb2-1 { usb2-1 {
......
...@@ -1461,17 +1461,17 @@ ports { ...@@ -1461,17 +1461,17 @@ ports {
usb2-0 { usb2-0 {
status = "okay"; status = "okay";
vbus-supply = <&vdd_usb_vbus_otg>; vbus-supply = <&vdd_usb_vbus_otg>;
usb-role-switch;
mode = "otg"; mode = "otg";
usb-role-switch;
connector { connector {
compatible = "usb-b-connector", compatible = "gpio-usb-b-connector",
"gpio-usb-b-connector"; "usb-b-connector";
label = "micro-USB"; label = "micro-USB";
type = "micro"; type = "micro";
vbus-gpio = <&gpio TEGRA_GPIO(Z, 0) vbus-gpios = <&gpio TEGRA_GPIO(Z, 0)
GPIO_ACTIVE_LOW>; GPIO_ACTIVE_LOW>;
id-gpio = <&pmic 0 0>; id-gpios = <&pmic 0 GPIO_ACTIVE_HIGH>;
}; };
}; };
......
...@@ -513,15 +513,15 @@ ports { ...@@ -513,15 +513,15 @@ ports {
usb2-0 { usb2-0 {
status = "okay"; status = "okay";
mode = "peripheral"; mode = "peripheral";
usb-role-switch; usb-role-switch;
connector { connector {
compatible = "usb-b-connector", compatible = "gpio-usb-b-connector",
"gpio-usb-b-connector"; "usb-b-connector";
label = "micro-USB"; label = "micro-USB";
type = "micro"; type = "micro";
vbus-gpio = <&gpio TEGRA_GPIO(CC, 4) vbus-gpios = <&gpio TEGRA_GPIO(CC, 4)
GPIO_ACTIVE_LOW>; GPIO_ACTIVE_LOW>;
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment