Hi Guys,
I met similar requirements (https://community.nxp.com/message/374115 ) in imx6d board. the hardware didn't attach USB_OTG_ID pin, need to use software to implement device/host mode switch.
the bsp is linux4.1.15. are there any good suggestion for this? thanks.
Hi,
About the usb otg mode you can refer to https://community.nxp.com/thread/319562#comment-380468
1. USB OTG works as a device
USB_OTG_ID pin should be pulled down to HIGH
2. USB_OTG works as a host
USB_OTG_ID pin should be pulled down to LOW
3. Designing USB OTG works as dual role
If you want USB OTG to not only works as device,but also host, you can design it to be dual role. there are 2 ways to realize it on your board.
(1)Only use one microUSB connector.
(2)Using MicroUSB connector for device role, and using USB Host connector for host interface.
Have a nice day
Rita