this is my device-tree
padctl@3520000 {
compatible = “nvidia,tegra234-xusb-padctl”;
reg = <0x00 0x3520000 0x00 0x20000 0x00 0x3540000 0x00 0x10000>;
reg-names = “padctl\0ao”;
interrupts = <0x00 0xa7 0x04>;
resets = <0x03 0x72>;
reset-names = “padctl”;
status = “okay”;
vclamp-usb-supply = <0xf7>;
avdd-usb-supply = <0xf8>;
phandle = <0xfa>;
pads {
usb2 {
clocks = <0x03 0xa5>;
clock-names = "trk";
lanes {
usb2-0 {
nvidia,function = "xusb";
status = "okay";
#phy-cells = <0x00>;
phandle = <0xfb>;
};
usb2-1 {
nvidia,function = "xusb";
status = "okay";
#phy-cells = <0x00>;
phandle = <0xfc>;
};
usb2-2 {
nvidia,function = "xusb";
status = "disabled";
#phy-cells = <0x00>;
};
usb2-3 {
nvidia,function = "xusb";
status = "disabled";
#phy-cells = <0x00>;
};
};
};
usb3 {
lanes {
usb3-0 {
nvidia,function = "xusb";
status = "disabled";
#phy-cells = <0x00>;
};
usb3-1 {
nvidia,function = "xusb";
status = "disabled";
#phy-cells = <0x00>;
};
usb3-2 {
nvidia,function = "xusb";
status = "okay";
#phy-cells = <0x00>;
phandle = <0xfd>;
};
usb3-3 {
nvidia,function = "xusb";
status = "disabled";
#phy-cells = <0x00>;
};
};
};
};
ports {
usb2-0 {
status = "okay";
vbus-supply = <0xf9>;
mode = "host";
nvidia,function = "xusb";
};
usb2-1 {
status = "okay";
vbus-supply = <0xf9>;
mode = "host";
nvidia,function = "xusb";
};
usb2-2 {
status = "disabled";
vbus-supply = <0xf9>;
};
usb2-3 {
status = "disabled";
vbus-supply = <0xf9>;
};
usb3-0 {
status = "disabled";
};
usb3-1 {
status = "disabled";
};
usb3-2 {
status = "okay";
nvidia,usb2-companion = <0x01>;
};
usb3-3 {
status = "disabled";
};
};
};
usb@3550000 {
compatible = "nvidia,tegra234-xudc";
reg = <0x00 0x3550000 0x00 0x8000 0x00 0x3558000 0x00 0x8000>;
reg-names = "base\\0fpci";
interrupts = <0x00 0xa6 0x04>;
clocks = <0x03 0x109 0x03 0x10c 0x03 0x113 0x03 0x110>;
clock-names = "dev\\0ss\\0ss_src\\0fs_src";
interconnects = <0x58 0x4c 0x59 0x58 0x4d 0x59>;
interconnect-names = "dma-mem\\0write";
iommus = <0xf3 0x0f>;
power-domains = <0x03 0x0b 0x03 0x0a>;
power-domain-names = "dev\\0ss";
nvidia,xusb-padctl = <0xfa>;
dma-coherent;
status = "okay";
phys = <0xfb 0xfc 0xfd>;
phy-names = "usb2-0\\0usb2-1\\0usb3-2";
};
usb@3610000 {
compatible = "nvidia,tegra234-xusb";
reg = <0x00 0x3610000 0x00 0x40000 0x00 0x3600000 0x00 0x10000 0x00 0x3650000 0x00 0x10000>;
reg-names = "hcd\\0fpci\\0bar2";
interrupts-extended = <0x01 0x00 0xa3 0x04 0x01 0x00 0xa4 0x04 0xfe 0x4c 0x04 0xfe 0x4d 0x04 0xfe 0x4e 0x04 0xfe 0x4f 0x04 0xfe 0x50 0x04 0xfe 0x51 0x04 0xfe 0x52 0x04>;
interrupt-names = "xhci\\0mbox\\0wake0\\0wake1\\0wake2\\0wake3\\0wake4\\0wake5\\0wake6";
clocks = <0x03 0x10b 0x03 0x10d 0x03 0x10c 0x03 0x113 0x03 0x0e 0x03 0x110 0x03 0x67 0x03 0x0e 0x03 0x64>;
clock-names = "xusb_host\\0xusb_falcon_src\\0xusb_ss\\0xusb_ss_src\\0xusb_hs_src\\0xusb_fs_src\\0pll_u_480m\\0clk_m\\0pll_e";
interconnects = <0x58 0x4a 0x59 0x58 0x4b 0x59>;
interconnect-names = "dma-mem\\0write";
iommus = <0xf3 0x0e>;
power-domains = <0x03 0x0c 0x03 0x0a>;
power-domain-names = "xusb_host\\0xusb_ss";
nvidia,xusb-padctl = <0xfa>;
dma-coherent;
status = "okay";
phys = <0xfb 0xfc 0xfd>;
phy-names = "usb2-0\\0usb2-1\\0usb3-2";
};
and this is my pin map
I can use usb2-1 (C11, C10)normally, but usb2-0(A10,A11)cannot be initialized and use ,why?
what does that mean not able to initialized here?
dmesg | grep “usb”
info can not find anything about usb 2-0 , cannot use mouse with usb 2-0
please share the dmesg as attachment first
nv@nv-desktop:~$ sudo dmesg |grep “usb”
[sudo] password for nv:
[ 0.104424] usbcore: registered new interface driver usbfs
[ 0.104438] usbcore: registered new interface driver hub
[ 0.104449] usbcore: registered new device driver usb
[ 0.220535] usbcore: registered new interface driver usb-storage
[ 3.949817] usbcore: registered new interface driver usbhid
[ 3.949824] usbhid: USB HID core driver
[ 4.016544] usbcore: registered new interface driver snd-usb-audio
[ 4.264291] tegra-xusb 3610000.usb: Adding to iommu group 3
[ 4.278298] tegra-xusb 3610000.usb: Firmware timestamp: 2023-02-10 03:48:10 UTC
[ 4.278307] tegra-xusb 3610000.usb: xHCI Host Controller
[ 4.278320] tegra-xusb 3610000.usb: new USB bus registered, assigned bus number 1
[ 4.279068] tegra-xusb 3610000.usb: hcc params 0x0180ff05 hci version 0x120 quirks 0x0000000000010810
[ 4.279087] tegra-xusb 3610000.usb: irq 127, io mem 0x03610000
[ 4.279200] tegra-xusb 3610000.usb: xHCI Host Controller
[ 4.279203] tegra-xusb 3610000.usb: new USB bus registered, assigned bus number 2
[ 4.279207] tegra-xusb 3610000.usb: Host supports USB 3.1 Enhanced SuperSpeed
[ 11.084698] tegra-xudc 3550000.usb: Adding to iommu group 48
nv@nv-desktop:~$ sudo dmesg |grep “usb2-1”
nv@nv-desktop:~$ lsusb -vvv
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Couldn’t open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.10
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 3
bMaxPacketSize0 9
idVendor 0x1d6b Linux Foundation
idProduct 0x0003 3.0 root hub
bcdDevice 5.15
iManufacturer 3 Linux 5.15.148-tegra xhci-hcd
iProduct 2 xHCI Host Controller
iSerial 1 3610000.usb
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x001f
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 12
bMaxBurst 0
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Couldn’t open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 1 Single TT
bMaxPacketSize0 64
idVendor 0x1d6b Linux Foundation
idProduct 0x0002 2.0 root hub
bcdDevice 5.15
iManufacturer 3 Linux 5.15.148-tegra xhci-hcd
iProduct 2 xHCI Host Controller
iSerial 1 3610000.usb
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0019
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0004 1x 4 bytes
bInterval 12
nv@nv-desktop:~$
Will hotplug the USB device on the connector trigger any new log in dmesg?
usb2-1 have new dmesg ,usb2-0 dont have anything
mouse hotplug on usb2-1 red led of mouse is light ,on usb2-0 is not light
Are you sure the vbus on usb2-0 is correctly set?
Is your usb2-0 any kind of hardware design that supports OTG?
no ,usb 2-0 desgin is same as usb2-1 ,vbus is pull-up by hardwre,I change usb2-0 mode as host in device-tree ,usb2-0 must be desgin hardware as support otg?
Please disable 3550000 controller in the device tree if you don’t want usb2-0 as device mode.
OK thanks for your reply ,I will try later
thanks your help ,but my usb still cannot use
this is my new device -tree ,usb2-0 still can not use
padctl@3520000 {
compatible = "nvidia,tegra234-xusb-padctl";
reg = <0x00 0x3520000 0x00 0x20000 0x00 0x3540000 0x00 0x10000>;
reg-names = "padctl\0ao";
interrupts = <0x00 0xa7 0x04>;
resets = <0x03 0x72>;
reset-names = "padctl";
status = "okay";
vclamp-usb-supply = <0xf7>;
avdd-usb-supply = <0xf8>;
phandle = <0xfa>;
pads {
usb2 {
clocks = <0x03 0xa5>;
clock-names = "trk";
lanes {
usb2-0 {
nvidia,function = "xusb";
status = "okay";
#phy-cells = <0x00>;
phandle = <0xfc>;
};
usb2-1 {
nvidia,function = "xusb";
status = "okay";
#phy-cells = <0x00>;
phandle = <0xfd>;
};
usb2-2 {
nvidia,function = "xusb";
status = "disabled";
#phy-cells = <0x00>;
};
usb2-3 {
nvidia,function = "xusb";
status = "disabled";
#phy-cells = <0x00>;
};
};
};
usb3 {
lanes {
usb3-0 {
nvidia,function = "xusb";
status = "disabled";
#phy-cells = <0x00>;
};
usb3-1 {
nvidia,function = "xusb";
status = "disabled";
#phy-cells = <0x00>;
};
usb3-2 {
nvidia,function = "xusb";
status = "okay";
#phy-cells = <0x00>;
phandle = <0xfe>;
};
usb3-3 {
nvidia,function = "xusb";
status = "disabled";
#phy-cells = <0x00>;
};
};
};
};
ports {
usb2-0 {
status = "okay";
vbus-supply = <0xf9>;
mode = "host";
nvidia,function = "xusb";
};
usb2-1 {
status = "okay";
vbus-supply = <0xf9>;
mode = "host";
nvidia,function = "xusb";
};
usb2-2 {
status = "disabled";
vbus-supply = <0xf9>;
};
usb2-3 {
status = "disabled";
vbus-supply = <0xf9>;
};
usb3-0 {
status = "disabled";
};
usb3-1 {
status = "disabled";
};
usb3-2 {
status = "okay";
nvidia,usb2-companion = <0x01>;
};
usb3-3 {
status = "disabled";
};
};
};
usb@3550000 {
compatible = "nvidia,tegra234-xudc";
reg = <0x00 0x3550000 0x00 0x8000 0x00 0x3558000 0x00 0x8000>;
reg-names = "base\0fpci";
interrupts = <0x00 0xa6 0x04>;
clocks = <0x03 0x109 0x03 0x10c 0x03 0x113 0x03 0x110>;
clock-names = "dev\0ss\0ss_src\0fs_src";
interconnects = <0x58 0x4c 0x59 0x58 0x4d 0x59>;
interconnect-names = "dma-mem\0write";
iommus = <0xf3 0x0f>;
power-domains = <0x03 0x0b 0x03 0x0a>;
power-domain-names = "dev\0ss";
nvidia,xusb-padctl = <0xfa>;
dma-coherent;
status = "disabled";
};
usb@3610000 {
compatible = "nvidia,tegra234-xusb";
reg = <0x00 0x3610000 0x00 0x40000 0x00 0x3600000 0x00 0x10000 0x00 0x3650000 0x00 0x10000>;
reg-names = "hcd\0fpci\0bar2";
interrupts-extended = <0x01 0x00 0xa3 0x04 0x01 0x00 0xa4 0x04 0xfb 0x4c 0x04 0xfb 0x4d 0x04 0xfb 0x4e 0x04 0xfb 0x4f 0x04 0xfb 0x50 0x04 0xfb 0x51 0x04 0xfb 0x52 0x04>;
interrupt-names = "xhci\0mbox\0wake0\0wake1\0wake2\0wake3\0wake4\0wake5\0wake6";
clocks = <0x03 0x10b 0x03 0x10d 0x03 0x10c 0x03 0x113 0x03 0x0e 0x03 0x110 0x03 0x67 0x03 0x0e 0x03 0x64>;
clock-names = "xusb_host\0xusb_falcon_src\0xusb_ss\0xusb_ss_src\0xusb_hs_src\0xusb_fs_src\0pll_u_480m\0clk_m\0pll_e";
interconnects = <0x58 0x4a 0x59 0x58 0x4b 0x59>;
interconnect-names = "dma-mem\0write";
iommus = <0xf3 0x0e>;
power-domains = <0x03 0x0c 0x03 0x0a>;
power-domain-names = "xusb_host\0xusb_ss";
nvidia,xusb-padctl = <0xfa>;
dma-coherent;
status = "okay";
phys = <0xfc 0xfd 0xfe>;
phy-names = "usb2-0\0usb2-1\0usb3-2";
};

I’m sure modifiction is right in system
this is new dmesg info
nv@nv-desktop:~$ sudo dmesg |grep “361000”
[ 4.165858] tegra-xusb 3610000.usb: Adding to iommu group 3
[ 4.182075] tegra-xusb 3610000.usb: Firmware timestamp: 2023-02-10 03:48:10 UTC
[ 4.182083] tegra-xusb 3610000.usb: xHCI Host Controller
[ 4.182095] tegra-xusb 3610000.usb: new USB bus registered, assigned bus number 1
[ 4.182843] tegra-xusb 3610000.usb: hcc params 0x0180ff05 hci version 0x120 quirks 0x0000000000010810
[ 4.182860] tegra-xusb 3610000.usb: irq 126, io mem 0x03610000
[ 4.182988] tegra-xusb 3610000.usb: xHCI Host Controller
[ 4.182992] tegra-xusb 3610000.usb: new USB bus registered, assigned bus number 2
[ 4.182996] tegra-xusb 3610000.usb: Host supports USB 3.1 Enhanced SuperSpeed
[ 14.294581] tegra194-pcie 14160000.pcie: IO 0x0036100000..0x00361fffff → 0x0036100000
[ 16.397407] pci_bus 0004:00: root bus resource [io 0x100000-0x1fffff] (bus address [0x36100000-0x361fffff])
[ 177.377366] tegra-xusb 3610000.usb: Firmware timestamp: 2023-02-10 03:48:10 UTC
[ 178.360270] input: PixArt Dell MS116 USB Optical Mouse as /devices/platform/bus@0/3610000.usb/usb1/1-2/1-2.2/1-2.2:1.0/0003:413C:301A.0001/input/input5
[ 178.361292] hid-generic 0003:413C:301A.0001: input,hidraw0: USB HID v1.11 Mouse [PixArt Dell MS116 USB Optical Mouse] on usb-3610000.usb-2.2/input0
[ 178.612619] input: DELL Dell USB Entry Keyboard as /devices/platform/bus@0/3610000.usb/usb1/1-2/1-2.4/1-2.4:1.0/0003:413C:2107.0002/input/input6
[ 178.672542] hid-generic 0003:413C:2107.0002: input,hidraw1: USB HID v1.11 Keyboard [DELL Dell USB Entry Keyboard] on usb-3610000.usb-2.4/input0
nv@nv-desktop:~$ sudo dmesg |grep “usb”
[ 0.104724] usbcore: registered new interface driver usbfs
[ 0.104740] usbcore: registered new interface driver hub
[ 0.104753] usbcore: registered new device driver usb
[ 0.221707] usbcore: registered new interface driver usb-storage
[ 3.828773] usbcore: registered new interface driver usbhid
[ 3.828779] usbhid: USB HID core driver
[ 3.895917] usbcore: registered new interface driver snd-usb-audio
[ 4.165858] tegra-xusb 3610000.usb: Adding to iommu group 3
[ 4.182075] tegra-xusb 3610000.usb: Firmware timestamp: 2023-02-10 03:48:10 UTC
[ 4.182083] tegra-xusb 3610000.usb: xHCI Host Controller
[ 4.182095] tegra-xusb 3610000.usb: new USB bus registered, assigned bus number 1
[ 4.182843] tegra-xusb 3610000.usb: hcc params 0x0180ff05 hci version 0x120 quirks 0x0000000000010810
[ 4.182860] tegra-xusb 3610000.usb: irq 126, io mem 0x03610000
[ 4.182988] tegra-xusb 3610000.usb: xHCI Host Controller
[ 4.182992] tegra-xusb 3610000.usb: new USB bus registered, assigned bus number 2
[ 4.182996] tegra-xusb 3610000.usb: Host supports USB 3.1 Enhanced SuperSpeed
[ 177.377366] tegra-xusb 3610000.usb: Firmware timestamp: 2023-02-10 03:48:10 UTC
Is the port you are talking about here A10/A11 USB2 port?
請問你現在在說的是A10/A11這一個USB2不能使用嗎?
yes haredware design two usbs, one usb2.0 (A10/A11 can not use)and another usb3.0(normal)
That one is usb2-2 and you disable it in the device tree…
do you mean A10/A11 is usb 2-2 ? where can I find phy and pin map, I install pinmux.xslm and user design guide , I still don’t find this map
Not sure why you could not tell that because I read the same document as you but it is obvious…
thanks you again, I‘m so sorry for that question
I install them ,and send them to chatgpt , he says A10/A11 is usb 2- 0 ,I took it as a default condition