Hi,
I know that iMX6 has a OTG enabled USB controller and I would like to know if an API is available to change the role of the USB controller dynamically from host mode to device mode.
I expect to call this API from user space.
After calling the API I exepct the USB host stack to go down and the USB gadget stack to come up.
Thank you.
Salvatore
Hello Salvatore,
You need to control the USB_OTG_ID pin in order to change from one to another here is another thread that you can follow regarding this topic:
How to control the USB_OTG_PWR_CTL_WAKE and USB_OTG_ID of i.MX6 in Linux BSP
Have a great day,
Jaime
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------