i.MX8MM USB1 role does't change with otg mode

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

i.MX8MM USB1 role does't change with otg mode

273 Views
Eric1994
Contributor III

I was using i.MX8M Mini, with Linux Yocto Project BSP 4.14.98, the role of USB1 port changes when I plug or unplug an otg cable.

root@imx8:/# cat ./sys/kernel/debug/ci_hdrc.0/role
host

root@imx8:/# cat ./sys/kernel/debug/ci_hdrc.0/role
gadget

 

Now I'm updating to Linux Yocto Project BSP 5.10.72, the role of  USB1 port is always host.

root@imx8mmevk:~# cat /sys/kernel/debug/usb/ci_hdrc.0/role 
host

The target board is the same, I measured the voltage on the USB1_OTG_ID pin, and it changes from 1.8V to 0V when an otg cable plugs in.

How can I troubleshoot this issue?

Labels (1)
0 Kudos
3 Replies

255 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Are you using NXP EVK board or the board you design yourself?

0 Kudos

253 Views
Eric1994
Contributor III

I'm using the board designed by ourselves.

But it works normally in BSP 4.14.98.

0 Kudos

228 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

How about the software setting for the 5.10 ? Using the same setting or changing something?

How about the usb1 hardware design you can share to us we can help check it.

0 Kudos