Imx8mp evk with Type C port 1 use in gadget mode

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

Imx8mp evk with Type C port 1 use in gadget mode

191 Views
jignesh1
Contributor I

we are using yocto build with kernel 6.1 release. I have tested typeC port 1 at uboot level with ums and it is working fine.

When I boot at kernel level then notice that I do not able to see power when i plug pendrive. Also when plug cable to my PC to validate gadget mode it is also not working.

For gadget mode I got following issue.

root@imx8mp-lpddr4-evk:~# modprobe g_mass_storage file=/dev/sda1 removable=1
[ 6586.767878] UDC core: g_mass_storage: couldn't find an available UDC
root@imx8mp-lpddr4-evk:~#

It looks like at kernel level we are not able to use typeC port 1 in host mode or gadget mode. Anything we need to change in kernel to make this things working ?

Labels (1)
0 Kudos
Reply
1 Reply

151 Views
clay_miller
NXP Employee
NXP Employee

Hi,

I have a default 6.6 build that is able to use the gadget mode mass storage on USB C port 1 successfully. I'm building a 6.1 image to currently and can check it once its complete.

Are you using a pre-built released image or did you do a fresh yocto build? 

If a custom yocto build was used, you might check that the kernel has all the relevant drivers enabled from the menuconfig. The default Linux and Uboot device trees in our BSP show the same USB mode configurations. 

Can you check your usb modes for me?

cat /sys/kernel/debug/usb/38100000.usb/mode

cat /sys/kernel/debug/usb/38200000.usb/mode

 

Regards,

Clay

0 Kudos
Reply