We have a custom carrier board for Jetson TX2i. We are using jetpack 4.6.3. We are unable to detect USB devices on our custom carrier board. We have followed the procedures mentioned in the forum and modified pinctrl@3520000 and xusb_padctl@3520000/ports/usb2-2 vbus-2-supply from vdd_usb2_5v to battery_reg.
On doing so, we are still not able to detect usb. $lsusb gives no output.
output of grep | -i usb is:
~$ 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 usbcore.old_scheme_first=1 tegraid=18.1.2.0.0 maxcpus=6 boot.slot_suffix= boot.ratchetvalues=0.2031647.1 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.504790] usbcore: registered new interface driver usbfs [ 0.504821] usbcore: registered new interface driver hub [ 0.504877] usbcore: registered new device driver usb [ 0.560182] vdd-usb0-5v: 5000 mV [ 0.560459] vdd-usb1-5v: 5000 mV [ 0.935366] tegra-xusb-padctl 3520000.xusb_padctl: failed to setup XUSB ports: -517 [ 1.075945] usbcore: registered new interface driver r8152 [ 1.075976] usbcore: registered new interface driver asix [ 1.076006] usbcore: registered new interface driver ax88179_178a [ 1.076030] usbcore: registered new interface driver cdc_ether [ 1.076056] usbcore: registered new interface driver net1080 [ 1.076080] usbcore: registered new interface driver cdc_subset [ 1.076106] usbcore: registered new interface driver zaurus [ 1.076141] usbcore: registered new interface driver cdc_ncm [ 1.077027] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver [ 1.077078] ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver [ 1.079331] usbcore: registered new interface driver uas [ 1.079368] usbcore: registered new interface driver usb-storage [ 1.079429] usbcore: registered new interface driver usbserial [ 1.080902] tegra-usb-cd usb_cd: otg phy is not available yet [ 1.083426] usbcore: registered new interface driver xpad [ 21.390679] usbcore: registered new interface driver usbhid [ 21.390681] usbhid: USB HID core driver [ 21.412253] usbcore: registered new interface driver snd-usb-audio [ 21.587130] tegra-xusb-padctl 3520000.xusb_padctl: failed to setup XUSB ports: -517 [ 21.589238] tegra-usb-cd usb_cd: otg phy is not available yet [ 21.592749] tegra-xusb-padctl 3520000.xusb_padctl: failed to setup XUSB ports: -517 [ 21.595609] tegra-usb-cd usb_cd: otg phy is not available yet [ 21.599119] tegra-xusb-padctl 3520000.xusb_padctl: failed to setup XUSB ports: -517 [ 21.658310] vdd-usb0-5v: disabling [ 21.658312] vdd-usb1-5v: disabling [ 22.336445] tegra-usb-cd usb_cd: otg phy is not available yet [ 22.343721] tegra-xusb-padctl 3520000.xusb_padctl: failed to setup XUSB ports: -517 [ 23.682517] tegra-usb-cd usb_cd: otg phy is not available yet [ 23.688018] tegra-xusb-padctl 3520000.xusb_padctl: failed to setup XUSB ports: -517
No, the VBUS is not always on. Please see the attached schematics. We are using TPS2001D, on which the Enable comes from A17 pin. We have probed A17 and it is low. Since A17 is low, we do not have an output from TPS2001D and hence, VDD_BUS is also low.
Also the VDD_BUS net is connected to B37 pin of Jetson TX2i SOM.
For your information, we have also disabled status of TCA9539PWR from dts now as below:
Please refer the latest file which has more details on the USB pin mappings, it includes all the nets for the USB which we are using. Please also see the latest dts file that we are using and the summary of the changes we have made.
We have enabled only two USBs, similar to what we have on the carrier board.
We have also removed all references to tca9539
We have ina3321 but we are currently ignoring it and have removed all the references of the same from the dts
Changed vbus-2-supply = <&battery_reg> as we do not have the gpio expander in our design.
lsusb does not show us any output and dmesg output is still same as above, copying the same for your reference.
FYI: we are not using the UPHY anywhere and is used only for USB.