Add a devicetree overlay and UFS variants of the Genio 520 and Genio 720
EVK devicetree targets. There are dip switches and jumpers on the EVK
that disconnect the eMMC and connect the UFS instead. The overlay
adjusts the devicetree for this.

Signed-off-by: David Lechner <[email protected]>
---
 arch/arm/dts/Makefile                     |  5 +++++
 arch/arm/dts/mt8371-genio-common-ufs.dtso | 18 ++++++++++++++++++
 board/mediatek/MAINTAINERS                |  1 +
 3 files changed, 24 insertions(+)

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 4085d4c2de1..bff341d6118 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -1105,6 +1105,9 @@ 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-ufs-dtbs := mt8371-genio-520-evk.dtb 
mt8371-genio-common-ufs.dtbo
+mt8391-genio-720-evk-ufs-dtbs := mt8391-genio-720-evk.dtb 
mt8371-genio-common-ufs.dtbo
+
 dtb-$(CONFIG_ARCH_MEDIATEK) += \
        mt7622-rfb.dtb \
        mt7623a-unielec-u7623-02-emmc.dtb \
@@ -1125,7 +1128,9 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \
        mt7988-sd-rfb.dtb \
        mt8183-pumpkin.dtb \
        mt8371-genio-520-evk.dtb \
+       mt8371-genio-520-evk-ufs.dtb \
        mt8391-genio-720-evk.dtb \
+       mt8391-genio-720-evk-ufs.dtb \
        mt8512-bm1-emmc.dtb \
        mt8516-pumpkin.dtb \
        mt8518-ap1-emmc.dtb
diff --git a/arch/arm/dts/mt8371-genio-common-ufs.dtso 
b/arch/arm/dts/mt8371-genio-common-ufs.dtso
new file mode 100644
index 00000000000..b75fdafcf9b
--- /dev/null
+++ b/arch/arm/dts/mt8371-genio-common-ufs.dtso
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (C) 2026 MediaTek Inc.
+ *
+ * Adjusts for when boot DIP switches/jumpers on EVK are set for UFS boot
+ * instead of eMMC.
+ */
+
+/dts-v1/;
+/plugin/;
+
+&ufshci {
+       status = "okay";
+};
+
+&mmc0 {
+       status = "disabled";
+};
diff --git a/board/mediatek/MAINTAINERS b/board/mediatek/MAINTAINERS
index 7a388409742..b0fbffd26ea 100644
--- a/board/mediatek/MAINTAINERS
+++ b/board/mediatek/MAINTAINERS
@@ -3,6 +3,7 @@ M:      Macpaul Lin <[email protected]>
 S:     Maintained
 F:     arch/arm/dts/mt8371-genio-520-evk-u-boot.dtsi
 F:     arch/arm/dts/mt8371-genio-common-u-boot.dtsi
+F:     arch/arm/dts/mt8371-genio-common-ufs.dtso
 F:     arch/arm/dts/mt8391-genio-720-evk-u-boot.dtsi
 F:     configs/mt8189.config
 F:     configs/mt8371_genio_520_evk_defconfig

-- 
2.43.0

Reply via email to