Skip to content

Commit 4c79865

Browse files
GateworksShawn Guo
authored andcommitted
ARM: dts: imx8mm-venice-gw{71xx,72xx,73xx}: fix OTG controller OC mode
The GW71xx, GW72xx and GW73xx boards have USB1 routed to a USB OTG connectors and USB2 routed to a USB hub. The OTG connector has a over-currently 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: 6f30b27 ("arm64: dts: imx8mm: Add Gateworks i.MX 8M Mini Development Kits") Cc: [email protected] Signed-off-by: Tim Harvey <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent 574518b commit 4c79865

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,14 @@
146146

147147
&usbotg1 {
148148
dr_mode = "otg";
149+
over-current-active-low;
149150
vbus-supply = <&reg_usb_otg1_vbus>;
150151
status = "okay";
151152
};
152153

153154
&usbotg2 {
154155
dr_mode = "host";
156+
disable-over-current;
155157
status = "okay";
156158
};
157159

arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,14 @@
211211

212212
&usbotg1 {
213213
dr_mode = "otg";
214+
over-current-active-low;
214215
vbus-supply = <&reg_usb_otg1_vbus>;
215216
status = "okay";
216217
};
217218

218219
&usbotg2 {
219220
dr_mode = "host";
221+
disable-over-current;
220222
vbus-supply = <&reg_usb_otg2_vbus>;
221223
status = "okay";
222224
};

arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,14 @@
238238

239239
&usbotg1 {
240240
dr_mode = "otg";
241+
over-current-active-low;
241242
vbus-supply = <&reg_usb_otg1_vbus>;
242243
status = "okay";
243244
};
244245

245246
&usbotg2 {
246247
dr_mode = "host";
248+
disable-over-current;
247249
vbus-supply = <&reg_usb_otg2_vbus>;
248250
status = "okay";
249251
};

0 commit comments

Comments
 (0)