imx8mm microUSB OTG not work

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

imx8mm microUSB OTG not work

1,648 Views
FoxYang
Contributor I

Hi,

My customer board need OTG and use microUSB without type-c.

I have reference i.MX8MM & i.MX8MQ USB2.0 Design Without USB TYPE-C 

And set device tree :

&usbotg1 {
    dr_mode = "otg";
    status = "okay";
};

 

When I connect USB flash drive it's work,but connect to PC it's not work.

Need any setting?

Thanks.

0 Kudos
Reply
2 Replies

1,469 Views
kavita
Contributor I

@John9967,

Hi John,

I have same issue with microB USB2.0 with iMX8MM NXP processor.

I have updated the dts as you suggested. Still the issue persists.

 

Below is my dtsi:

&usbotg1 {
- dr_mode = "otg";
+ dr_mode = "device";
picophy,pre-emp-curr-control = <3>;
picophy,dc-vol-level-adjust = <7>;
+ extcon = <&extcon_usb1>;
hnp-disable;
srp-disable;
adp-disable;
- snps,dis-u1-entry-quirk;
- snps,dis-u2-entry-quirk;
- extcon = <&typec_ptn5150>;
status = "okay";
+ wakeup-source;
};

 

+ extcon_usb1: extcon_usb1 {
+ compatible = "linux,extcon-usb-gpio";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_extcon>;
+ id-gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>;
+ status = "okay";
+ };

Guide me to get access using PC. I am willing to use adb.

Thanks in Advance!

0 Kudos
Reply

1,612 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Software is like this.  You mean you can not download images to board by the usb port from PC?  How about your design? The same with the link?

0 Kudos
Reply