USBs are not working on custom carrier card for L4T28.2 and TX2i

We have custom carrier cards and had to change vbus-3-supply in dtb to have USB3 working for L4T 28.1.
With L4T 28.2, however, neither USB2 nor USB3 are working, the light of mouse turns on, but there is no cursor. USBs worked for the same TX2i on Nvidia TX2 carrier card.
The following are part of kernel logs:

[    4.403045] xhci-tegra 3530000.xhci: can't get usb3-0 phy (-517)
[    4.403435] spi-tegra114 3210000.spi: Static pin configuration used
[    4.404060] spi-tegra114 c260000.spi: Static pin configuration used
[    4.404792] spi-tegra114 3240000.spi: Static pin configuration used
[    4.405303] Wake76 for irq=199
[    4.405304] Wake77 for irq=199
[    4.405304] Wake78 for irq=199
[    4.405305] Wake79 for irq=199
[    4.405306] Wake80 for irq=199
[    4.405306] Wake81 for irq=199
[    4.405307] Wake82 for irq=199
[    4.405336] tegra-xotg xotg: usb2 phy is not available yet
[    4.405471] tegra-usb-cd usb_cd: otg phy is not available yet
[    4.405879] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[    4.406042] tegra186-padctl 3520000.pinctrl: padctl mmio start 0x0000000003520000 end 0x0000000003520fff
[    4.406047] tegra186-padctl 3520000.pinctrl: ao mmio start 0x0000000003540000 end 0x0000000003540fff
[    4.406084] tegra186-padctl 3520000.pinctrl: FUSE_SKU_USB_CALIB_0 0x2eb498
[    4.406087] tegra186-padctl 3520000.pinctrl: FUSE_USB_CALIB_EXT_0 0x9
[    4.406810] tegra186-padctl 3520000.pinctrl: using UTMI port 0 for otg

Thanks in advance for suggestions to troubleshoot.

You should make same change to vbus-3-supply for r28.2 https://elinux.org/Jetson/TX2_USB

Wrong ‘vbus-3-supply’ triggers below error

[    4.403045] xhci-tegra 3530000.xhci: can't get usb3-0 phy (-517)

I changed

vbus-0-supply = <0x9a>;
		vbus-1-supply = <0x9b>;
		vbus-2-supply = <0x9c>;
		vbus-3-supply = <0x19>;
		vddio-hsic-supply = <0x19>;

to

vbus-0-supply = <0x9a>;
		vbus-1-supply = <0x9b>;
		vbus-2-supply = <0x19>;
		vbus-3-supply = <0x19>;
		vddio-hsic-supply = <0x19>;

and it worked.
Thanks

Hi,

I also faced the same problem.
I made the following change:
Edited file:
hardware/nvidia/platform/t18x/common/kernel-dts/t18x-common-platforms/tegra186-quill-power-tree-p3489-1000-a00-00.dtsi

pinctrl@3520000 {
                vbus-0-supply = <&vdd_usb0_5v>;
                vbus-1-supply = <&vdd_usb1_5v>;
                /*vbus-2-supply = <&vdd_usb2_5v>;  Orig line*/
                vbus-2-supply = <&battery_reg>; /*fix USB issue*/
                vbus-3-supply = <&battery_reg>;
                vddio-hsic-supply = <&battery_reg>;
                avdd_usb-supply = <&spmic_sd3>;
                vclamp_usb-supply = <&spmic_sd2>;
                avdd_pll_erefeut-supply = <&spmic_sd2>;
        };

created DTB file:

make O=$TEGRA_KERNEL_OUT dtbs

copied the tegra186-quill-p3489-1000-a00-00-ucm1.dtb file to
kernel/dtb

burn new dtb:

sudo ./flash.sh -r -k kernel-dtb jetson-tx2i mmcblk0p1

As a result I have a working USB.
But I noticed 1 thing I didn’t saw before:
When I run ifconfig I got too much interfaces)

nvidia@tegra-ubuntu:~$ ifconfig 
docker0   Link encap:Ethernet  HWaddr 02:42:84:6c:7f:6d  
          inet addr:172.17.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr 00:04:4b:ab:fa:b0  
          inet addr:192.9.203.181  Bcast:192.9.203.255  Mask:255.255.252.0
          inet6 addr: fe80::51a4:3d2c:c5e:c3bc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:231 errors:0 dropped:8 overruns:0 frame:0
          TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:22952 (22.9 KB)  TX bytes:7249 (7.2 KB)
          Interrupt:42 

l4tbr0    Link encap:Ethernet  HWaddr 56:10:82:31:f7:98  
          inet addr:192.168.55.1  Bcast:192.168.55.255  Mask:255.255.255.0
          inet6 addr: fe80::ccd0:adff:fe68:6dc7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:53 errors:0 dropped:0 overruns:0 frame:0
          TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:9149 (9.1 KB)  TX bytes:5136 (5.1 KB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:250 errors:0 dropped:0 overruns:0 frame:0
          TX packets:250 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:17824 (17.8 KB)  TX bytes:17824 (17.8 KB)

usb0      Link encap:Ethernet  HWaddr 56:10:82:31:f7:98  
          inet6 addr: fe80::5410:82ff:fe31:f798/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:24 errors:24 dropped:0 overruns:0 frame:24
          TX packets:101 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4249 (4.2 KB)  TX bytes:17188 (17.1 KB)

usb1      Link encap:Ethernet  HWaddr 62:49:41:48:3e:e4  
          inet6 addr: fe80::6049:41ff:fe48:3ee4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:29 errors:0 dropped:0 overruns:0 frame:0
          TX packets:96 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4900 (4.9 KB)  TX bytes:12267 (12.2 KB)

Can you help me to understand what all those devices are doing here?
I mean: docker0 , l4tbr0, usb0 and usb1.

I’m also attaching some dmesg here

nvidia@tegra-ubuntu:~$ dmesg | grep -i usb
[    0.297184] usbcore: registered new interface driver usbfs
[    0.297239] usbcore: registered new interface driver hub
[    0.297347] usbcore: registered new device driver usb
[    0.360042] vdd-usb0-5v: 5000 mV 
[    0.360216] vdd-usb1-5v: 5000 mV 
[    2.509643] usbcore: registered new interface driver r8152
[    2.509677] usbcore: registered new interface driver asix
[    2.509712] usbcore: registered new interface driver ax88179_178a
[    2.509739] usbcore: registered new interface driver cdc_ether
[    2.509774] usbcore: registered new interface driver smsc75xx
[    2.509802] usbcore: registered new interface driver net1080
[    2.509829] usbcore: registered new interface driver cdc_subset
[    2.509860] usbcore: registered new interface driver zaurus
[    2.509929] usbcore: registered new interface driver cdc_ncm
[    2.510351] tegra-xotg xotg: usb2 phy is not available yet
[    2.510962] usbcore: registered new interface driver cdc_acm
[    2.510965] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    2.511007] usbcore: registered new interface driver usb-storage
[    2.511066] usbcore: registered new interface driver usbserial
[    2.511089] usbcore: registered new interface driver cp210x
[    2.511108] usbserial: USB Serial support registered for cp210x
[    2.511130] usbcore: registered new interface driver ftdi_sio
[    2.511147] usbserial: USB Serial support registered for FTDI USB Serial Device
[    2.511171] usbcore: registered new interface driver option
[    2.511188] usbserial: USB Serial support registered for GSM modem (1-port)
[    2.511210] usbcore: registered new interface driver pl2303
[    2.511227] usbserial: USB Serial support registered for pl2303
[    2.511454] tegra-usb-cd usb_cd: otg phy is not available yet
[    2.530926] tegra-xudc-new 3550000.xudc: usb2 phy is not available yet
[    2.666135] usbcore: registered new interface driver gspca_zc3xx
[    2.672864] usbcore: registered new interface driver usbhid
[    2.672865] usbhid: USB HID core driver
[    4.220669] tegra186-padctl 3520000.pinctrl: FUSE_SKU_USB_CALIB_0 0x2ca896
[    4.229151] tegra186-padctl 3520000.pinctrl: FUSE_USB_CALIB_EXT_0 0x9
[    4.405795] xhci-tegra 3530000.xhci: No USB3 port has OTG_CAP
[    4.428993] xhci-tegra 3530000.xhci: Direct firmware load for tegra18x_xusb_firmware failed with error -2
[    4.431027] tegra-xotg xotg: Nvidia XUSB OTG Controller
[    4.497476] vdd-usb0-5v: disabling
[    4.497477] vdd-usb1-5v: disabling
[    4.596615] tegra-usb-cd usb_cd: notification status (0x0, 0x1)
[    4.596618] tegra-usb-cd usb_cd: set current 0ma
[    8.657468] xhci-tegra 3530000.xhci: new USB bus registered, assigned bus number 1
[    8.687651] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    8.696715] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.706509] usb usb1: Product: xHCI Host Controller
[    8.713989] usb usb1: Manufacturer: Linux 4.4.38-tegra xhci-hcd
[    8.722034] usb usb1: SerialNumber: 3530000.xhci
[    8.729108] hub 1-0:1.0: USB hub found
[    8.803583] usb0: HOST MAC b2:89:5c:fe:12:8c
[    8.803633] usb0: MAC 56:10:82:31:f7:98
[    8.804125] usb1: HOST MAC 2a:84:eb:74:56:db
[    8.804177] usb1: MAC 62:49:41:48:3e:e4
[    8.862597] xhci-tegra 3530000.xhci: new USB bus registered, assigned bus number 2
[    8.872436] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    8.881346] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.890647] usb usb2: Product: xHCI Host Controller
[    8.897627] usb usb2: Manufacturer: Linux 4.4.38-tegra xhci-hcd
[    8.905633] usb usb2: SerialNumber: 3530000.xhci
[    8.913005] hub 2-0:1.0: USB hub found
[    8.982706] device usb0 entered promiscuous mode
[    9.003952] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[    9.015878] device usb1 entered promiscuous mode
[    9.027023] IPv6: ADDRCONF(NETDEV_UP): usb1: link is not ready
[    9.035079] l4tbr0: port 2(usb1) entered forwarding state
[    9.042553] android_work: sent uevent USB_STATE=CONNECTED
[    9.050231] l4tbr0: port 2(usb1) entered forwarding state
[    9.097812] android_work: sent uevent USB_STATE=DISCONNECTED
[    9.170483] android_work: sent uevent USB_STATE=CONNECTED
[    9.189793] IPv6: ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready
[    9.189897] l4tbr0: port 1(usb0) entered forwarding state
[    9.189921] l4tbr0: port 1(usb0) entered forwarding state
[    9.190001] android_work: sent uevent USB_STATE=CONFIGURED
[    9.192933] IPv6: ADDRCONF(NETDEV_CHANGE): usb1: link becomes ready
[    9.265008] usb 2-1: new SuperSpeed USB device number 2 using xhci-tegra
[    9.281666] usb 2-1: New USB device found, idVendor=0bda, idProduct=8153
[    9.281669] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[    9.281671] usb 2-1: Product: USB 10/100/1000 LAN
[    9.281673] usb 2-1: Manufacturer: Realtek
[    9.281675] usb 2-1: SerialNumber: 000000000000
[    9.409402] usb 2-1: reset SuperSpeed USB device number 2 using xhci-tegra
[   24.076601] l4tbr0: port 2(usb1) entered forwarding state
[   24.236607] l4tbr0: port 1(usb0) entered forwarding state

Thanks in advance

Hi dshtaingus,
It shows all network interfaces.
I found https://groups.google.com/forum/#!msg/beaglebone/X9LNZzYSixE/bRWwi1cBCQAJ which may help you.

Other users may also share experience on how to disable it.