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?
Are you using NXP EVK board or the board you design yourself?
I'm using the board designed by ourselves.
But it works normally in BSP 4.14.98.
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.