ARM: dts: imx6dl: prtrvt, prtvt7, prti6q, prtwd2: fix USB related warnings
authorOleksij Rempel <o.rempel@pengutronix.de>
Tue, 30 May 2023 12:03:44 +0000 (14:03 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sun, 4 Jun 2023 13:07:28 +0000 (21:07 +0800)
Fix USB-related warnings in prtrvt, prtvt7, prti6q and prtwd2 device trees
by disabling unused usbphynop1 and usbphynop2 USB PHYs and providing proper
configuration for the over-current detection. This fixes the following
warnings with the current kernel:
 usb_phy_generic usbphynop1: dummy supplies not allowed for exclusive requests
 usb_phy_generic usbphynop2: dummy supplies not allowed for exclusive requests
 imx_usb 2184200.usb: No over current polarity defined

By the way, fix over-current detection on usbotg port for prtvt7, prti6q
and prtwd2 boards. Only prtrvt do not have OC on USB OTG port.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6dl-prtrvt.dts
arch/arm/boot/dts/imx6qdl-prti6q.dtsi

index 56bb1ca56a2df8e72971e1430802cef2bf88e039..36b031236e4756b4a676d5575e3f820a6e172797 100644 (file)
        status = "disabled";
 };
 
+&usbotg {
+       disable-over-current;
+};
+
 &vpu {
        status = "disabled";
 };
index f0db0d4471f40f014d69613b7822fbd22fe27ae4..36f84f4da6b0ded749241412020a36c5ac258d5d 100644 (file)
@@ -69,6 +69,7 @@
        vbus-supply = <&reg_usb_h1_vbus>;
        phy_type = "utmi";
        dr_mode = "host";
+       disable-over-current;
        status = "okay";
 };
 
        pinctrl-0 = <&pinctrl_usbotg>;
        phy_type = "utmi";
        dr_mode = "host";
-       disable-over-current;
+       over-current-active-low;
        status = "okay";
 };
 
+&usbphynop1 {
+       status = "disabled";
+};
+
+&usbphynop2 {
+       status = "disabled";
+};
+
 &usdhc1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_usdhc1>;