imx8mm microUSB OTG not work

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx8mm microUSB OTG not work

1,665件の閲覧回数
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 件の賞賛
返信
2 返答(返信)

1,486件の閲覧回数
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 件の賞賛
返信

1,629件の閲覧回数
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 件の賞賛
返信