Skip to contentSkip to conversation

phy: phy-mtk-dp: Add driver for DP phy

PATCH Applied Bo-Chen Chen 2 participants 2 messages Jun 24, 2022 – Jul 5, 2022

Subsystems (4)

v12 of 17 Applied Latest is v17 →

lore
Share & tools
lore
#0 lore raw

PATCH v12 1/1 phy: phy-mtk-dp: Add driver for DP phy

From: Markus Schneider-Pargmann <[email protected]>

This is a new driver that supports the integrated DisplayPort phy for mediatek SoCs, especially the mt8195. The phy is integrated into the DisplayPort controller and will be created by the mtk-dp driver. This driver expects a struct regmap to be able to work on the same registers as the DisplayPort controller. It sets the device data to be the struct phy so that the DisplayPort controller can easily work with it.

The driver does not have any devicetree bindings because the datasheet does not list the controller and the phy as distinct units.

The interaction with the controller can be covered by the configure callback of the phy framework and its displayport parameters.

----
This series display port phy drivers and separated from [1] which is original from Guillaume.
The display port driver is [2].

Changes for v12:
1. Add copyright strings in phy-mtk-dp.c.

Changes for v11:
1. Fix register definition.

[1]:https://lore.kernel.org/all/[email protected]/ [2]:https://lore.kernel.org/all/[email protected]/
----

---
 MAINTAINERS                       |   1 +
 drivers/phy/mediatek/Kconfig      |   8 ++
 drivers/phy/mediatek/Makefile     |   1 +
 drivers/phy/mediatek/phy-mtk-dp.c | 202 ++++++++++++++++++++++++++++++
 4 files changed, 212 insertions(+)
 create mode 100644 drivers/phy/mediatek/phy-mtk-dp.c
MAINTAINERS +1 -0
index 6cc825857722..5965b8cfa199 100644
@@ -6719,6 +6719,7 @@ L:	[email protected] (moderated for non-subscribers)
 S:	Supported
 F:	Documentation/devicetree/bindings/display/mediatek/
 F:	drivers/gpu/drm/mediatek/
+F:	drivers/phy/mediatek/phy-mtk-dp.c
 F:	drivers/phy/mediatek/phy-mtk-hdmi*
 F:	drivers/phy/mediatek/phy-mtk-mipi*
 
drivers/phy/mediatek/Kconfig +8 -0
index 55f8e6c048ab..d631525d12e1 100644
@@ -55,3 +55,11 @@ config PHY_MTK_MIPI_DSI
 	select GENERIC_PHY
 	help
 	  Support MIPI DSI for Mediatek SoCs.
+
+config PHY_MTK_DP
+	tristate "MediaTek DP-PHY Driver"
+	depends on ARCH_MEDIATEK || COMPILE_TEST
+	depends on OF
+	select GENERIC_PHY
+	help
+	  Support DisplayPort PHY for MediaTek SoCs.
drivers/phy/mediatek/Makefile +1 -0
index ace660fbed3a..4ba1e0650434 100644
@@ -3,6 +3,7 @@
 # Makefile for the phy drivers.
 #
 
+obj-$(CONFIG_PHY_MTK_DP)		+= phy-mtk-dp.o
 obj-$(CONFIG_PHY_MTK_TPHY)		+= phy-mtk-tphy.o
 obj-$(CONFIG_PHY_MTK_UFS)		+= phy-mtk-ufs.o
 obj-$(CONFIG_PHY_MTK_XSPHY)		+= phy-mtk-xsphy.o
drivers/phy/mediatek/phy-mtk-dp.c new file +202 -0

202 lines not on this page · raw message

Signature · 1 line
2.18.0
maintainer Applied
#1 lore raw
Quoted 12 lines · Bo-Chen Chen

From: Markus Schneider-Pargmann <[email protected]>

This is a new driver that supports the integrated DisplayPort phy for mediatek SoCs, especially the mt8195. The phy is integrated into the DisplayPort controller and will be created by the mtk-dp driver. This driver expects a struct regmap to be able to work on the same registers as the DisplayPort controller. It sets the device data to be the struct phy so that the DisplayPort controller can easily work with it.

The driver does not have any devicetree bindings because the datasheet does not list the controller and the phy as distinct units.

Quoted 8 lines

The interaction with the controller can be covered by the configure callback of the phy framework and its displayport parameters.

Applied, thanks

Signature · 1 line
~Vinod