[imx8qxpmek ][uboot][usb] How to test usb 2.0 high speed electrical on i.mx8x?

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

[imx8qxpmek ][uboot][usb] How to test usb 2.0 high speed electrical on i.mx8x?

跳至解决方案
1,840 次查看
WolsYang
Contributor IV

Hi NXP,

I wish I can test usb 2.0 high speed electrical on i.mx8x.

I notice there has a usb tool in uboot.

But when I try to use it I got an error.

On imx8qm-mek

=> usb start
starting USB...
Bus usb@5b0d0000: usb dr_mode not found
Port not available.
Bus usbh3: Failed to initialize board for USB
probe failed, error -62

On imx8qxp custom board :

=> usb start
starting USB...
Bus usb@5b0d0000: Port not available.
Bus usbh3: Failed to initialize board for USB
probe failed, error -22

How can I fix it?

0 项奖励
回复
1 解答
1,758 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @WolsYang ,

I hope you are doing well.
 
Yes, you need to make changes in the u-boot configuration to use USB 2.0.
 
In i.MX8QXP, U-Boot can support only one USB gadget driver, the USB 3.0 port is enabled by default.
To use the USB 2.0 port, modify the configurations to enable it and disable the USB 3.0 gadget driver.
 
Please refer to  8.5.1 Enabling USB 2.0 in U-Boot for i.MX 8QuadMax/8QuadXPlus MEK in Android User's Guide for required changes.
 
Thanks & Regards,
Dhruvit Vasavada

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,801 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @WolsYang,

Please make sure that your uboot device tree contains the usbotg1 node and has the status = "okay"  and pinctrl properties for the USB_OTG1_PWR pin.
One can refer kernel device tree and make sure usbotg1 in the imx8qm-mek device tree contains properties as below.

&usbotg1 {
vbus-supply = <&reg_usb_otg1_vbus>;
srp-disable;
hnp-disable;
adp-disable;
        pinctrl-names = "default";
pinctrl-0 = <&pinctrl_usbotg1>;
power-polarity-active-high;
disable-over-current;
status = "okay";
};
 
 
Is the USB port detectable in the kernel?
 
Please make sure that you have correctly configured The USB PHY power supply as described in the 19.3 USB overview for i.MX 8 in i.MX Porting Guide.
1,772 次查看
WolsYang
Contributor IV

Hi @Dhruvit ,

Sorry for the late reply, USB works well in kernel but not in Uboot.

The reason I wish I can use USB in Uboot is for open USB test mode(Which I see a cmd in Uboot ' $ usb test ').

It seems like I have to set the Uboot USB config as Kernel USB config to make it work, right?

标记 (1)
0 项奖励
回复
1,759 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @WolsYang ,

I hope you are doing well.
 
Yes, you need to make changes in the u-boot configuration to use USB 2.0.
 
In i.MX8QXP, U-Boot can support only one USB gadget driver, the USB 3.0 port is enabled by default.
To use the USB 2.0 port, modify the configurations to enable it and disable the USB 3.0 gadget driver.
 
Please refer to  8.5.1 Enabling USB 2.0 in U-Boot for i.MX 8QuadMax/8QuadXPlus MEK in Android User's Guide for required changes.
 
Thanks & Regards,
Dhruvit Vasavada

0 项奖励
回复
1,822 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @WolsYang,

Please confirm if you have enabled USB support in U-Boot.

 

Thanks & Regards,
Dhruvit.

0 项奖励
回复
1,816 次查看
WolsYang
Contributor IV

Hi @Dhruvit 

CONFIG_USB=y

#Get

=> usb start
starting USB...
Bus usb@5b0d0000: Port not available.
Bus usbh3: Failed to initialize board for USB
probe failed, error -22

Should I turn some thing else on?

0 项奖励
回复