-
Notifications
You must be signed in to change notification settings - Fork 2
USB C
NUBcore edited this page Mar 14, 2023
·
1 revision
Add to config to enable permanently after reboot
/boot/config.txt
dtoverlay=dwc2,dr_mode=host
One time enable without rebooting
sudo modprobe -r dwc2 && sudo dtoverlay dwc2 dr_mode=host && sudo modprobe dwc2
dmesg dump:
[53170.122369] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/usb@7e980000/compatible
[53170.122392] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/usb@7e980000/dr_mode
[53170.122404] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/usb@7e980000/g-np-tx-fifo-size
[53170.122415] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/usb@7e980000/g-rx-fifo-size
[53170.122426] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/usb@7e980000/g-tx-fifo-size
[53170.122441] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/usb@7e980000/status
[53170.184331] dwc2 fe980000.usb: supply vusb_d not found, using dummy regulator
[53170.184685] dwc2 fe980000.usb: supply vusb_a not found, using dummy regulator
[53170.235875] dwc2 fe980000.usb: DWC OTG Controller
[53170.235897] dwc2 fe980000.usb: new USB bus registered, assigned bus number 3
[53170.235923] dwc2 fe980000.usb: irq 82, io mem 0xfe980000
[53170.236077] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[53170.236086] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[53170.236093] usb usb3: Product: DWC OTG Controller
[53170.236099] usb usb3: Manufacturer: Linux 5.15.84-v7l+ dwc2_hsotg
[53170.236105] usb usb3: SerialNumber: fe980000.usb
[53170.237197] hub 3-0:1.0: USB hub found
[53170.237240] hub 3-0:1.0: 1 port detected
Reference: https://techoverflow.net/2022/04/19/how-to-enable-usb-c-host-mode-on-raspberry-pi/