MCM-iMX95 Yocto Linux: USB
USB
The evaluation carrier-board features two USB ports.
USB2.0 connector J2 is multiplexed with mini-PCIe socket P8, to use it , ensure that jumper E1 is open.
USB3.0 connector J3 is multiplexed with micro-USB connector P21 for SDP as shown here.
USB peripheral mode
Micro-USB connector can be operated in peripheral mode.
To do it, adjust the device tree arch/arm64/boot/dts/compulab/mcm-imx95-som.dtsi and change the following node:
&usb3_dwc3 {
dr_mode = "peripheral";
status = "okay";
};
Available gadgets for the UBS device mode:
| gadget | command | Test scenario |
| serial device | modprobe g_serial |
on module run: systemctl start serial-getty@ttyGS0 on Linux host PC run: sudo minicom -D /dev/ttyACM0 115200 |
| network device | modprobe g_ether | |
| mass storage device | modprobe g_mass_storage file=/dev/sdX | Expose block devices from module to host, replace sdX with your choice |