Skip to content

[HELP] How to add USB OTG driver for the SOC into Nuttx? #19756

Description

@wangtao13

Description

I am trying to add USB OTG driver (host and device) for an SOC, where the USB controller is DWC2.
The controller in the SOC can work in host mode, so it can connect to a USB device (e.g. USB disk and mount FatFS onto it to access the files in the USB disk).
Or it can switch to device mode (e.g. adb device) to other USB host, like PC or cell phone.

So I think I need to add driver codes for the DWC2 controller, but I did NOT find a good reference to USB driver architecture of Nuttx.
How can I get started on the DWC2 driver in the Nuttx?

Verification

  • I have verified before submitting the report.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions