TX2 Custom Board USB Problem

Hi,

I’m using a custom carrier board, which has a TUSB8041 USB hub. My L4T version is 28.1 and i flash module using Jetpack 3.1. Configuration in use is #2(Default CB). Unfortunately, I cant use any USB device on this custom board. “lsusb” command shows nothing. This is the output of “dmesg | grep usb”.

[    0.142717] node /plugin-manager/fragment-500-xusb-config match with board >=3310-1000-500
[    0.305126] usbcore: registered new interface driver usbfs
[    0.305185] usbcore: registered new interface driver hub
[    0.305298] usbcore: registered new device driver usb
[    0.371616] vdd-usb0-5v: 5000 mV 
[    0.371786] vdd-usb1-5v: 5000 mV 
[    2.597898] usbcore: registered new interface driver r8152
[    2.597932] usbcore: registered new interface driver asix
[    2.597958] usbcore: registered new interface driver ax88179_178a
[    2.597984] usbcore: registered new interface driver cdc_ether
[    2.598022] usbcore: registered new interface driver smsc95xx
[    2.598051] usbcore: registered new interface driver net1080
[    2.598077] usbcore: registered new interface driver cdc_subset
[    2.598104] usbcore: registered new interface driver zaurus
[    2.598151] usbcore: registered new interface driver cdc_ncm
[    2.598485] tegra-xotg xotg: usb2 phy is not available yet
[    2.599201] usbcore: registered new interface driver usb-storage
[    2.599263] usbcore: registered new interface driver usbserial
[    2.599289] usbcore: registered new interface driver ftdi_sio
[    2.599308] usbserial: USB Serial support registered for FTDI USB Serial Device
[    2.599332] usbcore: registered new interface driver option
[    2.599352] usbserial: USB Serial support registered for GSM modem (1-port)
[    2.599376] usbcore: registered new interface driver pl2303
[    2.599393] usbserial: USB Serial support registered for pl2303
[    2.599596] tegra-usb-cd usb_cd: otg phy is not available yet
[    2.602091] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[    2.737871] usbcore: registered new interface driver gspca_zc3xx
[    2.743772] usbcore: registered new interface driver usbhid
[    2.743773] usbhid: USB HID core driver
[    4.565711] xhci-tegra 3530000.xhci: can't get usb3-0 phy (-517)
[    4.567784] tegra-xotg xotg: usb2 phy is not available yet
[    4.567925] tegra-usb-cd usb_cd: otg phy is not available yet
[    4.568307] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[    4.571634] xhci-tegra 3530000.xhci: can't get usb3-0 phy (-517)
[    4.572852] tegra-xotg xotg: usb2 phy is not available yet
[    4.572974] tegra-usb-cd usb_cd: otg phy is not available yet
[    4.573319] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[    4.576443] xhci-tegra 3530000.xhci: can't get usb3-0 phy (-517)
[    4.639604] vdd-usb0-5v: disabling
[    4.639606] vdd-usb1-5v: disabling
[    4.648576] tegra-xotg xotg: usb2 phy is not available yet
[    4.648779] tegra-usb-cd usb_cd: otg phy is not available yet
[    4.649209] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[    4.652691] xhci-tegra 3530000.xhci: can't get usb3-0 phy (-517)
[   12.959712] tegra-xotg xotg: usb2 phy is not available yet
[   12.959939] tegra-usb-cd usb_cd: otg phy is not available yet
[   12.960499] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[   12.964389] xhci-tegra 3530000.xhci: can't get usb3-0 phy (-517)
[   13.625012] tegra-xotg xotg: usb2 phy is not available yet
[   13.627291] tegra-usb-cd usb_cd: otg phy is not available yet
[   13.627857] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[   13.675223] xhci-tegra 3530000.xhci: can't get usb3-0 phy (-517)
[   14.117924] tegra-xotg xotg: usb2 phy is not available yet
[   14.118156] tegra-usb-cd usb_cd: otg phy is not available yet
[   14.118675] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[   14.122699] xhci-tegra 3530000.xhci: can't get usb3-0 phy (-517)
[   14.134412] tegra-xotg xotg: usb2 phy is not available yet
[   14.134650] tegra-usb-cd usb_cd: otg phy is not available yet
[   14.135190] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[   14.140700] xhci-tegra 3530000.xhci: can't get usb3-0 phy (-517)
[   14.344625] tegra-xotg xotg: usb2 phy is not available yet
[   14.345019] tegra-usb-cd usb_cd: otg phy is not available yet
[   14.345641] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[   14.350064] xhci-tegra 3530000.xhci: can't get usb3-0 phy (-517)

This is the full output of “dmesg”,
https://pastebin.com/6p5y2tYc

I tried modifying DTB, using this guide:
https://elinux.org/Jetson/TX2_USB
After this modification, module was not able to boot. Nothing appears when powered on.

Referring to this post,
https://devtalk.nvidia.com/default/topic/1028223/jetson-tx2/tx2-usb-not-work/post/5232118/#5232118
I dont make any changes on BCT/*.cfg files.

How can i fix this issue? Any help would be highly appreciated.

Kind regards.

Please refer to Jetson/TX2 USB - eLinux.org

Hi,

Thank you for your response.

I followed the instructions on the link you gave. This is what i changed:

tegra186-quill-power-tree-p3310-1000-a00-00.dtsi → vbus-2-supply = <&battery_reg>;

Since the configuration number is 2, i didnt changed any other files.

Now, lsusb command gives the following output,

Bus 002 Device 002: ID 0451:8140 Texas Instruments, Inc. 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 0451:8142 Texas Instruments, Inc. TUSB8041 4-Port Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

This is the output of dmesg when i plug an usb device,

Apr 17 08:35:07 tegra-ubuntu kernel: [   64.391941] xhci-tegra 3530000.xhci: exiting ELPG
Apr 17 08:35:08 tegra-ubuntu kernel: [   64.420677] xhci-tegra 3530000.xhci: Firmware timestamp: 2017-03-31 06:21:56 UTC, Version: 55.07 release
Apr 17 08:35:08 tegra-ubuntu kernel: [   64.434171] xhci-tegra 3530000.xhci: exiting ELPG done
Apr 17 08:35:08 tegra-ubuntu kernel: [   64.439563] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 6
Apr 17 08:35:08 tegra-ubuntu kernel: [   64.668364] usb 1-2.1: new full-speed USB device number 3 using xhci-tegra
Apr 17 08:35:08 tegra-ubuntu kernel: [   64.748625] usb 1-2.1: device descriptor read/64, error -32
Apr 17 08:35:08 tegra-ubuntu kernel: [   64.928575] usb 1-2.1: device descriptor read/64, error -32
Apr 17 08:35:08 tegra-ubuntu kernel: [   65.108360] usb 1-2.1: new full-speed USB device number 4 using xhci-tegra
Apr 17 08:35:08 tegra-ubuntu kernel: [   65.188586] usb 1-2.1: device descriptor read/64, error -32
Apr 17 08:35:08 tegra-ubuntu kernel: [   65.368583] usb 1-2.1: device descriptor read/64, error -32
Apr 17 08:35:09 tegra-ubuntu kernel: [   65.548357] usb 1-2.1: new full-speed USB device number 5 using xhci-tegra
Apr 17 08:35:09 tegra-ubuntu kernel: [   65.555785] usb 1-2.1: Device not responding to setup address.
Apr 17 08:35:09 tegra-ubuntu kernel: [   65.764871] usb 1-2.1: Device not responding to setup address.
Apr 17 08:35:09 tegra-ubuntu kernel: [   65.972356] usb 1-2.1: device not accepting address 5, error -71
Apr 17 08:35:09 tegra-ubuntu kernel: [   66.048375] usb 1-2.1: new full-speed USB device number 6 using xhci-tegra
Apr 17 08:35:09 tegra-ubuntu kernel: [   66.055838] usb 1-2.1: Device not responding to setup address.
Apr 17 08:35:09 tegra-ubuntu kernel: [   66.079393] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work mailbox command 5
Apr 17 08:35:09 tegra-ubuntu kernel: [   66.086409] xhci-tegra 3530000.xhci: tegra_xhci_mbox_work ignore firmware MBOX_CMD_DEC_SSPI_CLOCK request
Apr 17 08:35:09 tegra-ubuntu kernel: [   66.264844] usb 1-2.1: Device not responding to setup address.
Apr 17 08:35:10 tegra-ubuntu kernel: [   66.472356] usb 1-2.1: device not accepting address 6, error -71
Apr 17 08:35:10 tegra-ubuntu kernel: [   66.478573] usb 1-2-port1: unable to enumerate USB device
Apr 17 08:35:10 tegra-ubuntu kernel: [   66.828358] xhci-tegra 3530000.xhci: entering ELPG
Apr 17 08:35:10 tegra-ubuntu kernel: [   66.836183] xhci-tegra 3530000.xhci: entering ELPG done

Usb hub is connected to USB_SS0.

Do you have any suggestion about this?

Thanks.

This is the output of “cat kern.log.1 | grep -i usb” after boot:

May  6 05:40:13 tegra-ubuntu kernel: [    2.598718] usbserial: USB Serial support registered for FTDI USB Serial Device
May  6 05:40:13 tegra-ubuntu kernel: [    2.598758] usbserial: USB Serial support registered for GSM modem (1-port)
May  6 05:40:13 tegra-ubuntu kernel: [    2.598798] usbserial: USB Serial support registered for pl2303
May  6 05:40:13 tegra-ubuntu kernel: [    2.730592] usbhid: USB HID core driver
May  6 05:40:13 tegra-ubuntu kernel: [    4.127934] tegra186-padctl 3520000.pinctrl: FUSE_SKU_USB_CALIB_0 0x2abc95
May  6 05:40:13 tegra-ubuntu kernel: [    4.135524] tegra186-padctl 3520000.pinctrl: FUSE_USB_CALIB_EXT_0 0x9
May  6 05:40:13 tegra-ubuntu kernel: [    4.851740] xhci-tegra 3530000.xhci: No USB3 port has OTG_CAP
May  6 05:40:13 tegra-ubuntu kernel: [    4.899910] tegra-xotg xotg: Nvidia XUSB OTG Controller
May  6 05:40:13 tegra-ubuntu kernel: [    7.170812] xhci-tegra 3530000.xhci: new USB bus registered, assigned bus number 1
May  6 05:40:13 tegra-ubuntu kernel: [    7.193820] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
May  6 05:40:13 tegra-ubuntu kernel: [    7.200693] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
May  6 05:40:14 tegra-ubuntu kernel: [    7.219431] hub 1-0:1.0: USB hub found
May  6 05:40:14 tegra-ubuntu kernel: [    7.241691] xhci-tegra 3530000.xhci: new USB bus registered, assigned bus number 2
May  6 05:40:14 tegra-ubuntu kernel: [    7.249443] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
May  6 05:40:14 tegra-ubuntu kernel: [    7.256247] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
May  6 05:40:14 tegra-ubuntu kernel: [    7.279205] hub 2-0:1.0: USB hub found
May  6 05:40:14 tegra-ubuntu kernel: [    7.528203] usb 1-2: new high-speed USB device number 2 using xhci-tegra
May  6 05:40:14 tegra-ubuntu kernel: [    7.596625] usb 2-1: new SuperSpeed USB device number 2 using xhci-tegra
May  6 05:40:14 tegra-ubuntu kernel: [    7.612579] usb 2-1: New USB device found, idVendor=04b4, idProduct=6500
May  6 05:40:14 tegra-ubuntu kernel: [    7.612582] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
May  6 05:40:14 tegra-ubuntu kernel: [    7.614606] hub 2-1:1.0: USB hub found
May  6 05:40:14 tegra-ubuntu kernel: [    7.664546] usb 1-2: New USB device found, idVendor=04b4, idProduct=6502
May  6 05:40:14 tegra-ubuntu kernel: [    7.671260] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
May  6 05:40:14 tegra-ubuntu kernel: [    7.679232] hub 1-2:1.0: USB hub found
Binary file (standard input) matches
May  6 05:40:13 tegra-ubuntu kernel: [    0.143174] node /plugin-manager/fragment-500-xusb-config match with board >=3310-1000-500
May  6 05:40:13 tegra-ubuntu kernel: [    0.301059] usbcore: registered new interface driver usbfs
May  6 05:40:13 tegra-ubuntu kernel: [    0.301120] usbcore: registered new interface driver hub
May  6 05:40:13 tegra-ubuntu kernel: [    0.301237] usbcore: registered new device driver usb
May  6 05:40:13 tegra-ubuntu kernel: [    0.367632] vdd-usb0-5v: 5000 mV 
May  6 05:40:13 tegra-ubuntu kernel: [    0.367817] vdd-usb1-5v: 5000 mV 
May  6 05:40:13 tegra-ubuntu kernel: [    2.597271] usbcore: registered new interface driver r8152
May  6 05:40:13 tegra-ubuntu kernel: [    2.597309] usbcore: registered new interface driver asix
May  6 05:40:13 tegra-ubuntu kernel: [    2.597335] usbcore: registered new interface driver ax88179_178a
May  6 05:40:13 tegra-ubuntu kernel: [    2.597363] usbcore: registered new interface driver cdc_ether
May  6 05:40:13 tegra-ubuntu kernel: [    2.597398] usbcore: registered new interface driver smsc95xx
May  6 05:40:13 tegra-ubuntu kernel: [    2.597423] usbcore: registered new interface driver net1080
May  6 05:40:13 tegra-ubuntu kernel: [    2.597450] usbcore: registered new interface driver cdc_subset
May  6 05:40:13 tegra-ubuntu kernel: [    2.597500] usbcore: registered new interface driver zaurus
May  6 05:40:13 tegra-ubuntu kernel: [    2.597547] usbcore: registered new interface driver cdc_ncm
May  6 05:40:13 tegra-ubuntu kernel: [    2.597949] tegra-xotg xotg: usb2 phy is not available yet
May  6 05:40:13 tegra-ubuntu kernel: [    2.598607] usbcore: registered new interface driver usb-storage
May  6 05:40:13 tegra-ubuntu kernel: [    2.598673] usbcore: registered new interface driver usbserial
May  6 05:40:13 tegra-ubuntu kernel: [    2.598698] usbcore: registered new interface driver ftdi_sio
May  6 05:40:13 tegra-ubuntu kernel: [    2.598718] usbserial: USB Serial support registered for FTDI USB Serial Device
May  6 05:40:13 tegra-ubuntu kernel: [    2.598741] usbcore: registered new interface driver option
May  6 05:40:13 tegra-ubuntu kernel: [    2.598758] usbserial: USB Serial support registered for GSM modem (1-port)
May  6 05:40:13 tegra-ubuntu kernel: [    2.598781] usbcore: registered new interface driver pl2303
May  6 05:40:13 tegra-ubuntu kernel: [    2.598798] usbserial: USB Serial support registered for pl2303
May  6 05:40:13 tegra-ubuntu kernel: [    2.599006] tegra-usb-cd usb_cd: otg phy is not available yet
May  6 05:40:13 tegra-ubuntu kernel: [    2.601483] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
May  6 05:40:13 tegra-ubuntu kernel: [    2.724679] usbcore: registered new interface driver gspca_zc3xx
May  6 05:40:13 tegra-ubuntu kernel: [    2.730591] usbcore: registered new interface driver usbhid
May  6 05:40:13 tegra-ubuntu kernel: [    2.730592] usbhid: USB HID core driver
May  6 05:40:13 tegra-ubuntu kernel: [    4.880274] xhci-tegra 3530000.xhci: Direct firmware load for tegra18x_xusb_firmware failed with error -2
May  6 05:40:13 tegra-ubuntu kernel: [    4.978355] vdd-usb0-5v: disabling
May  6 05:40:13 tegra-ubuntu kernel: [    4.978356] vdd-usb1-5v: disabling
May  6 05:40:13 tegra-ubuntu kernel: [    7.193820] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
May  6 05:40:13 tegra-ubuntu kernel: [    7.200693] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
May  6 05:40:13 tegra-ubuntu kernel: [    7.207953] usb usb1: Product: xHCI Host Controller
May  6 05:40:13 tegra-ubuntu kernel: [    7.212849] usb usb1: Manufacturer: Linux 4.4.38-tegra xhci-hcd
May  6 05:40:13 tegra-ubuntu kernel: [    7.212851] usb usb1: SerialNumber: 3530000.xhci
May  6 05:40:14 tegra-ubuntu kernel: [    7.249443] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
May  6 05:40:14 tegra-ubuntu kernel: [    7.256247] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
May  6 05:40:14 tegra-ubuntu kernel: [    7.263475] usb usb2: Product: xHCI Host Controller
May  6 05:40:14 tegra-ubuntu kernel: [    7.268364] usb usb2: Manufacturer: Linux 4.4.38-tegra xhci-hcd
May  6 05:40:14 tegra-ubuntu kernel: [    7.274293] usb usb2: SerialNumber: 3530000.xhci
May  6 05:40:14 tegra-ubuntu kernel: [    7.528203] usb 1-2: new high-speed USB device number 2 using xhci-tegra
May  6 05:40:14 tegra-ubuntu kernel: [    7.596625] usb 2-1: new SuperSpeed USB device number 2 using xhci-tegra
May  6 05:40:14 tegra-ubuntu kernel: [    7.612579] usb 2-1: New USB device found, idVendor=04b4, idProduct=6500
May  6 05:40:14 tegra-ubuntu kernel: [    7.612582] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
May  6 05:40:14 tegra-ubuntu kernel: [    7.664546] usb 1-2: New USB device found, idVendor=04b4, idProduct=6502
May  6 05:40:14 tegra-ubuntu kernel: [    7.671260] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0

This is the output of “dmesg | grep -i usb”:

[    0.142790] node /plugin-manager/fragment-500-xusb-config match with board >=3310-1000-500
[    0.301133] usbcore: registered new interface driver usbfs
[    0.301201] usbcore: registered new interface driver hub
[    0.301324] usbcore: registered new device driver usb
[    0.364094] vdd-usb0-5v: 5000 mV 
[    0.364260] vdd-usb1-5v: 5000 mV 
[    2.597330] usbcore: registered new interface driver r8152
[    2.597364] usbcore: registered new interface driver asix
[    2.597391] usbcore: registered new interface driver ax88179_178a
[    2.597417] usbcore: registered new interface driver cdc_ether
[    2.597454] usbcore: registered new interface driver smsc95xx
[    2.597481] usbcore: registered new interface driver net1080
[    2.597506] usbcore: registered new interface driver cdc_subset
[    2.597533] usbcore: registered new interface driver zaurus
[    2.597576] usbcore: registered new interface driver cdc_ncm
[    2.597922] tegra-xotg xotg: usb2 phy is not available yet
[    2.598677] usbcore: registered new interface driver usb-storage
[    2.598738] usbcore: registered new interface driver usbserial
[    2.598765] usbcore: registered new interface driver ftdi_sio
[    2.598784] usbserial: USB Serial support registered for FTDI USB Serial Device
[    2.598811] usbcore: registered new interface driver option
[    2.598832] usbserial: USB Serial support registered for GSM modem (1-port)
[    2.598856] usbcore: registered new interface driver pl2303
[    2.598873] usbserial: USB Serial support registered for pl2303
[    2.599108] tegra-usb-cd usb_cd: otg phy is not available yet
[    2.601783] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[    2.736363] usbcore: registered new interface driver gspca_zc3xx
[    2.742293] usbcore: registered new interface driver usbhid
[    2.742294] usbhid: USB HID core driver
[    4.118056] tegra186-padctl 3520000.pinctrl: FUSE_SKU_USB_CALIB_0 0x2abc95
[    4.125443] tegra186-padctl 3520000.pinctrl: FUSE_USB_CALIB_EXT_0 0x9
[    4.835781] xhci-tegra 3530000.xhci: No USB3 port has OTG_CAP
[    4.864708] xhci-tegra 3530000.xhci: Direct firmware load for tegra18x_xusb_firmware failed with error -2
[    4.877808] tegra-xotg xotg: Nvidia XUSB OTG Controller
[    4.956345] vdd-usb0-5v: disabling
[    4.956347] vdd-usb1-5v: disabling
[    7.323037] xhci-tegra 3530000.xhci: new USB bus registered, assigned bus number 1
[    7.351636] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    7.351639] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.351641] usb usb1: Product: xHCI Host Controller
[    7.351643] usb usb1: Manufacturer: Linux 4.4.38-tegra xhci-hcd
[    7.351644] usb usb1: SerialNumber: 3530000.xhci
[    7.351978] hub 1-0:1.0: USB hub found
[    7.372678] xhci-tegra 3530000.xhci: new USB bus registered, assigned bus number 2
[    7.372826] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    7.372829] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.372831] usb usb2: Product: xHCI Host Controller
[    7.372833] usb usb2: Manufacturer: Linux 4.4.38-tegra xhci-hcd
[    7.372835] usb usb2: SerialNumber: 3530000.xhci
[    7.373117] hub 2-0:1.0: USB hub found
[    7.660656] usb 1-2: new high-speed USB device number 2 using xhci-tegra
[    7.685063] usb 2-1: new SuperSpeed USB device number 2 using xhci-tegra
[    7.705007] usb 2-1: New USB device found, idVendor=04b4, idProduct=6500
[    7.711717] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    7.727826] hub 2-1:1.0: USB hub found
[    7.792956] usb 1-2: New USB device found, idVendor=04b4, idProduct=6502
[    7.799677] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    7.807568] hub 1-2:1.0: USB hub found

Still stuck on this. I would be very pleased if someone can help me asap. Thanks.

Now my USB ports only work with USB3.0 capable devices. USB 2.0 devices gives the “device descriptor read/64, error -32”, which seems like a broken pipe error. Also, USB3.0 devices may not be recognized in first plug or after booting plugged. And after replugging the device, it connects succesfully. What can cause these issues?

hi r1ch13r1ch,
What is your HW design for VBUS pins? Do you pull the pins up after booting to kernel?

Hi,

Thank you for your reply.

Type C VBUS pins connected to power through regulator. And the regulator is controlled by usb hub. I am not pulling the pins up manually.

Hi r1ch13r1ch, you use Type C connector? Not Type A?

Yes, i am using Type C connectors.

Hi,
For USB Type C connector, we suggest HW design as shown at
[url]https://devtalk.nvidia.com/default/topic/1032328/jetson-tx2/usb-3-0-type-c-integration-with-tx2/post/5253020/#5253020[/url]