Skip to content

Commit 134e6d2

Browse files
Stanley Changgregkh
authored andcommitted
phy: realtek: usb: Add driver for the Realtek SoC USB 2.0 PHY
Realtek DHC (digital home center) RTD SoCs support DWC3 XHCI USB controller. Added the driver to drive the USB 2.0 PHY transceivers. Signed-off-by: Stanley Chang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a08799c commit 134e6d2

File tree

5 files changed

+1347
-0
lines changed

5 files changed

+1347
-0
lines changed

drivers/phy/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ source "drivers/phy/motorola/Kconfig"
8787
source "drivers/phy/mscc/Kconfig"
8888
source "drivers/phy/qualcomm/Kconfig"
8989
source "drivers/phy/ralink/Kconfig"
90+
source "drivers/phy/realtek/Kconfig"
9091
source "drivers/phy/renesas/Kconfig"
9192
source "drivers/phy/rockchip/Kconfig"
9293
source "drivers/phy/samsung/Kconfig"

drivers/phy/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ obj-y += allwinner/ \
2626
mscc/ \
2727
qualcomm/ \
2828
ralink/ \
29+
realtek/ \
2930
renesas/ \
3031
rockchip/ \
3132
samsung/ \

drivers/phy/realtek/Kconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
#
3+
# Phy drivers for Realtek platforms
4+
#
5+
config PHY_RTK_RTD_USB2PHY
6+
tristate "Realtek RTD USB2 PHY Transceiver Driver"
7+
depends on USB_SUPPORT
8+
select GENERIC_PHY
9+
select USB_PHY
10+
help
11+
Enable this to support Realtek SoC USB2 phy transceiver.
12+
The DHC (digital home center) RTD series SoCs used the Synopsys
13+
DWC3 USB IP. This driver will do the PHY initialization
14+
of the parameters.

drivers/phy/realtek/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
obj-$(CONFIG_PHY_RTK_RTD_USB2PHY) += phy-rtk-usb2.o

0 commit comments

Comments
 (0)