mbox series

[0/3] usb: Add driver for USB signal re-mapper

Message ID 20200812202018.49046-1-alcooperx@gmail.com
Headers show
Series usb: Add driver for USB signal re-mapper | expand

Message

Alan Cooper Aug. 12, 2020, 8:20 p.m. UTC
The Broadcom 7211 has new functionality that allows some USB low
speed side band signals, that go from the XHCI host controller to
pins on the chip, to be remapped to use any GPIO pin instead of the
limited set selectable by hardware. This can be done without changing
the standard driver for the host controller. There is currently
support for three USB signals, PWRON, VBUS_PRESENT and PWRFLT. This
driver will allow the remapping of any of these three signals based
on settings in the Device Tree node for the driver. The driver was
written so that it could handle additional signals added in the
future by just adding the correct properties to the DT node.

Al Cooper (3):
  dt-bindings: Add support for Broadcom USB pin map driver
  usb: Add driver to allow any GPIO to be used for 7211 USB signals
  usb: Add Kconfig and Makefile changes to build brcmstb-usb-pinmap

 .../bindings/usb/brcm,usb-pinmap.yaml         |  63 ++++
 MAINTAINERS                                   |   8 +
 drivers/usb/host/Kconfig                      |   4 +
 drivers/usb/host/Makefile                     |   1 +
 drivers/usb/host/brcmstb-usb-pinmap.c         | 348 ++++++++++++++++++
 5 files changed, 424 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/usb/brcm,usb-pinmap.yaml
 create mode 100644 drivers/usb/host/brcmstb-usb-pinmap.c