Hello,
I'm working with a custom board based on the i.MX8ULP, and I'm trying to use the eMMC as a USB mass storage device. I followed the same steps that worked on the IMX8ULP EVK9 board, where the USB mass storage shows up correctly on my PC.
However, when I do the same on my custom board, the PC doesn’t detect the USB storage.
After comparing the schematics of the EVK9 and my custom board, I noticed that the EVK uses the USB_VBUS_DETECT and USB_OC pins, but in my board, these pins are left floating and are not connected.
So my question is:
Do I need to change the Yocto Device Tree (DTS) to ignore or disable the USB_VBUS_DETECT and USB_OC pins?
Here's the current USB node from my device tree:
&usbotg1 {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&pinctrl_otgid1>;
pinctrl-1 = <&pinctrl_otgid1>;
dr_mode = "otg";
hnp-disable;
srp-disable;
adp-disable;
over-current-active-low;
status = "okay";
};
Do I need to update anything else in the DTS or kernel to get USB mass storage working on my custom board?
Best regards,
Yash Parekh
解決済! 解決策の投稿を見る。
Hello,
For OTG mode, the USB_VBUS_DETECT is necessary. You could try to set dr_mode to peripheral in dts.
dr_mode = "peripheral";
disable-over-current;
Or if you don't want to modify dr_mode , you can pull up the USB_VBUS_DETECT on board.
Best Regards,
Zhiming
Hello,
For OTG mode, the USB_VBUS_DETECT is necessary. You could try to set dr_mode to peripheral in dts.
dr_mode = "peripheral";
disable-over-current;
Or if you don't want to modify dr_mode , you can pull up the USB_VBUS_DETECT on board.
Best Regards,
Zhiming