capabilities of the usb ports
#1
The documentation states that the lower usb port is "USB-C 2.0 + Power Delivery (device mode by default & power input)". Is there a way to put it in host mode and use it as a regular usb port ?
Does it needs a change on the hardware side, the kernel driver (.dts file), a setting file, some command ... ?


The upper usb port is usb3, host mode only. But not all usb3 devices are recognized. Is this the same problem as with the Quartz64 board: "USB 3.0 (applies to Model A only) — only works with very short cables and depends on the device."

Example of device not recognized (hub has usb2, usb3 and ethernet):
Code:
dmesg when plugging in VIA 813 USB 3.0 hub + RJ45 Ethernet Adapter:
usb 1-1: new high-speed USB device number 2 using xhci-hcd
usb 1-1: New USB device found, idVendor=2109, idProduct=2813, bcdDevice= 2.21
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: USB2.0 Hub
usb 1-1: Manufacturer: VIA Labs, Inc.
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 1-1.3: new high-speed USB device number 3 using xhci-hcd
usb 1-1.3: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00
usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=6
usb 1-1.3: Product: USB 10/100/1000 LAN
usb 1-1.3: Manufacturer: Realtek
usb 1-1.3: SerialNumber: 000001
r8152 1-1.3:1.0: load rtl8153a-4 v2 02/07/20 successfully
r8152 1-1.3:1.0 eth0: v1.12.13
r8152 1-1.3:1.0 enu1u3: renamed from eth0

dmesg when plugging in SanDisk Extreme SSD (SDSSDE60-500G) via hub:
usb 1-1.1: new high-speed USB device number 4 using xhci-hcd
usb 1-1.1: New USB device found, idVendor=0781, idProduct=558c, bcdDevice=10.12
usb 1-1.1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
usb 1-1.1: Product: Extreme SSD
usb 1-1.1: Manufacturer: SanDisk
usbcore: registered new interface driver usb-storage
scsi host0: uas
usbcore: registered new interface driver uas

lsusb (partial):
Code:
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
    |__ Port 1: Dev 5, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 7, If 0, Class=Mass Storage, Driver=uas, 480M
        |__ Port 3: Dev 6, If 0, Class=Vendor Specific Class, Driver=r8152, 480M

Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  Bus 001 Device 005: ID 2109:2813 VIA Labs, Inc. VL813 Hub
    Bus 001 Device 007: ID 0781:558c SanDisk Corp. Extreme Portable SSD
    Bus 001 Device 006: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter



Same devices connected to a Linux Mint laptop:
Code:
dmesg when plugging in VIA 813 USB 3.0 hub + RJ45 Ethernet Adapter:
usb 2-4: new SuperSpeed USB device number 6 using xhci_hcd
usb 2-4: New USB device found, idVendor=2109, idProduct=0813, bcdDevice= 2.21
usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-4: Product: USB3.0 Hub            
usb 2-4: Manufacturer: VIA Labs, Inc.        
hub 2-4:1.0: USB hub found
hub 2-4:1.0: 4 ports detected
usb 2-4.3: new SuperSpeed USB device number 7 using xhci_hcd
usb 2-4.3: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00
usb 2-4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=6
usb 2-4.3: Product: USB 10/100/1000 LAN
usb 2-4.3: Manufacturer: Realtek
usb 2-4.3: SerialNumber: 000001
usb 1-6: new high-speed USB device number 8 using xhci_hcd
usb 1-6: New USB device found, idVendor=2109, idProduct=2813, bcdDevice= 2.21
usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-6: Product: USB2.0 Hub            
usb 1-6: Manufacturer: VIA Labs, Inc.        
hub 1-6:1.0: USB hub found
hub 1-6:1.0: 4 ports detected
usb 2-4.3: reset SuperSpeed USB device number 7 using xhci_hcd
r8152 2-4.3:1.0: load rtl8153a-4 v2 02/07/20 successfully
r8152 2-4.3:1.0 eth0: v1.12.13
r8152 2-4.3:1.0 enx00e04c6801f3: renamed from eth0

dmesg when plugging in SanDisk Extreme SSD (SDSSDE60-500G) via hub:
usb 2-4.1: new SuperSpeed USB device number 8 using xhci_hcd
usb 2-4.1: New USB device found, idVendor=0781, idProduct=558c, bcdDevice=10.12
usb 2-4.1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
usb 2-4.1: Product: Extreme SSD
usb 2-4.1: Manufacturer: SanDisk


lsusb (partial):
Code:
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 10000M
    |__ Port 4: Dev 6, If 0, Class=Hub, Driver=hub/4p, 5000M
        |__ Port 1: Dev 8, If 0, Class=Mass Storage, Driver=uas, 5000M
        |__ Port 3: Dev 7, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M
    |__ Port 6: Dev 8, If 0, Class=Hub, Driver=hub/4p, 480M

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
  Bus 002 Device 006: ID 2109:0813 VIA Labs, Inc. VL813 Hub
    Bus 002 Device 008: ID 0781:558c SanDisk Corp. Extreme Portable SSD
    Bus 002 Device 007: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  Bus 001 Device 008: ID 2109:2813 VIA Labs, Inc. VL813 Hub


Connecting the usb drive directly to the usb port (without the hub) works as intended:
Code:
usb 2-1: new SuperSpeed USB device number 3 using xhci-hcd
usb 2-1: New USB device found, idVendor=0781, idProduct=558c, bcdDevice=10.12
usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
usb 2-1: Product: Extreme SSD
usb 2-1: Manufacturer: SanDisk

/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 3, If 0, Class=Mass Storage, Driver=uas, 5000M

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
  Bus 002 Device 003: ID 0781:558c SanDisk Corp. Extreme Portable SSD


Same questions as with the lower usb port: is this behavior hardware related, driver related, dependent of a setting, ... ?  Are there usb3 hubs with a RJ45 port which are correctly recognized as usb3 ?  Since (for the moment) we need the usb port to provide a network connection, it would be nice if usb3 is also available using a hub so we can enjoy better speed (x10) for networking and other connected devices as usb disks.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  any chance to use both USB ports in host-mode? lllll 5 1,650 12-21-2023, 09:49 AM
Last Post: dachalife

Forum Jump:


Users browsing this thread: 1 Guest(s)