The Nvidia Agx Xavier platform is debugged without a PD controller USB interface

Hello,The Nvidia Agx Xavier platform is debugged without a PD controller USB interface,Nvidia Agx Xavier platform without PD controller USB interface debugging, platform without PD controller, to support OTG and DP, how to modify tegra194-p2888-0001-p2822-0000-common.dtsi This device tree file, can you write an example? Thank you.

Hi,
Do you mean you have a custom board, and the OTG port on the board is a micro-B port? For type-C port, generally there’s PD controller. Would like to make sure what type of port is used.

[    0.444551] usbcore: registered new interface driver usbfs
[    0.444591] usbcore: registered new interface driver hub
[    0.444633] usbcore: registered new device driver usb
[    2.820104] usbcore: registered new interface driver r8152
[    2.825867] usbcore: registered new interface driver asix
[    2.830949] usbcore: registered new interface driver ax88179_178a
[    2.837325] usbcore: registered new interface driver cdc_ether
[    2.843074] usbcore: registered new interface driver net1080
[    2.848624] usbcore: registered new interface driver cdc_subset
[    2.854910] usbcore: registered new interface driver zaurus
[    2.860359] usbcore: registered new interface driver cdc_ncm
[    2.866032] usbcore: registered new interface driver aqc111
[    2.888107] tegra-xusb 3610000.xhci: Adding to iommu group 0
[    2.894365] usbcore: registered new interface driver uas
[    2.898608] usbcore: registered new interface driver usb-storage
[    2.915497] usbcore: registered new interface driver xpad
[    3.118449] vdd-usb-3v3: supplied by regulator-dummy
[    4.068588] usbcore: registered new interface driver usbhid
[    4.068717] usbhid: USB HID core driver
[    4.230085] usbcore: registered new interface driver snd-usb-audio
[    7.522270] tegra-xusb 3610000.xhci: Firmware timestamp: 2022-03-16 11:07:43 UTC, Version: 60.13 release
[    7.536333] tegra-xusb 3610000.xhci: xHCI Host Controller
[    7.536410] tegra-xusb 3610000.xhci: new USB bus registered, assigned bus number 1
[    7.552950] tegra-xusb 3610000.xhci: hcc params 0x0184ff25 hci version 0x110 quirks 0x0000000000050810
[    7.566052] tegra-xusb 3610000.xhci: irq 198, io mem 0x03610000
[    7.616273] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    7.623542] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.630791] usb usb1: Product: xHCI Host Controller
[    7.635392] usb usb1: Manufacturer: Linux 5.10.104-tegra xhci-hcd
[    7.641559] usb usb1: SerialNumber: 3610000.xhci
[    7.655310] tegra-xusb 3610000.xhci: xHCI Host Controller
[    7.659991] tegra-xusb 3610000.xhci: new USB bus registered, assigned bus number 2
[    7.667657] tegra-xusb 3610000.xhci: Host supports USB 3.1 Enhanced SuperSpeed
[    7.675298] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
[    7.683229] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.690509] usb usb2: Product: xHCI Host Controller
[    7.695195] usb usb2: Manufacturer: Linux 5.10.104-tegra xhci-hcd
[    7.701406] usb usb2: SerialNumber: 3610000.xhci
[    7.718175] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[    7.732971] husb311_probe ok
[    7.733769] husb311_check_revision ret = 2e99
[    7.734576]  husb311 TCPC_PRODUCT_ID = 0311
[    7.741424] OF: graph: no port node found in /i2c@c240000/husb311@4e
[    7.749085] husb311 init begin
[    7.912254] usb 1-1: new high-speed USB device number 2 using tegra-xusb
[    7.952877] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[    8.044061] usb 1-1: device descriptor read/64, error -71
[    8.304073] usb 1-1: device descriptor read/64, error -71
[    8.544208] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using tegra-xusb
[    8.576735] usb 2-1: New USB device found, idVendor=0424, idProduct=5744, bcdDevice= 2.21
[    8.592293] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=0
[    8.602180] usb 2-1: Product: USB5744
[    8.602188] usb 2-1: Manufacturer: Microchip Tech
[    8.703976] usb 1-1: new high-speed USB device number 3 using tegra-xusb
[    9.262106] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[    9.264017] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[    9.337491] usb 1-1: device descriptor read/64, error -71
[    9.351780] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[    9.377409] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[    9.400976] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[    9.424486] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[    9.448169] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[    9.471524] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[    9.496606] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[    9.588087] usb 1-1: device descriptor read/64, error -71
[    9.696305] usb usb1-port1: attempt power cycle
[    9.824217] usb 2-4: new SuperSpeed Gen 1 USB device number 3 using tegra-xusb
[    9.844633] usb 2-4: New USB device found, idVendor=0424, idProduct=5744, bcdDevice= 2.21
[    9.845698] usb 2-4: New USB device strings: Mfr=2, Product=3, SerialNumber=0
[    9.846698] usb 2-4: Product: USB5744
[    9.847624] usb 2-4: Manufacturer: Microchip Tech
[    9.856931] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   10.107969] usb 1-1: new high-speed USB device number 4 using tegra-xusb
[   10.109383] usb 1-1: Device not responding to setup address.
[   10.316208] usb 1-1: Device not responding to setup address.
[   10.524040] usb 1-1: device not accepting address 4, error -71
[   10.683422] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   10.803563] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   10.809978] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   10.817190] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   10.820650] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   10.859994] usb 1-1: new high-speed USB device number 5 using tegra-xusb
[   10.862921] usb 1-1: Device not responding to setup address.
[   11.072198] usb 1-1: Device not responding to setup address.
[   11.280002] usb 1-1: device not accepting address 5, error -71
[   11.281493] usb usb1-port1: unable to enumerate USB device
[   11.407987] usb 1-2: new high-speed USB device number 6 using tegra-xusb
[   11.560889] usb 1-2: New USB device found, idVendor=0424, idProduct=2744, bcdDevice= 2.21
[   11.560896] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   11.560899] usb 1-2: Product: USB2744
[   11.560902] usb 1-2: Manufacturer: Microchip Tech
[   11.565758] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   11.692001] usb 1-4: new high-speed USB device number 7 using tegra-xusb
[   11.848907] usb 1-4: New USB device found, idVendor=0424, idProduct=2744, bcdDevice= 2.21
[   11.848917] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   11.848922] usb 1-4: Product: USB2744
[   11.848926] usb 1-4: Manufacturer: Microchip Tech
[   11.853843] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   12.124103] usb 1-1: new high-speed USB device number 8 using tegra-xusb
[   12.227649] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   12.256150] usb 1-1: device descriptor read/64, error -71
[   12.273942] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   12.307115] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   12.309530] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   12.314114] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   12.325771] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   12.329111] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   12.402272] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   12.449311] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   12.451778] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   12.541868] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   12.545647] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   12.577212] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   12.578955] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   12.648658] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   12.794980] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   12.800610] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   12.907499] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   12.980115] usb 1-1: device descriptor read/64, error -71
[   13.216025] usb 1-1: new high-speed USB device number 9 using tegra-xusb
[   13.344114] usb 1-1: device descriptor read/64, error -71
[   13.462118] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   13.466685] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   13.472138] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   13.476634] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   13.580194] usb 1-1: device descriptor read/64, error -71
[   13.688410] usb usb1-port1: attempt power cycle
[   13.768033] usb 1-4.4: new high-speed USB device number 10 using tegra-xusb
[   13.868759] usb 1-4.4: New USB device found, idVendor=0403, idProduct=6011, bcdDevice= 8.00
[   13.868770] usb 1-4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   13.868775] usb 1-4.4: Product: Quad RS232-HS
[   13.868779] usb 1-4.4: Manufacturer: FTDI
[   13.952019] usb 1-2.2: new full-speed USB device number 11 using tegra-xusb
[   13.996395] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   14.062848] usb 1-2.2: New USB device found, idVendor=1ea7, idProduct=0066, bcdDevice= 2.00
[   14.062859] usb 1-2.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   14.062864] usb 1-2.2: Product: 2.4G Mouse
[   14.067385] input: 2.4G Mouse as /devices/platform/3610000.xhci/usb1/1-2/1-2.2/1-2.2:1.0/0003:1EA7:0066.0001/input/input5
[   14.124321] hid-generic 0003:1EA7:0066.0001: input,hidraw0: USB HID v1.10 Keyboard [2.4G Mouse] on usb-3610000.xhci-2.2/input0
[   14.128871] input: 2.4G Mouse as /devices/platform/3610000.xhci/usb1/1-2/1-2.2/1-2.2:1.1/0003:1EA7:0066.0002/input/input6
[   14.129069] input: 2.4G Mouse as /devices/platform/3610000.xhci/usb1/1-2/1-2.2/1-2.2:1.1/0003:1EA7:0066.0002/input/input7
[   14.129355] input: 2.4G Mouse Consumer Control as /devices/platform/3610000.xhci/usb1/1-2/1-2.2/1-2.2:1.1/0003:1EA7:0066.0002/input/input8
[   14.140061] usb 1-4.5: new high-speed USB device number 12 using tegra-xusb
[   14.189106] input: 2.4G Mouse System Control as /devices/platform/3610000.xhci/usb1/1-2/1-2.2/1-2.2:1.1/0003:1EA7:0066.0002/input/input9
[   14.189423] hid-generic 0003:1EA7:0066.0002: input,hiddev96,hidraw1: USB HID v1.10 Mouse [2.4G Mouse] on usb-3610000.xhci-2.2/input1
[   14.241415] usb 1-4.5: New USB device found, idVendor=0424, idProduct=2740, bcdDevice= 2.00
[   14.241426] usb 1-4.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   14.241431] usb 1-4.5: Product: Hub Controller
[   14.241436] usb 1-4.5: Manufacturer: Microchip Tech
[   14.372000] usb 1-1: new high-speed USB device number 13 using tegra-xusb
[   14.397572] usb 1-1: device descriptor read/all, error -71
[   14.427727] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   14.524047] usb 1-1: new high-speed USB device number 14 using tegra-xusb
[   14.524293] usb 1-1: Device not responding to setup address.
[   14.647118] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   14.732255] usb 1-1: Device not responding to setup address.
[   14.927242] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   14.943998] usb 1-1: device not accepting address 14, error -71
[   14.944354] usb usb1-port1: unable to enumerate USB device
[   15.024018] usb 1-2.5: new high-speed USB device number 15 using tegra-xusb
[   15.129187] usb 1-2.5: New USB device found, idVendor=0424, idProduct=2740, bcdDevice= 2.00
[   15.129194] usb 1-2.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   15.129198] usb 1-2.5: Product: Hub Controller
[   15.129201] usb 1-2.5: Manufacturer: Microchip Tech
[   15.259981] usb 1-1: new high-speed USB device number 16 using tegra-xusb
[   15.368484] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   15.388191] usb 1-1: device descriptor read/64, error -71
[   15.624141] usb 1-1: device descriptor read/64, error -71
[   15.859983] usb 1-1: new high-speed USB device number 17 using tegra-xusb
[   15.992122] usb 1-1: device descriptor read/64, error -71
[   16.106764] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   16.228173] usb 1-1: device descriptor read/64, error -71
[   16.248704] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   16.336311] usb usb1-port1: attempt power cycle
[   16.648513] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   16.748133] usb 1-1: new high-speed USB device number 18 using tegra-xusb
[   16.773528] usb 1-1: device descriptor read/all, error -71
[   16.900098] usb 1-1: new high-speed USB device number 19 using tegra-xusb
[   16.929469] usb 1-1: device descriptor read/all, error -71
[   16.930942] usb usb1-port1: unable to enumerate USB device
[   17.373851] usbcore: registered new interface driver ftdi_sio
[   17.373888] usbserial: USB Serial support registered for FTDI USB Serial Device
[   17.374323] usb 1-4.4: Detected FT4232H
[   17.374997] usb 1-4.4: FTDI USB Serial Device converter now attached to ttyUSB0
[   17.376012] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   17.379396] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   17.386892] usb 1-4.4: Detected FT4232H
[   17.390360] usb 1-4.4: FTDI USB Serial Device converter now attached to ttyUSB1
[   17.391545] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   17.394868] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   17.399438] usb 1-4.4: Detected FT4232H
[   17.402229] usb 1-4.4: FTDI USB Serial Device converter now attached to ttyUSB2
[   17.403013] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   17.404322] usb 1-4.4: Detected FT4232H
[   17.405081] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   17.407198] usb 1-4.4: FTDI USB Serial Device converter now attached to ttyUSB3
[   17.408857] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[   17.410626] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[  111.550713] usb 1-2.2: USB disconnect, device number 11
[  115.069702] usb 1-1: new full-speed USB device number 21 using tegra-xusb
[  115.225213] usb 1-1: New USB device found, idVendor=1ea7, idProduct=0066, bcdDevice= 2.00
[  115.225226] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[  115.225231] usb 1-1: Product: 2.4G Mouse
[  115.230262] input: 2.4G Mouse as /devices/platform/3610000.xhci/usb1/1-1/1-1:1.0/0003:1EA7:0066.0003/input/input11
[  115.291147] hid-generic 0003:1EA7:0066.0003: input,hidraw0: USB HID v1.10 Keyboard [2.4G Mouse] on usb-3610000.xhci-1/input0
[  115.292482] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[  115.297478] input: 2.4G Mouse as /devices/platform/3610000.xhci/usb1/1-1/1-1:1.1/0003:1EA7:0066.0004/input/input12
[  115.298089] input: 2.4G Mouse as /devices/platform/3610000.xhci/usb1/1-1/1-1:1.1/0003:1EA7:0066.0004/input/input13
[  115.299969] input: 2.4G Mouse Consumer Control as /devices/platform/3610000.xhci/usb1/1-1/1-1:1.1/0003:1EA7:0066.0004/input/input14
[  115.359058] input: 2.4G Mouse System Control as /devices/platform/3610000.xhci/usb1/1-1/1-1:1.1/0003:1EA7:0066.0004/input/input15
[  115.359463] hid-generic 0003:1EA7:0066.0004: input,hiddev96,hidraw1: USB HID v1.10 Mouse [2.4G Mouse] on usb-3610000.xhci-1/input1
[  115.360405] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[  121.666899] usb 1-1: USB disconnect, device number 21
[  126.882408] usb 1-2.2: new full-speed USB device number 22 using tegra-xusb
[  126.985337] usb 1-2.2: New USB device found, idVendor=1ea7, idProduct=0066, bcdDevice= 2.00
[  126.985353] usb 1-2.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[  126.985363] usb 1-2.2: Product: 2.4G Mouse
[  126.991208] input: 2.4G Mouse as /devices/platform/3610000.xhci/usb1/1-2/1-2.2/1-2.2:1.0/0003:1EA7:0066.0005/input/input17
[  127.051835] hid-generic 0003:1EA7:0066.0005: input,hidraw0: USB HID v1.10 Keyboard [2.4G Mouse] on usb-3610000.xhci-2.2/input0
[  127.053908] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[  127.058296] input: 2.4G Mouse as /devices/platform/3610000.xhci/usb1/1-2/1-2.2/1-2.2:1.1/0003:1EA7:0066.0006/input/input18
[  127.058685] input: 2.4G Mouse as /devices/platform/3610000.xhci/usb1/1-2/1-2.2/1-2.2:1.1/0003:1EA7:0066.0006/input/input19
[  127.059118] input: 2.4G Mouse Consumer Control as /devices/platform/3610000.xhci/usb1/1-2/1-2.2/1-2.2:1.1/0003:1EA7:0066.0006/input/input20
[  127.118963] input: 2.4G Mouse System Control as /devices/platform/3610000.xhci/usb1/1-2/1-2.2/1-2.2:1.1/0003:1EA7:0066.0006/input/input21
[  127.119309] hid-generic 0003:1EA7:0066.0006: input,hiddev96,hidraw1: USB HID v1.10 Mouse [2.4G Mouse] on usb-3610000.xhci-2.2/input1
[  127.121225] tegra-xudc 3550000.xudc: failed to get usbphy-0: -517
[  129.444795] usb 1-1: new high-speed USB device number 23 using tegra-xusb
[  129.573040] usb 1-1: device descriptor read/64, error -71
[  129.809327] usb 1-1: device descriptor read/64, error -71
[  130.818230] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[  130.818816] usb usb1-port1: attempt power cycle
[  131.230317] usb 1-1: new high-speed USB device number 25 using tegra-xusb
[  131.230558] usb 1-1: Device not responding to setup address.
[  131.438695] usb 1-1: Device not responding to setup address.
[  131.646622] usb 1-1: device not accepting address 25, error -71
[  131.983059] usb 1-1: new high-speed USB device number 26 using tegra-xusb
[  131.983429] usb 1-1: Device not responding to setup address.
[  132.191717] usb 1-1: Device not responding to setup address.
[  132.399183] usb 1-1: device not accepting address 26, error -71
[  132.399823] usb usb1-port1: unable to enumerate USB device
[  132.671471] usb 1-1: new high-speed USB device number 27 using tegra-xusb
[  132.799695] usb 1-1: device descriptor read/64, error -71
[  133.035840] usb 1-1: device descriptor read/64, error -71
[  133.271884] usb 1-1: new high-speed USB device number 28 using tegra-xusb
[  133.400047] usb 1-1: device descriptor read/64, error -71
[  134.052675] usb 1-1: device descriptor read/64, error -71
[  134.161486] usb usb1-port1: attempt power cycle
[  134.572890] usb 1-1: new high-speed USB device number 29 using tegra-xusb
[  134.573241] usb 1-1: Device not responding to setup address.
[  134.781227] usb 1-1: Device not responding to setup address.
[  134.989022] usb 1-1: device not accepting address 29, error -71
[  135.605466] usb 1-1: new high-speed USB device number 30 using tegra-xusb
[  135.605706] usb 1-1: Device not responding to setup address.
[  135.814047] usb 1-1: Device not responding to setup address.
[  136.021936] usb 1-1: device not accepting address 30, error -71
[  136.023149] usb usb1-port1: unable to enumerate USB device
[  137.126649] usb 1-1: new high-speed USB device number 31 using tegra-xusb
[  137.254610] usb 1-1: device descriptor read/64, error -71
[  137.490748] usb 1-1: device descriptor read/64, error -71
[  137.726785] usb 1-1: new high-speed USB device number 32 using tegra-xusb
[  137.859202] usb 1-1: device descriptor read/64, error -71
[  138.095317] usb 1-1: device descriptor read/64, error -71
[  138.203939] usb usb1-port1: attempt power cycle
[  138.615468] usb 1-1: new high-speed USB device number 33 using tegra-xusb
[  138.641089] usb 1-1: device descriptor read/all, error -71
[  138.767492] usb 1-1: new high-speed USB device number 34 using tegra-xusb
[  138.788693] usb 1-1: device descriptor read/8, error -71
[  138.916134] usb 1-1: device descriptor read/8, error -71
[  139.023932] usb usb1-port1: unable to enumerate USB device
[  139.295775] usb 1-1: new high-speed USB device number 35 using tegra-xusb
[  139.427900] usb 1-1: device descriptor read/64, error -71
[  139.664095] usb 1-1: device descriptor read/64, error -71
[  139.900103] usb 1-1: new high-speed USB device number 36 using tegra-xusb
[  140.029156] usb 1-1: device descriptor read/64, error -71
[  141.040950] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[  141.042139] usb usb1-port1: attempt power cycle
[  141.453062] usb 1-1: new high-speed USB device number 37 using tegra-xusb
[  141.453322] usb 1-1: Device not responding to setup address.
[  141.661354] usb 1-1: Device not responding to setup address.
[  141.869232] usb 1-1: device not accepting address 37, error -71
[  141.997418] usb 1-1: new high-speed USB device number 38 using tegra-xusb
[  141.997744] usb 1-1: Device not responding to setup address.
[  142.205813] usb 1-1: Device not responding to setup address.
[  142.413679] usb 1-1: device not accepting address 38, error -71
[  142.414764] usb usb1-port1: unable to enumerate USB device
[  143.526381] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[  143.654322] usb 1-1: new high-speed USB device number 40 using tegra-xusb
[  143.786494] usb 1-1: device descriptor read/64, error -71
[  144.022542] usb 1-1: device descriptor read/64, error -71
[  144.131513] usb usb1-port1: attempt power cycle
[  144.542891] usb 1-1: new high-speed USB device number 41 using tegra-xusb
[  144.543358] usb 1-1: Device not responding to setup address.
[  144.751042] usb 1-1: Device not responding to setup address.
[  144.959172] usb 1-1: device not accepting address 41, error -71
[  145.087065] usb 1-1: new high-speed USB device number 42 using tegra-xusb
[  145.087441] usb 1-1: Device not responding to setup address.
[  145.295378] usb 1-1: Device not responding to setup address.
[  145.503269] usb 1-1: device not accepting address 42, error -71
[  145.503979] usb usb1-port1: unable to enumerate USB device
[  145.775419] usb 1-1: new high-speed USB device number 43 using tegra-xusb
[  146.323829] usb 1-1: device descriptor read/64, error -71
[  147.400407] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[  147.528334] usb 1-1: new high-speed USB device number 44 using tegra-xusb
[  147.656563] usb 1-1: device descriptor read/64, error -71
[  147.892808] usb 1-1: device descriptor read/64, error -71
[  148.001115] usb usb1-port1: attempt power cycle
[  149.253351] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[  149.381339] usb 1-1: new high-speed USB device number 46 using tegra-xusb
[  149.402153] usb 1-1: device descriptor read/8, error -71
[  149.530050] usb 1-1: device descriptor read/8, error -71
[  149.638045] usb usb1-port1: unable to enumerate USB device
[  149.909890] usb 1-1: new high-speed USB device number 47 using tegra-xusb
[  150.038081] usb 1-1: device descriptor read/64, error -71
[  150.273976] usb 1-1: device descriptor read/64, error -71
[  151.282460] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[  151.283090] usb usb1-port1: attempt power cycle
[  151.694520] usb 1-1: new high-speed USB device number 49 using tegra-xusb
[  151.694743] usb 1-1: Device not responding to setup address.
[  151.902839] usb 1-1: Device not responding to setup address.
[  152.110756] usb 1-1: device not accepting address 49, error -71
[  152.238869] usb 1-1: new high-speed USB device number 50 using tegra-xusb
[  152.239110] usb 1-1: Device not responding to setup address.
[  152.447170] usb 1-1: Device not responding to setup address.
[  152.655058] usb 1-1: device not accepting address 50, error -71
[  152.655663] usb usb1-port1: unable to enumerate USB device
[  153.907764] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[  154.035757] usb 1-1: new high-speed USB device number 52 using tegra-xusb
[  154.164106] usb 1-1: device descriptor read/64, error -71
[  154.400083] usb 1-1: device descriptor read/64, error -71
[  154.508780] usb usb1-port1: attempt power cycle
[  154.924248] usb 1-1: new high-speed USB device number 53 using tegra-xusb
[  154.924522] usb 1-1: Device not responding to setup address.
[  155.132564] usb 1-1: Device not responding to setup address.
[  155.344387] usb 1-1: device not accepting address 53, error -71
[  155.476507] usb 1-1: new high-speed USB device number 54 using tegra-xusb
[  155.502058] usb 1-1: device descriptor read/all, error -71
[  155.502570] usb usb1-port1: unable to enumerate USB device

Hello,above is the custom board about the DSEG of USB. Yes, I have a custom board, the interface type is Type-C port, mainly to implement Type-C function, support USB2.0 and USB3.0, and DP function, the customized board only removes the Cypress Type-C controller, we use rt1711h to replace, corresponding to jetson’s kernel source path kernel/kernel-5.10/drivers/usb/typec/tcpm/ tcpci_rt1711h.c, how do I modify this device tree and drivers? Can guidance be given?thank you.

/*
 * Copyright (c) 2018-2020, NVIDIA CORPORATION.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/*
 * Common include DTS file for CVM:P2888-0001 and CVB:P2822-0000 variants.
 */

#include "dt-bindings/extcon-ids.h"
#include "tegra194-p2888-0000-a00.dtsi"
#include <t19x-common-platforms/tegra194-platforms-eqos.dtsi>
#include "tegra194-p2822-0000-a00.dtsi"
#include "tegra194-power-tree-p2888-0001-p2822-1000.dtsi"
#include <t19x-common-platforms/tegra194-comms.dtsi>
#include "tegra194-thermal-p2888.dtsi"
#include "tegra194-plugin-manager-p2888-0000.dtsi"
#include "tegra194-plugin-manager-p2822-0000.dtsi"
#include "tegra194-super-module-e2614-p2888-0000.dtsi"
#include <t19x-common-platforms/tegra194-no-pll-aon-clock.dtsi>
#include "dt-bindings/usb/pd.h"

/ {
	nvidia,dtsfilename = __FILE__;
	nvidia,dtbbuildtime = __DATE__, __TIME__;
	nvidia,fastboot-usb-vid = <0x0955>;
	nvidia,fastboot-usb-pid = <0xee1e>;

	compatible = "nvidia,galen", "nvidia,jetson-xavier", "nvidia,p2822-0000+p2888-0001", "nvidia,tegra194";

	chosen {
		bootargs ="console=ttyTCU0,115200 mem=62G@2G";
		board-has-eeprom;
	};

	firmware {
		android {
			compatible = "android,firmware";
			hardware = "galen";
			vbmeta {
				compatible = "android,vbmeta";
				parts = "vbmeta,kernel,kernel-dtb,APP,vendor,SOS";
			};
			fstab {
				compatible = "android,fstab";
				vendor {
					compatible = "android,vendor";
					dev = "/dev/block/platform/3460000.sdhci/by-name/vendor";
					type = "ext4";
					mnt_flags = "ro";
					fsmgr_flags = "wait,avb";
				};
				odm {
					compatible = "android,odm";
					dev = "/dev/block/platform/3460000.sdhci/by-name/odm";
					type = "ext4";
					mnt_flags = "ro";
					fsmgr_flags = "wait,avb";
				};
			};
		};
	};

	bluedroid_pm {
		compatible = "nvidia,tegra-bluedroid_pm";
		bluedroid_pm,reset-gpio = <&tegra_main_gpio TEGRA194_MAIN_GPIO(M, 6) 0>;
		bluedroid_pm,host-wake-gpio = <&tegra_main_gpio TEGRA194_MAIN_GPIO(Y, 0) 0>;
		bluedroid_pm,ext-wake-gpio = <&tegra_main_gpio TEGRA194_MAIN_GPIO(M, 7) 0>;
		interrupt-parent = <&tegra_main_gpio>;
		interrupts = <TEGRA194_MAIN_GPIO(Y, 0) IRQ_TYPE_EDGE_FALLING>;
	};

	spi@c260000 {
		status = "disabled";
	};

	spi@3210000 {
		status = "okay";
		spi@0 {
			compatible = "tegra-spidev";
			reg = <0x0>;
			spi-max-frequency = <33000000>;
			controller-data {
				nvidia,enable-hw-based-cs;
				nvidia,rx-clk-tap-delay = <0x11>;
			};
		};
		spi@1 {
			compatible = "tegra-spidev";
			reg = <0x1>;
			spi-max-frequency = <33000000>;
			controller-data {
				nvidia,enable-hw-based-cs;
				nvidia,rx-clk-tap-delay = <0x11>;
			};
		};
	};

	spi@3270000 {
		status = "disabled";
	};

	spi@3300000 {
		status = "disabled";
	};

#if TEGRA_PMC_VERSION >= DT_VERSION_2
	pmc@c360000 {
		nvidia,invert-interrupt;
	};
#else
	pmc@c370000 {
		nvidia,invert-interrupt;
	};
#endif

	hdr40_i2c0: i2c@c240000 {

	
		bmi160@69 {
			compatible = "bmi,bmi160";
			reg = <0x69>;
			interrupt-parent = <&tegra_aon_gpio>;
			interrupts = <TEGRA194_AON_GPIO(AA, 2) GPIO_ACTIVE_LOW>;
			accelerometer_matrix    = [01 00 00 00 01 00 00 00 01];
			gyroscope_matrix        = [01 00 00 00 01 00 00 00 01];
			accelerometer_delay_us_min = <1250>;
			gyroscope_delay_us_min = <1250>;
			status = "disabled";
		};
		ucsi_ccg: ucsi_ccg@8 {
			status = "okay";
#if TEGRA_XUSB_DT_VERSION == DT_VERSION_2
			typec-extcon {
				typec_port0: port-0 {
					status = "okay";
					#extcon-cells = <1>;
				};
				typec_port1: port-1 {
					status = "okay";
					#extcon-cells = <1>;
				};
			};
			typec-pd {
				typec_pd: pd {
					status = "okay";
					#extcon-cells = <1>;
				};
			};
#endif
#if TEGRA_XUSB_DT_VERSION >= DT_VERSION_3
			ccgx,firmware-build = "gn";
			ccg_typec_con0: connector@0 {
				compatible = "usb-c-connector";
				label = "USB-C";
				data-role = "dual";
				port {
					ucsi_ccg_p0: endpoint {
						remote-endpoint = <&usb_role_switch0>;
					};
				};
			};
#endif
		};
	};

	xusb_padctl: xusb_padctl@3520000 {
		status = "okay";

		pads {
			usb2 {
				lanes {
					usb2-0 {
						nvidia,function = "xusb";
						status = "okay";
					};
					usb2-1 {
						nvidia,function = "xusb";
						status = "okay";
					};
					usb2-2 {
						nvidia,function = "xusb";
						status = "okay";
					};
					usb2-3 {
						nvidia,function = "xusb";
						status = "okay";
					};
				};
			};
			usb3 {
				lanes {
					usb3-0 {
						nvidia,function = "xusb";
						status = "okay";
					};
					usb3-2 {
						nvidia,function = "xusb";
						status = "okay";
					};
					usb3-3 {
						nvidia,function = "xusb";
						status = "okay";
					};
				};
			};
		};

		ports {
			usb2-0 {
				// mode = "otg";
				mode = "host";
				usb-role-switch;
				vbus-supply = <&battery_reg>;
				status = "okay";
#if TEGRA_XUSB_DT_VERSION >= DT_VERSION_3
				port {
					#address-cells = <1>;
					#size-cells = <0>;
					usb_role_switch0: endpoint@0 {
						reg = <0>;
						remote-endpoint = <&ucsi_ccg_p0>;
					};
					usb_role_switch1: endpoint@1 {
						reg = <1>;
						remote-endpoint = <&husb311_ep>;
					};
				};
#endif
			};
			usb2-1 {
				mode = "host";
				status = "okay";
			};
			usb2-2 {
				mode = "host";
				status = "okay";
			};
			usb2-3 {
				mode = "host";
				status = "okay";
			};
			usb3-0 {
				nvidia,usb2-companion = <1>;
				status = "okay";
			};
			usb3-2 {
				nvidia,usb2-companion = <0>;
				status = "okay";
			};
			usb3-3 {
				nvidia,usb2-companion = <3>;
				nvidia,usb3-gen1-only= <1>;
				status = "okay";
			};
		};
	};

	tegra_xudc: xudc@3550000 {
#if TEGRA_XUSB_DT_VERSION == DT_VERSION_2
// 		extcon-cables = <&typec_port0 0>;
// 		extcon-cable-names = "vbus";
// 		#extcon-cells = <1>;
#endif
		phys = <&{/xusb_padctl@3520000/pads/usb2/lanes/usb2-0}>,
			<&{/xusb_padctl@3520000/pads/usb3/lanes/usb3-2}>;
#if defined(LINUX_VERSION) && LINUX_VERSION > 414
		phy-names = "usb2-0", "usb3-2";
#else
		phy-names = "usb2", "usb3";
#endif
		nvidia,xusb-padctl = <&xusb_padctl>;
		nvidia,boost_cpu_freq = <1200>;
		status = "okay";
	};

	tegra_xhci: xhci@3610000 {
#if TEGRA_XUSB_DT_VERSION == DT_VERSION_2
// 		extcon-cables = <&typec_port0 1>;
// 		extcon-cable-names = "id";
// 		#extcon-cells = <1>;
#endif
		phys = <&{/xusb_padctl@3520000/pads/usb2/lanes/usb2-0}>,
			<&{/xusb_padctl@3520000/pads/usb2/lanes/usb2-1}>,
			<&{/xusb_padctl@3520000/pads/usb2/lanes/usb2-3}>,
			<&{/xusb_padctl@3520000/pads/usb2/lanes/usb2-2}>,
			<&{/xusb_padctl@3520000/pads/usb3/lanes/usb3-2}>,
			<&{/xusb_padctl@3520000/pads/usb3/lanes/usb3-0}>,
			<&{/xusb_padctl@3520000/pads/usb3/lanes/usb3-3}>;
		phy-names = "usb2-0", "usb2-1", "usb2-3", "usb2-2",
			"usb3-2", "usb3-0", "usb3-3";
		nvidia,xusb-padctl = <&xusb_padctl>;
		nvidia,boost_emc_freq = <500>;
		status = "okay";
	};

	arm-pmu {
		status = "okay";
	};

	power-domain {
		status = "disabled";
	};

	interrupt-controller {
		status = "disabled";
	};

	mods-simple-bus {
		status = "disabled";
	};

	eeprom-manager {
		status = "disabled";
	};

	cpuidle {
		compatible = "nvidia,tegra19x-cpuidle";
		status = "okay";
	};

	thermal-zones {
		status = "disabled";
	};

	reserved-memory {
		ramoops_carveout {
			status = "okay";
		};
	};

	mttcan@c310000 {
		status = "okay";
	};

	mttcan@c320000 {
		status = "okay";
	};

	serial@3110000 {
		status = "okay";
	};

	pwm@3280000 {
		status = "okay";
	};

	pwm@32c0000 {
		status = "okay";
	};

	pwm@32f0000 {
		status = "okay";
	};

	hdr40_i2c1: i2c@31e0000 {
		pinctrl-names = "default";
		pinctrl-0 = <&dpaux_default>;
		bmi160@69 {
			compatible = "bmi,bmi160";
			reg = <0x69>;
			accelerometer_matrix    = [01 00 00 00 01 00 00 00 01];
			gyroscope_matrix        = [01 00 00 00 01 00 00 00 01];
			status = "disabled";
		};
	};

	host1x@13e00000 {
		dpaux@155F0000 {
			status = "okay";
			compatible = "nvidia,tegra194-dpaux3-padctl";
#if LINUX_VERSION <= 419
			/delete-property/ power-domains;
#endif
			dpaux_default: pinmux@0 {
				dpaux3_pins {
					pins = "dpaux3-3";
					function = "i2c";
				};
			};
		};
	};

	ufshci@2450000 {
		status = "disabled";
		nvidia,enable-hs-mode;
		nvidia,cd-gpios = <&tegra_aon_gpio TEGRA194_AON_GPIO(EE, 0) GPIO_ACTIVE_HIGH>;
		nvidia,cd-wakeup-capable;
	};
	pfsd {
		pwm_polarity= <PWM_POLARITY_NORMAL>;
		suspend_state = <0>;
	};

	efuse@3820000 {
#if LINUX_VERSION < 419
		efuse-burn {
			nvidia,tz = <&pllx>;
			nvidia,temp-range = <(-19000) 117000>;
			thermal-zone = <5>;
		};
#endif
	};

#if LINUX_VERSION >= 419
	efuse-burn {
		nvidia,tz = <&pllx>;
		nvidia,temp-range = <(-19000) 117000>;
	};
#endif

	tegra_udrm: tegra_udrm {
		compatible = "nvidia,tegra-udrm";
		status = "okay";
	};

	nvsciipc-kernel {
		compatible = "nvidia,nvsciipc";
		status = "okay";
	};

	clocks-init {
		compatible = "nvidia,clocks-config";
		status = "okay";
		disable {
			clocks = <&aon_clks TEGRA194_CLK_PLLAON>,
				<&bpmp_clks TEGRA194_CLK_CAN1>,
				<&bpmp_clks TEGRA194_CLK_CAN2>;
		};
	};
};

#if TEGRA_XUSB_DT_VERSION == DT_VERSION_2
&head0 {
	extcon-cables = <&typec_port0 2 &typec_port1 2>;
	extcon-cable-names = "typec0", "typec1";
	#extcon-cells = <1>;
};

&head1 {
	extcon-cables = <&typec_port0 2 &typec_port1 2>;
	extcon-cable-names = "typec0", "typec1";
	#extcon-cells = <1>;
};

&head2 {
	extcon-cables = <&typec_port0 2 &typec_port1 2>;
	extcon-cable-names = "typec0", "typec1";
	#extcon-cells = <1>;
};

&sor0 {
	nvidia,typec-port = /bits/ 8 <0>;
};

&sor1 {
	nvidia,typec-port = /bits/ 8 <1>;
};
#endif

#if LINUX_VERSION >= 414
#include <tegra194-linux-4.14.dtsi>
#endif

This is my device tree, with rt1711 PD controller, how should I modify the ucsi_ccg: ucsi_ccg@8 the relevant nodes of the device tree

Hi,
The device tree programming is different between Jetpack 4 and 5. Please check [For an OTG (On-The-GO) Port] section in adaptation guide. The mode depends on state of ID pin and VBUS_DETECT pin. Please modify the setting to fit your hardware design. On Xavier developer kit, it is Cypress PD controller + i2c bus to control the states.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.