USB not detected

Hi,

I’ve designed a custom carrier board for tx2i. But, I am unable to see USB interfaces in ubuntu. kindly assist.

TIA

What software release are you using ? rel-28 or rel-32?

rel-32

please refer to the usb porting guide and modify the device tree.

https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/adaptation_and_bringup_tx2.html#wwpID0E01L0HA

I had referred P2597 carrier board schematics for my custom carrier board. There is only one USB 3.0 Port & one USB 2.0 Port in the custom board. The document mentions that by default the carrier board will be config 2. Do I still need to update the device tree?

Even changing the power source requires to change the device tree.

Oh, I am new to this. I have currently designed the carrier board with 1x USB3.0, 1xUSB2.0, 1x UART, 1x ethernet, 2 x 2 lane MIPI CSI2, 1 x RS422, 1 x RS232, 2 X I2C, 1 X JTAG along with auto power on. Could you please assist in configuring the device tree for these interfaces.

TIA

I already shared the document. Read it first and share us what is the part that you cannot understand.

If possible, find a software engineer who is familiar with linux kernel to co-work with you.

ok

As per the requirements of the custom carrier board the following changes were made in the device tree

  1. gpio@74 {
    compatible = “ti,tca9539”;
    status = “disabled”;
  2. pinctrl@3520000 {
    compatible = “nvidia,tegra186-xusb-padctl”;
    reg = <0x0 0x3520000 0x0 0x1000 0x0 0x3540000 0x0 0x1000>;
    reg-names = “padctl”, “ao”;
    resets = <0x10 0x37>;
    reset-names = “padctl_rst”;
    clocks = <0x10 0x6f 0x10 0x215 0x10 0x87 0x10 0x86>;
    clock-names = “xusb_clk”, “utmipll”, “usb2_trk”, “hsic_trk”;
    interrupts = <0x0 0xa7 0x4>;
    mboxes = <0xb5>;
    mbox-names = “xusb”;
    #phy-cells = <0x1>;
    status = “okay”;
    vbus-0-supply = <0x26>;
    vbus-1-supply = <0x26>;
    vbus-2-supply = <0x26>;
    vbus-3-supply = <0x26>;

However, inspite of above changes USB enumeration isn’t happening in Ubuntu. Please find the responses below and kindly assist.

Response for dmesg |grep -i usb
vte@IHS-VTE:~$ dmesg |grep -i usb
[ 0.000000] Kernel command line: console=ttyS0,115200 androidboot.presilicon=true firmware_class.path=/etc/firmware root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 isolcpus=1-2 video=tegrafb no_console_suspend=1 earlycon=uart8250,mmio32,0x3100000 nvdumper_reserved=0x2372e0000 gpt rootfs.slot_suffix= usbcore.old_scheme_first=1 tegraid=18.1.2.0.0 maxcpus=6 boot.slot_suffix= boot.ratchetvalues=0.2031647.1 vpr_resize bl_prof_dataptr=0x10000@0x235840000 sdhci_tegra.en_boot_part_access=1 quiet root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 isolcpus=1-2
[ 0.509001] usbcore: registered new interface driver usbfs
[ 0.509033] usbcore: registered new interface driver hub
[ 0.509100] usbcore: registered new device driver usb
[ 0.564419] vdd-usb0-5v: 5000 mV
[ 0.564693] vdd-usb1-5v: 5000 mV
[ 0.865861] tegra-xusb-padctl 3520000.xusb_padctl: failed to setup XUSB ports: -517
[ 1.008238] usbcore: registered new interface driver r8152
[ 1.008268] usbcore: registered new interface driver asix
[ 1.008295] usbcore: registered new interface driver ax88179_178a
[ 1.008320] usbcore: registered new interface driver cdc_ether
[ 1.008346] usbcore: registered new interface driver net1080
[ 1.008374] usbcore: registered new interface driver cdc_subset
[ 1.008399] usbcore: registered new interface driver zaurus
[ 1.008436] usbcore: registered new interface driver cdc_ncm
[ 1.009350] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 1.009389] ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
[ 1.011814] usbcore: registered new interface driver uas
[ 1.011854] usbcore: registered new interface driver usb-storage
[ 1.011915] usbcore: registered new interface driver usbserial
[ 1.013667] tegra-usb-cd usb_cd: otg phy is not available yet
[ 1.016249] usbcore: registered new interface driver xpad
[ 21.391173] usbcore: registered new interface driver usbhid
[ 21.391175] usbhid: USB HID core driver
[ 21.425166] usbcore: registered new interface driver snd-usb-audio
[ 21.603752] tegra-xusb-padctl 3520000.xusb_padctl: failed to setup XUSB ports: -517
[ 21.606799] tegra-usb-cd usb_cd: otg phy is not available yet
[ 21.610467] tegra-xusb-padctl 3520000.xusb_padctl: failed to setup XUSB ports: -517
[ 21.613384] tegra-usb-cd usb_cd: otg phy is not available yet
[ 21.617090] tegra-xusb-padctl 3520000.xusb_padctl: failed to setup XUSB ports: -517
[ 22.452714] tegra-usb-cd usb_cd: otg phy is not available yet
[ 22.457871] tegra-xusb-padctl 3520000.xusb_padctl: failed to setup XUSB ports: -517
[ 22.460711] tegra-usb-cd usb_cd: otg phy is not available yet
[ 22.465241] tegra-xusb-padctl 3520000.xusb_padctl: failed to setup XUSB ports: -517
[ 24.208167] tegra-usb-cd usb_cd: otg phy is not available yet
[ 24.214444] tegra-xusb-padctl 3520000.xusb_padctl: failed to setup XUSB ports: -517
[ 24.220618] tegra-usb-cd usb_cd: otg phy is not available yet
[ 24.226956] tegra-xusb-padctl 3520000.xusb_padctl: failed to setup XUSB ports: -517
[ 52.304480] vdd-usb0-5v: disabling
[ 52.304492] vdd-usb1-5v: disabling

Response for xxd /proc/device-tree/xhci@3530000/phy-names
00000000: 7573 6232 2d30 0075 7362 322d 3100 7573 usb2-0.usb2-1.us
00000010: 6232 2d32 0075 7362 332d 3000 b2-2.usb3-0.

dmesg.txt (65.2 KB)
tegra186-quill-p3489-1000-a00-00-ucm1.dts (485.4 KB)