On our custom i.MX93 board we are trying to implement an USB-OTG (DRD) port that is capable of switching the USB power (usb-pwr-en) via GPIO, as we cannot use the dedicated HSIOMIX_OTG_PWR1 pin.
Can someone hint us to the part in the driver (ci_hdrc_imx/usbmisc_imx/core/...) where this power-enable is handled?
Just for testing we used the ENET1_MDIO pin, and confirmed, that the power is switched on/off in relation to the ID-pin
Hello,
Unfortunately I do not know exactly at which part is this being handled in the driver as I would need to deeply inspect it, but is this really needed?
As far as I know the USB_OTG_PWR is used as an standard GPIO, so the specific pin does not have to be used, there are multiple device tree example for this as you can see here:
https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm/boot/dts/nxp/imx/imx6q-gw5400-a.dts#L94
https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm/boot/dts/nxp/imx/imx6q-gw5400-a.dts#L359
https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm/boot/dts/nxp/imx/imx6q-gw5400-a.dts#L487
Best regards/Saludos,
Aldo.