Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upusb gadget on rpi A #324
usb gadget on rpi A #324
Comments
|
Prudy is there any workaround to make the A+ work as a peripheral till this is fixed? |
|
@prudy Did you ever supply a PR for this? Cannot find one. Which part of the documentation are you suggesting needs updating? |
|
Hi, actually I did not, I solved the problem and sent a patch. |
|
@prudy Do you have a PR number? Will make it easier to dig up. |
|
Only the patch mailing list story: |
|
@ghollingworth @pelwell Is there any documentation covering this, if not should we have some. It's out of my knowledge base... |
|
So, what is actually required here? Do we need some documentation that parallels Ben's linked article? |
|
I'd really like some confirmation on what needs/remains to be done here. Is there actually something that needs doing, if so what, or can this issue be closed? |
|
James, I raised this ticket to start the process of pulling changes to the code. Sine this is already done in upstream there is no real need of having this opened. |
|
Ok, this is the documentation repo, so that has confused me. I'll close. |
The rpi A could be used in device mode as the rpi Zero model. However as its otgid pin is permanently grounded it must force the HW/SW fixed device mode, not dual/otg.
Currently dwc2 driver gadget does not allow it as the gadget initialization overrides necessary settings.
Moreover, if dwc2 is compiled not in gadget-only but in dual-mode, the device mode must be forced with 'dtoverlay=dwc2,dr_mode=peripheral' in config.txt. Currently setting dr_mode parameter is ignored.
I'll issue the pull request fixing these, so gadgets with dwc2 work on raspberry A.