From: Fabio Estevam Date: Tue, 17 Jan 2023 11:25:10 +0000 (-0300) Subject: ARM: dts: imx7d-smegw01: Fix USB host over-current polarity X-Git-Tag: v6.1.15~418 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=334ce90fadd14b2438cae75f76b8323fb4c69c15;p=platform%2Fkernel%2Flinux-starfive.git ARM: dts: imx7d-smegw01: Fix USB host over-current polarity 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: 9ac0ae97e349 ("ARM: dts: imx7d-smegw01: Add support for i.MX7D SMEGW01 board") Signed-off-by: Fabio Estevam Signed-off-by: Shawn Guo Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/arm/boot/dts/imx7d-smegw01.dts b/arch/arm/boot/dts/imx7d-smegw01.dts index 546268b..c0f00f5 100644 --- a/arch/arm/boot/dts/imx7d-smegw01.dts +++ b/arch/arm/boot/dts/imx7d-smegw01.dts @@ -198,6 +198,7 @@ &usbotg2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usbotg2>; + over-current-active-low; dr_mode = "host"; status = "okay"; }; @@ -374,7 +375,7 @@ pinctrl_usbotg2: usbotg2grp { fsl,pins = < - MX7D_PAD_UART3_RTS_B__USB_OTG2_OC 0x04 + MX7D_PAD_UART3_RTS_B__USB_OTG2_OC 0x5c >; };