]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ARM: dts: imx7d-smegw01: Fix USB host over-current polarity
authorFabio Estevam <festevam@denx.de>
Tue, 17 Jan 2023 11:25:10 +0000 (08:25 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 10:28:15 +0000 (11:28 +0100)
commit 1febf88ef907b142fdde34f7c64ed3535d9339e4 upstream.

Currently, when resetting the USB modem via AT commands, the modem is
no longer re-connected.

This problem is caused by the incorrect description of the USB_OTG2_OC
pad. It should have pull-up enabled, hysteresis enabled and the
property 'over-current-active-low' should be passed.

With this change, the USB modem can be successfully re-connected
after a reset.

Cc: stable@vger.kernel.org
Fixes: 9e683009c9bb ("ARM: dts: imx7d-smegw01: Add support for i.MX7D SMEGW01 board")
Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/boot/dts/imx7d-smegw01.dts

index 546268b8d0b13b665d71fdfcf76a0e01e31b9ce4..c0f00f5db11e15004405675494eb5a1ed46262f8 100644 (file)
 &usbotg2 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_usbotg2>;
+       over-current-active-low;
        dr_mode = "host";
        status = "okay";
 };
 
        pinctrl_usbotg2: usbotg2grp {
                fsl,pins = <
-                       MX7D_PAD_UART3_RTS_B__USB_OTG2_OC       0x04
+                       MX7D_PAD_UART3_RTS_B__USB_OTG2_OC       0x5c
                >;
        };