Hi ,
I am working on imx8mq customize board. I have got error when we configure as device mode and host.
Device tree configuratrion
&usb_dwc3_0 {
dr_mode = "otg";
//extcon = <&extcon_usb0>;
//dr_mode = "peripheral";
//hnp-disable;
//srp-disable;
//adp-disable;
//usb-role-switch;
//snps,dis-u1-entry-quirk;
//snps,dis-u2-entry-quirk;
//maximum-speed = "super-speed";
status = "okay";
port {
usb3_drd_sw: endpoint {
remote-endpoint = <&typec_dr_sw>;
};
};};
Dmege error :
usb usb2-port1: Cannot enable. Maybe the USB cable is bad?
[ 129.288930] usb usb2-port1: config error
Also I have checked with other cable but same issue.
Please help me on same
Thanks,
Saurav
解決済! 解決策の投稿を見る。
Hi,
Thank you for response. issue resolved.
Regards,
Saurav
Hi,
That issue in configuration of USB , need to operate GPIO for enable and disable of Device mode and Host mode.
For that we used our custom driver and configure GPIO in that.
Thanks,
Saurav
Hi Saurav,
Hope you are doing well.
Apologies for delay in response.
1. If possible could you please share the USB schematic section from processor to the USB connector?
2. Rather than using USB cable, are you able to detect the USB OTG port as a device port after plugging in any storage device?
Thanks & Regards,
Ritesh M Patel