csud icon indicating copy to clipboard operation
csud copied to clipboard

device mode

Open cleverca22 opened this issue 6 years ago • 2 comments

had a quick glance over the readme and other issues, and dont see a clear answer

does this driver support both host and device modes? or only host mode?

i'm interested in using it to emulate a usb device on an rpi4, where the dwc controller is routed to the USB-C port

cleverca22 avatar Jan 20 '20 01:01 cleverca22

I believe it's host only. I don't know USB well enough but I believe at most you might be able to do OTG with rpi.

OlliV avatar Jan 20 '20 21:01 OlliV

https://github.com/librerpi/lk/blob/vc4/platform/bcm28xx/dwc2.c

i now have a partially working gadget driver it can respond to control-in transfers, but it cant initialize the controller or enumate properly it relies on the firmware leaving things initialized and already enumated to function, but its still a decent starting point

cleverca22 avatar Dec 19 '20 09:12 cleverca22