]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm: dts: mediatek: add UFS variant of Genio 520/720 EVK
authorDavid Lechner <dlechner@baylibre.com>
Mon, 30 Mar 2026 20:42:17 +0000 (15:42 -0500)
committerDavid Lechner <dlechner@baylibre.com>
Fri, 17 Apr 2026 22:05:54 +0000 (17:05 -0500)
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.

Reviewed-by: Macpaul Lin <macpaul.lin@mediatek.com>
Link: https://patch.msgid.link/20260330-mtk-genio-720-ufs-v1-5-3bad8362ed70@baylibre.com
Signed-off-by: David Lechner <dlechner@baylibre.com>
arch/arm/dts/Makefile
arch/arm/dts/mt8371-genio-common-ufs.dtso [new file with mode: 0644]
board/mediatek/MAINTAINERS

index 4085d4c2de12bbf31085a72b4ceb9821f1c49d10..bff341d6118254b40bb246211154bfc836490c94 100644 (file)
@@ -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 (file)
index 0000000..b75fdaf
--- /dev/null
@@ -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";
+};
index 7a38840974266c8af0ecfaa1b2e715fd6ec64652..b0fbffd26eab4e0c7ad11288bb951dc6af277755 100644 (file)
@@ -3,6 +3,7 @@ M:      Macpaul Lin <macpaul.lin@mediatek.com>
 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