Because when I connect a USB-C mass storage device (USB->NVMe adapter), it doesnât show up as a SCSI device and dmesg stays silent. Armbian uses the bcmdhd for that and itâs not included in the kernel.
Are we still talking about mainline kernel? Sorry, I just noticed you said âcollabora versionâ which I believe includes patches from rockchip.
Previously, I was able to use wifi with most recent GitHub - torvalds/linux: Linux kernel source tree with brcmfmac using your DTS overlay.
EDIT: Hereâs an interesting matrix of all features which already went into mainline and whatâs missing.
EDIT2: This seems to be the patch for USB-C support into mainline.
Not on M7, as supply is on another fusb302, on another usb-c connector. Iâll leave that one out of the dts for nowâŚ
Edit:
See this what to add to mainline kernel sige7 dts for functional usbc and hdmi:
Use the usb-c connector on the corner of the board to power the board, the other has usb-c host functionality (and may have problems when used as power input)
This worked! When I connect a device to the USB-C port, the host comes up:
[ 33.301531] xhci-hcd xhci-hcd.6.auto: xHCI Host Controller
[ 33.302033] xhci-hcd xhci-hcd.6.auto: new USB bus registered, assigned bus number 5
[ 33.302794] xhci-hcd xhci-hcd.6.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000808002000010
[ 33.303640] xhci-hcd xhci-hcd.6.auto: irq 134, io mem 0xfc000000
[ 33.304248] xhci-hcd xhci-hcd.6.auto: xHCI Host Controller
[ 33.304733] xhci-hcd xhci-hcd.6.auto: new USB bus registered, assigned bus number 6
[ 33.305406] xhci-hcd xhci-hcd.6.auto: Host supports USB 3.0 SuperSpeed
[ 33.306057] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.13
[ 33.306784] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 33.307418] usb usb5: Product: xHCI Host Controller
[ 33.307848] usb usb5: Manufacturer: Linux 6.13.0-rc6+ xhci-hcd
[ 33.308362] usb usb5: SerialNumber: xhci-hcd.6.auto
[ 33.309125] hub 5-0:1.0: USB hub found
[ 33.309470] hub 5-0:1.0: 1 port detected
[ 33.309983] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
[ 33.310024] cpu cpu0: Looking up cpu-supply from device node /cpus/cpu@0
[ 33.310729] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.13
[ 33.312037] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 33.312386] cpu cpu4: Looking up cpu-supply from device node /cpus/cpu@400
[ 33.312672] usb usb6: Product: xHCI Host Controller
[ 33.312677] usb usb6: Manufacturer: Linux 6.13.0-rc6+ xhci-hcd
[ 33.314224] usb usb6: SerialNumber: xhci-hcd.6.auto
[ 33.314979] hub 6-0:1.0: USB hub found
[ 33.315321] hub 6-0:1.0: 1 port detected
[ 33.315920] cpu cpu0: Looking up cpu-supply from device node /cpus/cpu@0
[ 33.317422] cpu cpu4: Looking up cpu-supply from device node /cpus/cpu@400
But no device detection (yet).
EDIT:
I found when rotating the connector, the device gets correctly enumerated.
Since /sys/class/typec/port*/orientation correctly detects the orientation, I suspect the mux isnât acting accordingly and thus prevents the device from being detected.
Ive added the wifi to the sige7.dts for my linux-aarch64-rk-rc package. It is standard disabled, because we do not know if there is an antenna installed.
Add wifi by enabling it:
For me it works both ways⌠(Iâm only having trouble with my rock5b, where it stays in device mode and wonât go in host mode. I have a hacked usbc-hub with shorted mosfets and fixed power supply to prevent bootloops.)