Commit e6fd5c1e authored by Stefan Eichenberger's avatar Stefan Eichenberger Committed by Thierry Reding

ARM: tegra: Add usb-role-switch property to USB OTG ports

If an USB port is an OTG port, then we should add the usb-role-switch
property. Otherwise XUSB setup fails and therefore padctl is unable to
set up the ports. This leads to broken USB and PCIe ports. Add the
usb-role-switch properties to Tegra124 device-trees to fix the problem.

The error message shown without this patch is e.g:
usb2-0: usb-role-switch not found for otg mode

[digetx@gmail.com: improved commit message]

Tested-by: Thomas Graichen <thomas.graichen@gmail.com> # T124 Nyan Big
Signed-off-by: default avatarStefan Eichenberger <stefan.eichenberger@toradex.com>
Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent ef6fb987
...@@ -1888,6 +1888,7 @@ ports { ...@@ -1888,6 +1888,7 @@ ports {
usb2-0 { usb2-0 {
status = "okay"; status = "okay";
mode = "otg"; mode = "otg";
usb-role-switch;
vbus-supply = <&reg_usbo1_vbus>; vbus-supply = <&reg_usbo1_vbus>;
}; };
......
...@@ -1880,6 +1880,7 @@ ports { ...@@ -1880,6 +1880,7 @@ ports {
usb2-0 { usb2-0 {
status = "okay"; status = "okay";
mode = "otg"; mode = "otg";
usb-role-switch;
vbus-supply = <&reg_usbo1_vbus>; vbus-supply = <&reg_usbo1_vbus>;
}; };
......
...@@ -466,6 +466,7 @@ usb2-0 { ...@@ -466,6 +466,7 @@ usb2-0 {
vbus-supply = <&vdd_usb1_vbus>; vbus-supply = <&vdd_usb1_vbus>;
status = "okay"; status = "okay";
mode = "otg"; mode = "otg";
usb-role-switch;
}; };
usb2-1 { usb2-1 {
......
...@@ -973,7 +973,7 @@ ports { ...@@ -973,7 +973,7 @@ ports {
usb2-0 { usb2-0 {
status = "okay"; status = "okay";
mode = "otg"; mode = "otg";
usb-role-switch;
vbus-supply = <&vdd_usb1_vbus>; vbus-supply = <&vdd_usb1_vbus>;
}; };
......
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