[PATCH v3 00/11] drm: MediaTek DisplayPort cleanups and MT8196 eDP
AngeloGioacchino Del Regno
angelogioacchino.delregno at collabora.com
Thu Jul 9 03:34:20 PDT 2026
Changes in v3:
- Fix bad fixup squashing from v2... oops.
Changes in v2:
- Fixed all audio_pdev unregister issues (wrong pointer and double
free in case of error)
- Fixed double free of phy_dev in case of devm_add_action_or_reset()
error in legacy probe path
- Fixed legacy phy registers erroneously offset by legacy_regoff
- Added abstraction of AUX interrupts to legacy transmitter ones
for hotplug detection
- Fixed forgotten addition of SDP_DP13_EN_DP_ENC1_P0 in mask
- Fixed new register mask for interrupt debounce threshold time
This series performs some very much needed cleanups to the MediaTek
DisplayPort driver, including a fix for the audio codec and PHY driver
unregistration, a refactor to finally correctly use the PHY (!) and
introduces support for the Embedded DisplayPort (eDP) IP in MT8196.
Note that this deprecates the nvmem related properties in this driver
because those are NOT related to the DisplayPort IP, but rather to the
DisplayPort PHY, and were therefore transferred there instead (code in
a different series, updating the PHY driver).
On legacy devices, this driver was carefully tested with both NEW and
OLD devicetrees, so both with the new, proper PHY usage, and with the
old platform device registration strategy and eFuse retrieval from DP
instead of PHY driver.
This was also successfully (manually) tested in a kernel that misses
the PHY driver updates on devices using old devicetrees (mt8195/88)
and no regressions were experienced.
AngeloGioacchino Del Regno (11):
dt-bindings: display: mediatek: dp: Deprecate nvmem efuse data
dt-bindings: display: mediatek: dp: Add compatible for MT8196 eDP
drm/mediatek: mtk_dp: Fix hdmi codec and phy driver unregistration
drm/mediatek: mtk_dp: Clarify SMC eDP/DP video unmute commands
drm/mediatek: mtk_dp: Rework register offsets for proper PHY usage
drm/mediatek: mtk_dp: Use PHY API for PHY power sequences
drm/mediatek: mtk_dp: Add support for PHY from devicetree
drm/mediatek: mtk_dp: Move max link rate to SoC specific data
drm/mediatek: mtk_dp: Add support for HotPlug Detection in DP AUX
drm/mediatek: mtk_dp: Add support for eDP1.5 IPs and MT8196 SoC
drm/mediatek: mtk_dp: Clarify XTAL freq and Debounce registers
.../display/mediatek/mediatek,dp.yaml | 5 +-
drivers/gpu/drm/mediatek/mtk_dp.c | 623 +++++++++++++++---
drivers/gpu/drm/mediatek/mtk_dp_reg.h | 328 +++++----
3 files changed, 713 insertions(+), 243 deletions(-)
--
2.54.0
More information about the Linux-mediatek
mailing list