device mode
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
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.
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