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?