Skip to content

Commit

Permalink
drm/mediatek: Add mt8195 DisplayPort driver
Browse files Browse the repository at this point in the history
This patch adds a DisplayPort driver for the Mediatek mt8195 SoC and a
according phy driver mediatek-dp-phy.

It supports both functional units on the mt8195, the embedded
DisplayPort as well as the external DisplayPort units. It offers
hot-plug-detection, audio up to 8 channels, and DisplayPort 1.4 with up
to 4 lanes.

The driver creates a child device for the phy. The child device will
never exist without the parent being active. As they are sharing a
register range, the parent passes a regmap pointer to the child so that
both can work with the same register range. The phy driver sets device
data that is read by the parent to get the phy device that can be used
to control the phy properties.

This driver is based on an initial version by
Jason-JH.Lin <jason-jh.lin@mediatek.com>.

Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
  • Loading branch information
scosu authored and intel-lab-lkp committed Oct 11, 2021
1 parent 7459699 commit dbbfbf0
Show file tree
Hide file tree
Showing 6 changed files with 3,371 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/gpu/drm/mediatek/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,10 @@ config DRM_MEDIATEK_HDMI
select PHY_MTK_HDMI
help
DRM/KMS HDMI driver for Mediatek SoCs

config MTK_DPTX_SUPPORT
tristate "DRM DPTX Support for Mediatek SoCs"
depends on DRM_MEDIATEK
select PHY_MTK_DP
help
DRM/KMS Display Port driver for Mediatek SoCs.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/mediatek/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ mediatek-drm-hdmi-objs := mtk_cec.o \
mtk_hdmi_ddc.o

obj-$(CONFIG_DRM_MEDIATEK_HDMI) += mediatek-drm-hdmi.o

obj-$(CONFIG_MTK_DPTX_SUPPORT) += mtk_dp.o
Loading

0 comments on commit dbbfbf0

Please sign in to comment.