]> www.infradead.org Git - linux.git/commitdiff
ARM: tegra: Add usb-role-switch property to USB OTG ports
authorStefan Eichenberger <stefan.eichenberger@toradex.com>
Sat, 11 Dec 2021 21:13:59 +0000 (00:13 +0300)
committerThierry Reding <treding@nvidia.com>
Wed, 15 Dec 2021 16:29:54 +0000 (17:29 +0100)
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: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi
arch/arm/boot/dts/tegra124-apalis.dtsi
arch/arm/boot/dts/tegra124-nyan.dtsi
arch/arm/boot/dts/tegra124-venice2.dts

index f5440ae14cb4e7f107d32c16b19853ec19d12407..dbb0da08cb95d65b53926871e01d08bdc5d5eaa3 100644 (file)
                        usb2-0 {
                                status = "okay";
                                mode = "otg";
+                               usb-role-switch;
                                vbus-supply = <&reg_usbo1_vbus>;
                        };
 
index 1d83f2e254c582f56d65f9bc506b75c5e5a6b7ec..d3f16c117b0ca2d2e34155bb2e70de395fc07972 100644 (file)
                        usb2-0 {
                                status = "okay";
                                mode = "otg";
+                               usb-role-switch;
                                vbus-supply = <&reg_usbo1_vbus>;
                        };
 
index 998b129321f897343f1f345b854eca7fa428f352..cab0a6e95b7e5f285c8f9a779ace792e69e62313 100644 (file)
                                vbus-supply = <&vdd_usb1_vbus>;
                                status = "okay";
                                mode = "otg";
+                               usb-role-switch;
                        };
 
                        usb2-1 {
index 7985d1cbc1c08a6574094fb72963a0b5322cc3fc..232c90604df9f2650e747a9d82ff919e95643fc7 100644 (file)
                        usb2-0 {
                                status = "okay";
                                mode = "otg";
-
+                               usb-role-switch;
                                vbus-supply = <&vdd_usb1_vbus>;
                        };