[imx6ul] usb port 1 could not detect usb hub

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

[imx6ul] usb port 1 could not detect usb hub

2,085 Views
jimhuangtw
Contributor II

Hi NXP,

Per our design, USB HUB(GL852GT) and Mirco USB are both connecting USB1.

HW use Jumper to switch one of them.

 

However, we encounter the problem is USB1 could not detect USB HUB but the Mirco USB is OK.

We also test USB HUB to connect USB2 of EVM board and our board, with current BSP FW.

And, USB HUB could be detected on USB2.

 

Does it relate to the iMX6UL-14x14-evk.dts setting?

404 &usbotg1 {
405 pinctrl-names = "default";
406 pinctrl-0 = <&pinctrl_usb_otg1_id>;
407 dr_mode = "otg";
408 srp-disable;
409 hnp-disable;
410 adp-disable;
411 status = "okay";
412 };
413
414 &usbotg2 {
415 dr_mode = "host";
416 disable-over-current;
417 status = "okay";
418 };
419
420 &usbphy1 {
421 tx-d-cal = <0x5>;
422 };
423
424 &usbphy2 {
425 tx-d-cal = <0x5>;
426 };

679 pinctrl_usb_otg1_id: usbotg1idgrp {
680 fsl,pins = <
681 MX6UL_PAD_GPIO1_IO00__ANATOP_OTG1_ID 0x17059
682 >;
683 };

Thanks,

Jim

Labels (3)
0 Kudos
5 Replies

1,449 Views
jimhuangtw
Contributor II

Hi NXP,

What the next step we could do the further check for this issue?

I need to confirm it is HW issue, or not?

Thanks,

Jim

0 Kudos

1,450 Views
nagarjun_cs90
Contributor I

Hi Jim,

I have almost similar problem. But, I am using Imx6ul sbc express. Whenever I use otg mode on USB1 or  USB2, hub does not detect. Did you get any solution? Also, how do you switch to Micro USB mode?

Thanks,

Nag

0 Kudos

1,450 Views
jimhuangtw
Contributor II

Hi Wigors,

We tried to do your suggestion, but it could not detect USB HUB.

Is there other debug command or message helping analysis this issue? 

(3) for you application

--USB OTG1 should be set to be HOST mode

--USB OTG1 ID should be pulled down to LOW via a resistor ( 2.2K , or 3.3K or others)


452 &usbotg1 {

453     pinctrl-names = "default";

454     pinctrl-0 = <&pinctrl_usb_otg1_id>;

455     dr_mode = "host";

456     srp-disable;

457     hnp-disable;

458     adp-disable;

459     status = "okay";

460 };

 

root@imx6ul7d:~# lsusb

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Thanks,

Jim

0 Kudos

1,450 Views
jimhuangtw
Contributor II

Hi Wigors,

Thanks for the information, I will check with HW for the "USB OTG ID" pin?.
Could you alsoprovide more details about the source code?

Where I should to check it.

Currently, I use imx6ul-14x14-evk configuration as default as our board FW image.

We don't modify USB profile and drivers.
The only different is dts file modification. 

Per the FW(BSP) status, do I need to check source code? 

Thanks,

Jim

0 Kudos

1,450 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Jim,

   About i.mx6UL USB OTG ports, you should pay attention to these several points.

(1) 2 USB OTG ports

there are 2 USB OTG ports, only one of them can be used to be USB OTG(dual role: Host or device), the other one should be work at HOST MODE.

(2)USB OTG working at Dual Role mode

USB OTG ID should be pulled down to LOW if you want it to work at HOST mode, and the pin should be pulled up to HIGH. By default, the ID pin is HIGH level, it means if you don't set the pin, USB OTG will work at device mode.

(3) for you application

--USB OTG1 should be set to be HOST mode

--USB OTG1 ID should be pulled down to LOW via a resistor ( 2.2K , or 3.3K or others)

So check you circuits or source code again, please!

Have a nice day!

TIC wediong sun

0 Kudos