Hi All,
I am looking for any help with USB host 2 of the i.MX6DL.
While USB host 1 and USB OTG both work fine, it seems that USB hosts 2 and 3 are not supported by mainline linux kernel (4.9.20 or newer). Here's what I get:
[ 1.913802] imx_usb: probe of 2184400.usb failed with error -22
I've found several threads with patches that could help, but most of them are very old (pre device tree).
One problem are the missing accesses to the non core usb registers, so I've tried to add them in usbmisc_imx6q_init of usbmisc_imx.c.
But as long as probing fails I don't get there.
Any idea where I can find information beyond what is easy to find?
Thanks,
Michael
Solved! Go to Solution.
Hi Michael
one can follow usb device tree documentation
imx_4.9.11_1.0.0_ga/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt
linux-imx.git - i.MX Linux Kernel
usbh2
example in linux/arch/arm/boot/dts/imx6q-arm2-hsic.dts
linux-imx.git - i.MX Linux Kernel
and debug it in drivers/usb/chipidea/ci_hdrc_imx.c
Best regards
igor
Hi Igor,
USB driver files in
linux-imx.git - i.MX Linux Kernel
are different from those in current BSP!
I'll give it a try.
Thanks,
Michael
Hi Igor,
Thanks for your response.
The thread
is the one I've tried to reproduce as far as possible. But it is for 3.10, and if you follow it, they didn't succeed...
I've checked NXP's current BSP (4.9.11) also, but it seems to me that USB host 2 and 3 are not supported there too. At least I can't find the accesses to the non core usb registers, and without the activation of the clocks host 2 and 3 won't work.
Any other idea?
Best Regards,
Michael
Hi Michael
one can follow usb device tree documentation
imx_4.9.11_1.0.0_ga/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt
linux-imx.git - i.MX Linux Kernel
usbh2
example in linux/arch/arm/boot/dts/imx6q-arm2-hsic.dts
linux-imx.git - i.MX Linux Kernel
and debug it in drivers/usb/chipidea/ci_hdrc_imx.c
Best regards
igor
Hi Michael
one can look on
and NXP BSPs described on
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------