Add an overlay that drives the panel on the EVK's eDP connector instead
of the DSI panel. It only changes the status of nodes the common include
already describes: it disables the DSI host, its PHY, its backlight and
PWM, and enables the DVO output stage, the eDP transmitter and its PHY,
and the eDP backlight, PWM and supplies. The two paths share the display
pipeline, so only one can be enabled at a time.

Build it into eDP variants of the Genio 520 and 720 EVK device trees,
both with and without the UFS overlay.

Signed-off-by: David Lechner <[email protected]>
---
 arch/arm/dts/Makefile                     | 12 +++++++
 arch/arm/dts/mt8371-genio-common-edp.dtso | 54 +++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+)

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 6759224389f..f309710570a 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -1047,8 +1047,16 @@ dtb-$(CONFIG_SOC_K3_AM62D2) += k3-am62d2-r5-evm.dtb
 dtb-$(CONFIG_SOC_K3_AM62P5) += k3-am62p5-r5-sk.dtb \
                               k3-am62p5-verdin-r5.dtb
 
+mt8371-genio-520-evk-edp-dtbs := mt8371-genio-520-evk.dtb 
mt8371-genio-common-edp.dtbo
 mt8371-genio-520-evk-ufs-dtbs := mt8371-genio-520-evk.dtb 
mt8371-genio-common-ufs.dtbo
+mt8371-genio-520-evk-ufs-edp-dtbs := mt8371-genio-520-evk.dtb \
+                                    mt8371-genio-common-ufs.dtbo \
+                                    mt8371-genio-common-edp.dtbo
+mt8391-genio-720-evk-edp-dtbs := mt8391-genio-720-evk.dtb 
mt8371-genio-common-edp.dtbo
 mt8391-genio-720-evk-ufs-dtbs := mt8391-genio-720-evk.dtb 
mt8371-genio-common-ufs.dtbo
+mt8391-genio-720-evk-ufs-edp-dtbs := mt8391-genio-720-evk.dtb \
+                                    mt8371-genio-common-ufs.dtbo \
+                                    mt8371-genio-common-edp.dtbo
 
 dtb-$(CONFIG_ARCH_MEDIATEK) += \
        mt7622-rfb.dtb \
@@ -1071,9 +1079,13 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \
        mt8183-pumpkin.dtb \
        mt8366-genio-360-evk.dtb \
        mt8371-genio-520-evk.dtb \
+       mt8371-genio-520-evk-edp.dtb \
        mt8371-genio-520-evk-ufs.dtb \
+       mt8371-genio-520-evk-ufs-edp.dtb \
        mt8391-genio-720-evk.dtb \
+       mt8391-genio-720-evk-edp.dtb \
        mt8391-genio-720-evk-ufs.dtb \
+       mt8391-genio-720-evk-ufs-edp.dtb \
        mt8512-bm1-emmc.dtb \
        mt8516-pumpkin.dtb \
        mt8518-ap1-emmc.dtb
diff --git a/arch/arm/dts/mt8371-genio-common-edp.dtso 
b/arch/arm/dts/mt8371-genio-common-edp.dtso
new file mode 100644
index 00000000000..13385968a18
--- /dev/null
+++ b/arch/arm/dts/mt8371-genio-common-edp.dtso
@@ -0,0 +1,54 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR MIT)
+/*
+ * Copyright (C) 2026 BayLibre, SAS.
+ *
+ * Drives the panel on the EVK's eDP connector instead of the DSI panel.
+ * The two share the display pipeline, so only one can be enabled at a time.
+ */
+
+/dts-v1/;
+/plugin/;
+
+&backlight_lcd0 {
+       status = "disabled";
+};
+
+&backlight_lcd1 {
+       status = "okay";
+};
+
+&disp_dvo0 {
+       status = "okay";
+};
+
+&disp_pwm0 {
+       status = "disabled";
+};
+
+&disp_pwm1 {
+       status = "okay";
+};
+
+&dsi0 {
+       status = "disabled";
+};
+
+&edp_phy {
+       status = "okay";
+};
+
+&edp_tx {
+       status = "okay";
+};
+
+&mipi_tx_config0 {
+       status = "disabled";
+};
+
+&reg_edp_backlight_12v {
+       status = "okay";
+};
+
+&reg_edp_panel_3v3 {
+       status = "okay";
+};

-- 
2.53.0

Reply via email to