linux/drivers/usb/misc
Al Cooper 517c4c44b3 usb: Add driver to allow any GPIO to be used for 7211 USB signals
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.

Below is an example of a DT node that would remap all three
signals:

usb_pinmap: usb-pinmap@22000d0 {
	compatible = "brcm,usb-pinmap";
	reg = <0x22000d0 0x4>;
	in-gpios = <&gpio 18 0>, <&gpio 19 0>;
	brcm,in-functions = "VBUS", "PWRFLT";
	brcm,in-masks = <0x8000 0x40000 0x10000 0x80000>;
	out-gpios = <&gpio 20 0>;
	brcm,out-functions = "PWRON";
	brcm,out-masks = <0x20000 0x800000 0x400000 0x200000>;
	interrupts = <0x0 0xb2 0x4>;
};

Signed-off-by: Al Cooper <alcooperx@gmail.com>
Link: https://lore.kernel.org/r/20201012200007.8862-3-alcooperx@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-10-28 12:24:15 +01:00
..
sisusbvga TTY/Serial patches for 5.9-rc1 2020-08-06 14:56:11 -07:00
adutux.c USB: adutux: fix debugging 2020-09-17 18:52:40 +02:00
apple-mfi-fastcharge.c
appledisplay.c usb: appledisplay: use module_usb_driver to simplify the code 2020-09-22 10:37:19 +02:00
brcmstb-usb-pinmap.c usb: Add driver to allow any GPIO to be used for 7211 USB signals 2020-10-28 12:24:15 +01:00
chaoskey.c
cypress_cy7c63.c
cytherm.c
ehset.c USB: ch9: add "USB_" prefix in front of TEST defines 2020-06-24 15:01:24 +02:00
emi26.c
emi62.c
ezusb.c
ftdi-elan.c
idmouse.c
iowarrior.c usb: misc: iowarrior: remove unneeded break 2020-10-28 12:22:46 +01:00
isight_firmware.c
Kconfig usb: Add driver to allow any GPIO to be used for 7211 USB signals 2020-10-28 12:24:15 +01:00
ldusb.c usb: misc: ldusb: Demote obvious misuse of kerneldoc to standard comment blocks 2020-07-09 16:47:00 +02:00
legousbtower.c USB: legousbtower: use usb_control_msg_recv() 2020-09-25 16:33:59 +02:00
lvstest.c USB: lvtest: return proper error code in probe 2020-08-18 11:55:23 +02:00
Makefile usb: Add driver to allow any GPIO to be used for 7211 USB signals 2020-10-28 12:24:15 +01:00
trancevibrator.c
usb251xb.c usb: usb251xb: fix regulator probe and error handling 2020-03-04 10:56:26 +01:00
usb3503.c usb/misc: usb3503: Use pm_ptr() macro 2020-09-04 16:53:57 +02:00
usb4604.c usb/misc: usb4604: Use pm_ptr() macro 2020-09-04 16:53:51 +02:00
usb_u132.h USB: misc: Use the correct style for SPDX License Identifier 2020-04-16 14:32:47 +02:00
usblcd.c USB: usblcd: Remove the superfluous break 2020-08-28 09:48:33 +02:00
usbsevseg.c
usbtest.c usb: usbtest: reduce stack usage in test_queue 2020-07-21 13:41:57 +02:00
uss720.c
yurex.c Linux 5.9-rc3 2020-08-31 07:11:45 +02:00