usb: dwc3: add Realtek DHC RTD SoC dwc3 glue layer driver
authorStanley Chang <stanley_chang@realtek.com>
Sat, 26 Aug 2023 03:10:06 +0000 (11:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Oct 2023 12:05:24 +0000 (14:05 +0200)
commit34c200483569fc209e31017e2f6fdbfcb79cd3d5
tree54e780f5c9ffb4bd637884a7f27d9b280bb07193
parent6c29de68fb2955463d6b4115364ca78fcb0275bd
usb: dwc3: add Realtek DHC RTD SoC dwc3 glue layer driver

Realtek DHC RTD SoCs integrate dwc3 IP and has some customizations to
support different generations of SoCs.

The RTD1619b subclass SoC only supports USB 2.0 from dwc3. The driver
can set a maximum speed to support this. Add role switching function,
that can switch USB roles through other drivers, or switch USB roles
through user space through set /sys/class/usb_role/.

Signed-off-by: Stanley Chang <stanley_chang@realtek.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20230826031028.1892-1-stanley_chang@realtek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/Kconfig
drivers/usb/dwc3/Makefile
drivers/usb/dwc3/dwc3-rtk.c [new file with mode: 0644]