Skip to content

Commit 2f70bbd

Browse files
srevinodkoul
authored andcommitted
phy: rockchip: add usbdp combo phy driver
This adds a new USBDP combo PHY with Samsung IP block driver. The driver get lane mux and mapping info in 2 ways, supporting DisplayPort alternate mode or parsing from DT. When parsing from DT, the property "rockchip,dp-lane-mux" provide the DP mux and mapping info. This is needed when the PHY is not used with TypeC Alt-Mode. For example if the USB3 interface of the PHY is connected to a USB Type A connector and the DP interface is connected to a DisplayPort connector. When do DP link training, need to set lane number, link rate, swing, and pre-emphasis via PHY configure interface. Co-developed-by: Heiko Stuebner <[email protected]> Signed-off-by: Heiko Stuebner <[email protected]> Co-developed-by: Zhang Yubing <[email protected]> Signed-off-by: Zhang Yubing <[email protected]> Co-developed-by: Frank Wang <[email protected]> Signed-off-by: Frank Wang <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent a75d805 commit 2f70bbd

File tree

3 files changed

+1621
-0
lines changed

3 files changed

+1621
-0
lines changed

drivers/phy/rockchip/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,15 @@ config PHY_ROCKCHIP_USB
115115
select GENERIC_PHY
116116
help
117117
Enable this to support the Rockchip USB 2.0 PHY.
118+
119+
config PHY_ROCKCHIP_USBDP
120+
tristate "Rockchip USBDP COMBO PHY Driver"
121+
depends on ARCH_ROCKCHIP && OF
122+
select GENERIC_PHY
123+
select TYPEC
124+
help
125+
Enable this to support the Rockchip USB3.0/DP combo PHY with
126+
Samsung IP block. This is required for USB3 support on RK3588.
127+
128+
To compile this driver as a module, choose M here: the module
129+
will be called phy-rockchip-usbdp

drivers/phy/rockchip/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ obj-$(CONFIG_PHY_ROCKCHIP_SAMSUNG_HDPTX) += phy-rockchip-samsung-hdptx.o
1212
obj-$(CONFIG_PHY_ROCKCHIP_SNPS_PCIE3) += phy-rockchip-snps-pcie3.o
1313
obj-$(CONFIG_PHY_ROCKCHIP_TYPEC) += phy-rockchip-typec.o
1414
obj-$(CONFIG_PHY_ROCKCHIP_USB) += phy-rockchip-usb.o
15+
obj-$(CONFIG_PHY_ROCKCHIP_USBDP) += phy-rockchip-usbdp.o

0 commit comments

Comments
 (0)