Announcements

Learn how to optimise USB-C for your designs at 18 May's USB-C PD Webinar.
Click here to register.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

M-Sg
Level 2
Level 2
5 replies posted 5 sign-ins First solution authored

Hi.

We're using CYUSB3304 + i.MX8M-Plus + Ubuntu.  Of course I know it is not necessary to use special drivers.

But, we have error messages during Linux startup.

It seems Linux detected CYUSB3304 but failed configuration.

Is there any check points?

 

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.4.70 (wig@wig-TN) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #1 SMP PREEMPT Thu Aug 26 17:37:19 CST 2021

   :

[ 3.101915] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.

  :

[ 3.219038] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 3.227674] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[ 3.241825] ALSA device list:
[ 3.244807] #0: audio-hdmi

  :
[ 3.342818] usb usb2-port1: config error

[ 3.491748] imx6q-pcie 33800000.pcie: Phy link never came up
[ 3.497442] imx6q-pcie 33800000.pcie: failed to initialize host

 

Connection:

CYUSB.US_D* - i.MX8MP.USB2_D*

CYUSB.US_TX* - i.MX8MP.USB2.RX*

CYUSB.US_RX* - i.MX8MP.USB2.TX*

CYUSB.VBUS - 10kR PU and PD

MODE* - 10K PU

1 Solution

I found the mistake.

Resister value of RREF_USB2 was incorrect. 

Ajeeth,  I appreciate your quick response! 

View solution in original post

10 Replies
Ajeethkumar
Moderator
Moderator
Moderator
100 solutions authored 250 replies posted 25 likes received

Hi,

Thanks for posting in Infineon Developer Community!

If not confidential, can you share the schematics? I would like to check if there are any issues with the schematics.

 

Thanks

Ajeeth

0 Likes
lock attach
Attachments are accessible only for community members.
M-Sg
Level 2
Level 2
5 replies posted 5 sign-ins First solution authored

Thanks Ajeeth,

Here is the circuit diagram.

Best regards,

0 Likes
Ajeethkumar
Moderator
Moderator
Moderator
100 solutions authored 250 replies posted 25 likes received

Hi,

  1. Is it possible to get more detailed logs from Linux? I am looking for the logs between [3.101915] and [3.219038], [3.244807] and [3.342818]
  2. Is it possible to analyze USB signals between the host and hub with a USB analyzer?
  3. Did you follow Hardware design guidelines for your layout design?

Thanks,
Ajeeth

0 Likes

Here is an detailed dmesg.

(this is another logs. time frame is no same)

 

[ 3.267151] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000
:
[ 3.281745] hub 1-0:1.0: hub_suspend
:
[ 3.452535] hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0000
[ 3.458054] usb usb2-port1: link state change
[ 3.462431] usb usb2-port1: config error
[ 3.466381] usb usb2-port1: do warm reset
:
[ 3.530354] usb usb2-port1: not warm reset yet, waiting 50ms
[ 3.592227] usb usb2-port1: not warm reset yet, waiting 200ms
[ 3.804258] usb usb2-port1: not warm reset yet, waiting 200ms
[ 4.016239] usb usb2-port1: not warm reset yet, waiting 200ms

0 Likes
Ajeethkumar
Moderator
Moderator
Moderator
100 solutions authored 250 replies posted 25 likes received

Hi,

Could you attach the complete logs(as an attachment) with zero skips?

Please answer my other question in my previous response.

 

Regards,

Ajeeth

0 Likes
lock attach
Attachments are accessible only for community members.

Attached please find the log file.

 

Sorry, we don't have USB analyzer,

We read Layout AN as well.

0 Likes
Ajeethkumar
Moderator
Moderator
Moderator
100 solutions authored 250 replies posted 25 likes received

Hi,

Thanks for the update.

  1. Did the hub enumerate properly? Please attach the "lsusb -v" logs.
  2. I would like to know more about your application. Can you share the details like what are all the devices connected to DS ports? Also, share the complete schematics.
  3. Also, attach the dmesg logs for USB at debug level.

Thanks,
Ajeeth

0 Likes
lock attach
Attachments are accessible only for community members.

1. lsusb -v logs is attached.

2. There is no change if USB mouse is connected to any DS port.

3. Please let me know how to get debug level logs?

0 Likes
Ajeethkumar
Moderator
Moderator
Moderator
100 solutions authored 250 replies posted 25 likes received

Hi,

  1. Thanks for attaching the lsusb logs. It seems like the HX3 hub is not enumerated.
  2. Can you attach the complete schematics? I couldn't see the Upstream and Downstream ports in the schematics.
  3. Use this command to get USB logs at debug level. 
    ~]# dmesg | grep -i usb
    Please refer here to get different types of dmesg logs.

Thanks,
Ajeeth

0 Likes

I found the mistake.

Resister value of RREF_USB2 was incorrect. 

Ajeeth,  I appreciate your quick response!