when the imx515 otg interface to be using as a host mode,it is working well. in this mode,the pin ID is connect to ground.
now ,I want to use this interface as a OTG function, when we let the ID pin floating,our kernel running erro,stop on the bleow message.
this issue was reproduce on the imx515 evk board also. who can help me ?
regulator_init_complete: disabling VVIDEO
regulator_init_complete: disabling VSD
regulator_init_complete: disabling VDIG
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
mmc0: new SDHC card at address fdfd
mmcblk0: mmc0:fdfd SD04G 3.69 GiB
mmcblk0: unknown partition table
eth0: Freescale FEC PHY driver Generic PHY (mii_bus:phy_addr=0:00, irq=-1)
Solved! Go to Solution.
if we do a menuconfig about usb as bellow and make the otg ID pin to ground,we can find a mass storage device in the windows device manager,but if the otg ID pin floating,the kernel running stop on the above message all the same:
CONFIG_USB_EHCI_ARC_OTG—Enable support for the USB OTG port in HS/FS Host
mode.built as Y
• CONFIG_USB_GADGET—USB Gadget Support: built as y
• CONFIG_USB_OTG —OTG Support: built as Y
• CONFIG_MXC_OTG—USB OTG pin detect support for UTMI PHY: built as Y
• build USB GADGET driver as M, for example:
CONFIG_USB_ETH — usb ethernet gadget , build as M
CONFIG_USB_FILE_STORAGE—usb mass storage gadget, build as M
then , if you want to use EVK as mass storage device, insmod g_file_storage.ko
why the otg ID pin can produce the effect?
which BSP are you using?
Please try the ver. 11.09 BSP. you can download it from the i.MX53QSB web page:
11.09 can also support iMX51. In fact, each freescale BSP release can support all iMX chip but we only do the fully test on one platform. For 11.09, we only done the fully test for iMX53. But from the ver 10.11 to 11.09, we had already fixed many USB related issues which can also be used on iMX51.
So please try the latest BSP first. If it works, you can update your BSP to Freescale new version or back porting the USB related driver from latest BSP to your BSP version.
As you said,when we using the version of 11.09 ,the issue was solved and kernel can running well Although ID pin is also floating,the OTG function can doing as a host or a device According to the ID pin's states.
thank you very much.