USB power enable on i.MX93

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB power enable on i.MX93

250 Views
dpog
Contributor IV

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

Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

173 Views
AldoG
NXP TechSupport
NXP TechSupport

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.

0 Kudos
Reply