[RFC PATCH 0/4] usb: dwc3: add support for AMD NL SoC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

The series of patches add AMD NL SoC support for DesignWare USB3 OTG IP with PCI
bus glue layer. And add a role switch feature with debugfs in order that create
an entry to alternative roles between host and device. Because of the limitation
for PCI-based temporary platform currently, it's unable to switch roles by
connector A/B cables physically.

These patches are generated on balbi/next

Patch 1:
- Add PCI device id into pci bus glue.

Patch 2:
- Add some register macros for patch 3 use.

Patch 3:
- Add a quirk to programe GCTL and PIPE3 to configure controller and PHY
  interface specifically for AMD NL SoCs.

Patch 4:
- This patch add a feature to dynamic switch roles on user space like below,

switch to host:
echo host > /sys/kernel/debug/dwc3.0.auto/mode

switch to device:
echo device > /sys/kernel/debug/dwc3.0.auto/mode

switch to otg (default):
echo otg > /sys/kernel/debug/dwc3.0.auto/mode

Thanks,
Rui

Huang Rui (4):
  usb: dwc3: add AMD NL support
  usb: dwc3: add some register macros for future use
  usb: dwc3: add quirk to be compatible for AMD NL
  usb: dwc3: introduce dual role switch function with debugfs

 drivers/usb/dwc3/Makefile        |   2 +-
 drivers/usb/dwc3/core.c          |  37 ++++++++-
 drivers/usb/dwc3/core.h          |  20 +++++
 drivers/usb/dwc3/debugfs.c       |  19 +++--
 drivers/usb/dwc3/drd.c           | 163 +++++++++++++++++++++++++++++++++++++++
 drivers/usb/dwc3/drd.h           |  30 +++++++
 drivers/usb/dwc3/dwc3-pci.c      |  16 ++++
 drivers/usb/dwc3/gadget.c        | 100 ++++++++++++++++--------
 drivers/usb/dwc3/gadget.h        |   3 +
 drivers/usb/dwc3/host.c          |   2 +
 drivers/usb/dwc3/platform_data.h |   1 +
 11 files changed, 351 insertions(+), 42 deletions(-)
 create mode 100644 drivers/usb/dwc3/drd.c
 create mode 100644 drivers/usb/dwc3/drd.h

-- 
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux