imx8mm microUSB OTG not work

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

imx8mm microUSB OTG not work

1,647 次查看
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,468 次查看
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,611 次查看
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 项奖励
回复