Detect if USB C ports are dead

Hello,
For the first time I tried using USB C ports with an arduino-like embedded controller and it wont power on. I’ve tried with my phone as well, it doesnt register anything.
No messages or logs in dmesg either.

Are these ports dead or is it a configuration issue on the board, or something else?

Hi,

The USB-C ports are most likely not dead. I’ve tested this on my Axon board and the both type-c port works. It only enumerates a device once the Type-C role is negotiated correctly. Please try the following:

  1. Use a proper USB-C data cable. Many USB-C cables are charge-only and have no data lines. A C-to-C cable that carries data is best.
  2. Test with a known-good device first. A Type-C pendrive is ideal. If you use a phone, enable OTG and USB data/file-transfer mode in its settings.
  3. Watch the kernel log with sudo dmesg -W while you plug in the device. A working port shows the xHCI host controller registering and then a line like usb 5-1: new high-speed USB device.

I also tested with my phone. Earlier, no dmesg output appeared, but after enabling OTG on the phone, the device started showing up in dmesg.

vicharak@vicharak:~$ sudo dmesg -W                                                                                                                                                                          
[  118.691672] phy phy-fd5d4000.syscon:usb2-phy@4000.3: illegal mode
[  118.691692] xhci-hcd xhci-hcd.16.auto: xHCI Host Controller
[  118.691949] xhci-hcd xhci-hcd.16.auto: new USB bus registered, assigned bus number 5
[  118.692090] xhci-hcd xhci-hcd.16.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000800002010010
[  118.692145] xhci-hcd xhci-hcd.16.auto: irq 135, io mem 0xfc400000
[  118.692265] xhci-hcd xhci-hcd.16.auto: xHCI Host Controller
[  118.692377] xhci-hcd xhci-hcd.16.auto: new USB bus registered, assigned bus number 6
[  118.692391] xhci-hcd xhci-hcd.16.auto: Host supports USB 3.0 SuperSpeed
[  118.692528] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[  118.692541] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  118.692551] usb usb5: Product: xHCI Host Controller
[  118.692558] usb usb5: Manufacturer: Linux 6.1.75-axon xhci-hcd
[  118.692566] usb usb5: SerialNumber: xhci-hcd.16.auto
[  118.693539] hub 5-0:1.0: USB hub found
[  118.693573] hub 5-0:1.0: 1 port detected
[  118.693940] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
[  118.694031] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[  118.694043] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  118.694052] usb usb6: Product: xHCI Host Controller
[  118.694060] usb usb6: Manufacturer: Linux 6.1.75-axon xhci-hcd
[  118.694068] usb usb6: SerialNumber: xhci-hcd.16.auto
[  118.694472] hub 6-0:1.0: USB hub found
[  118.694497] hub 6-0:1.0: 1 port detected
[  118.999151] usb 5-1: new high-speed USB device number 2 using xhci-hcd
[  119.148681] usb 5-1: New USB device found, idVendor=04e8, idProduct=6860, bcdDevice= 5.04
[  119.148693] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  119.148698] usb 5-1: Product: SAMSUNG_Android
[  119.148702] usb 5-1: Manufacturer: SAMSUNG
[  119.148706] usb 5-1: SerialNumber: RZGL21CQ75W
[  119.248887] cdc_acm 5-1:1.1: ttyACM0: USB ACM device
[  154.320198] usb 5-1: USB disconnect, device number 2
[  154.363812] xhci-hcd xhci-hcd.16.auto: remove, state 4
[  154.363832] usb usb6: USB disconnect, device number 1
[  154.364274] xhci-hcd xhci-hcd.16.auto: USB bus 6 deregistered
[  154.365850] xhci-hcd xhci-hcd.16.auto: remove, state 1
[  154.365876] usb usb5: USB disconnect, device number 1
[  154.387060] xhci-hcd xhci-hcd.16.auto: USB bus 5 deregistered
[  159.607159] xhci-hcd xhci-hcd.16.auto: xHCI Host Controller
[  159.607676] xhci-hcd xhci-hcd.16.auto: new USB bus registered, assigned bus number 5
[  159.607851] xhci-hcd xhci-hcd.16.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000800002010010
[  159.607919] xhci-hcd xhci-hcd.16.auto: irq 134, io mem 0xfc000000
[  159.608052] xhci-hcd xhci-hcd.16.auto: xHCI Host Controller
[  159.608516] xhci-hcd xhci-hcd.16.auto: new USB bus registered, assigned bus number 6
[  159.608541] xhci-hcd xhci-hcd.16.auto: Host supports USB 3.0 SuperSpeed
[  159.608689] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[  159.608704] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  159.608713] usb usb5: Product: xHCI Host Controller
[  159.608722] usb usb5: Manufacturer: Linux 6.1.75-axon xhci-hcd
[  159.608729] usb usb5: SerialNumber: xhci-hcd.16.auto
[  159.609509] hub 5-0:1.0: USB hub found
[  159.609539] hub 5-0:1.0: 1 port detected
[  159.609871] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
[  159.609960] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.01
[  159.609971] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  159.609980] usb usb6: Product: xHCI Host Controller
[  159.609987] usb usb6: Manufacturer: Linux 6.1.75-axon xhci-hcd
[  159.609994] usb usb6: SerialNumber: xhci-hcd.16.auto
[  159.610496] hub 6-0:1.0: USB hub found
[  159.610527] hub 6-0:1.0: 1 port detected
[  159.922452] usb 5-1: new high-speed USB device number 2 using xhci-hcd
[  160.077520] usb 5-1: New USB device found, idVendor=04e8, idProduct=6860, bcdDevice= 5.04
[  160.077570] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  160.077593] usb 5-1: Product: SAMSUNG_Android
[  160.077612] usb 5-1: Manufacturer: SAMSUNG
[  160.077629] usb 5-1: SerialNumber: RZGL21CQ75W
[  160.175825] cdc_acm 5-1:1.1: ttyACM0: USB ACM device
[  164.819453] usb 5-1: USB disconnect, device number 2
[  164.867553] xhci-hcd xhci-hcd.16.auto: remove, state 4
[  164.867569] usb usb6: USB disconnect, device number 1
[  164.867987] xhci-hcd xhci-hcd.16.auto: USB bus 6 deregistered
[  164.868101] xhci-hcd xhci-hcd.16.auto: remove, state 1
[  164.868107] usb usb5: USB disconnect, device number 1
[  164.883011] xhci-hcd xhci-hcd.16.auto: USB bus 5 deregistered
1 Like

Thank you for the reply, I think the issue might have been power delivery.
I briefly switched off the bluetooth, and everything seemed to power up just fine?

Thanks for the update! Glad it’s working now. Which power adapter are you using? Could you share its voltage and current ratings (for example, 12V/2A)? An underpowered adapter can cause this kind of behavior when Bluetooth and other peripherals draw extra current.