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

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

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

Jump to solution
1,534 Views
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 Kudos
Reply
1 Solution
1,452 Views
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

View solution in original post

0 Kudos
Reply
5 Replies
1,495 Views
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,466 Views
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?

Tags (1)
0 Kudos
Reply
1,453 Views
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 Kudos
Reply
1,516 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @WolsYang,

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

 

Thanks & Regards,
Dhruvit.

0 Kudos
Reply
1,510 Views
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 Kudos
Reply