Skip to content

usb: dwc3: Add dual-role support using OTG core

Roger Quadros linux-usb lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v14 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2usb: dwc3: core.h: add some register definitionsdrivers/usb/dwc3/core.h+82 -00 replies
2/2usb: dwc3: add dual role support using OTG blockdrivers/usb/dwc3/core.c drivers/usb/dwc3/core.h drivers/usb/dwc3/drd.c+557 -283 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] usb: dwc3: Add dual-role support using OTG core

Hi Felipe,

Some platforms (e.g. TI's AM437x) don't have USB ID pin state available over GPIO/extcon but need to rely on the DWC3 core's OTG block to get the ID pin state instead.

This series implements simple dual-role functionality using DWC3's OTG block. Debugfs 'mode' override is also functional so user can switch between "otg", "host" or "device" modes for debug.

Although system suspend/resume isn't working yet in mainline for AM437x, I've tested this series for system suspend/resume using a local tree.

Roger Quadros (2):
usb: dwc3: core.h: add some register definitions
usb: dwc3: add dual role support using OTG block

 drivers/usb/dwc3/core.c |  67 ++++++-
 drivers/usb/dwc3/core.h | 111 +++++++++++
 drivers/usb/dwc3/drd.c  | 489 ++++++++++++++++++++++++++++++++++++++++++++++--
 3 files changed, 639 insertions(+), 28 deletions(-)
Signature · 4 lines
cheers,
-roger

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki