Skip to contentSkip to conversation

arm64: dts: verdin-imx8mm: add otg2 pd to usbphy

PATCH Applied Philippe Schenker 2 participants 2 messages Aug 11, 2022 – Aug 22, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm64: dts: verdin-imx8mm: add otg2 pd to usbphy

From: Philippe Schenker <[email protected]>

The Verdin iMX8M Mini System on Module does not have USB-ID signal connected on Verdin USB_2 (usbotg2). On Verdin Development board this is no problem, as we have connected a USB-Hub that is always connected.

However, if Verdin USB_2 is desired to be used as a single USB-Host port the chipidea driver does not detect if a USB device is plugged into this port, due to runtime pm shutting down the PHY.

Add the power-domain &pgc_otg2 to &usbphynop2 in order to detect plugging events and enumerate the usb device.

Fixes 6a57f224f734 ("arm64: dts: freescale: add initial support for verdin imx8m mini")

---

Changes in v2:
- Changed word VBUS to USB-ID, as from mailinglist discussions I obviously mixed that up before.

 arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +1 -0
index d1b4582f44c4..34808aa36c2b 100644
@@ -745,6 +745,7 @@ &usbphynop1 {
 };
 
 &usbphynop2 {
+	power-domains = <&pgc_otg2>;
 	vcc-supply = <&reg_vdd_3v3>;
 };
 
Signature · 1 line
2.37.1
Applied
#1 lore raw
Quoted 10 lines · Philippe Schenker

From: Philippe Schenker <[email protected]>

The Verdin iMX8M Mini System on Module does not have USB-ID signal connected on Verdin USB_2 (usbotg2). On Verdin Development board this is no problem, as we have connected a USB-Hub that is always connected.

However, if Verdin USB_2 is desired to be used as a single USB-Host port the chipidea driver does not detect if a USB device is plugged into this port, due to runtime pm shutting down the PHY.

Quoted 5 lines

Add the power-domain &pgc_otg2 to &usbphynop2 in order to detect plugging events and enumerate the usb device.

Fixes 6a57f224f734 ("arm64: dts: freescale: add initial support for verdin imx8m mini")

Applied, thanks!