Skip to contentSkip to conversation

ARM: dts: imx8mm-venice-gw{72xx,73xx}: fix OTG controller OC mode

PATCH Applied Tim Harvey 2 participants 2 messages Apr 1, 2022 – Apr 11, 2022

Subsystems (3)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore

Tim Harvey

author
#0 lore raw

PATCH 1/1 ARM: dts: imx8mm-venice-gw{72xx,73xx}: fix OTG controller OC mode

Both the GW72xx and GW73xx boards have USB1 routed to a USB OTG connector and USB2 routed to a USB hub.

The OTG connector has over-current protection with an active-low pin and the USB1 to HUB connection has no over-current protection (as the HUB itself implements this for its downstream ports).

Add proper dt nodes to specify the over-current pin polarity for USB1 and disable over-current protection for USB2.

Fixes 6f30b27c5ef5 ("arm64: dts: imx8mm: Add Gateworks i.MX 8M Mini Development Kits")
---
 arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi | 2 ++
 arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx.dtsi | 2 ++
 2 files changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi +2 -0
index 27afa46a253a..b0de99b4a608 100644
@@ -139,12 +139,14 @@
 
 &usbotg1 {
 	dr_mode = "otg";
+	over-current-active-low;
 	vbus-supply = <&reg_usb_otg1_vbus>;
 	status = "okay";
 };
 
 &usbotg2 {
 	dr_mode = "host";
+	disable-over-current;
 	vbus-supply = <&reg_usb_otg2_vbus>;
 	status = "okay";
 };
arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx.dtsi +2 -0
index a59e849c7be2..3c26c125678d 100644
@@ -166,12 +166,14 @@
 
 &usbotg1 {
 	dr_mode = "otg";
+	over-current-active-low;
 	vbus-supply = <&reg_usb_otg1_vbus>;
 	status = "okay";
 };
 
 &usbotg2 {
 	dr_mode = "host";
+	disable-over-current;
 	vbus-supply = <&reg_usb_otg2_vbus>;
 	status = "okay";
 };
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Applied
#1 lore raw
Quoted 7 lines · Tim Harvey

Both the GW72xx and GW73xx boards have USB1 routed to a USB OTG connector and USB2 routed to a USB hub.

The OTG connector has over-current protection with an active-low pin and the USB1 to HUB connection has no over-current protection (as the HUB itself implements this for its downstream ports).

Quoted 6 lines

Add proper dt nodes to specify the over-current pin polarity for USB1 and disable over-current protection for USB2.

Fixes 6f30b27c5ef5 ("arm64: dts: imx8mm: Add Gateworks i.MX 8M Mini Development Kits")

Applied, thanks!