The Genio 510 and Genio 700 boot flows enter U-Boot SPL after an
external DDR loader has initialized DRAM. SPL then needs the debug UART
and eMMC controller, together with their clock, syscon, pinctrl and
watchdog providers, to load the firmware FIT.

Both boards share this MT8188-family dependency chain, so keep the
pre-RAM annotations in a common include used by their board-specific
U-Boot devicetrees.

Signed-off-by: Julien Masson <[email protected]>
Signed-off-by: Carlo Caione <[email protected]>
---
 arch/arm/dts/mt8370-genio-510-evk-u-boot.dtsi |  2 +-
 arch/arm/dts/mt8390-genio-700-evk-u-boot.dtsi |  2 +-
 arch/arm/dts/mt8390-genio-common-u-boot.dtsi  | 94 +++++++++++++++++++++++++++
 board/mediatek/MAINTAINERS                    |  1 +
 4 files changed, 97 insertions(+), 2 deletions(-)

diff --git a/arch/arm/dts/mt8370-genio-510-evk-u-boot.dtsi 
b/arch/arm/dts/mt8370-genio-510-evk-u-boot.dtsi
index 586d15bf72e..1a5f45cba6b 100644
--- a/arch/arm/dts/mt8370-genio-510-evk-u-boot.dtsi
+++ b/arch/arm/dts/mt8370-genio-510-evk-u-boot.dtsi
@@ -4,4 +4,4 @@
  * Author: Julien Stephan <[email protected]>
  */
 
-#include "mt8188-u-boot.dtsi"
+#include "mt8390-genio-common-u-boot.dtsi"
diff --git a/arch/arm/dts/mt8390-genio-700-evk-u-boot.dtsi 
b/arch/arm/dts/mt8390-genio-700-evk-u-boot.dtsi
index 586d15bf72e..1a5f45cba6b 100644
--- a/arch/arm/dts/mt8390-genio-700-evk-u-boot.dtsi
+++ b/arch/arm/dts/mt8390-genio-700-evk-u-boot.dtsi
@@ -4,4 +4,4 @@
  * Author: Julien Stephan <[email protected]>
  */
 
-#include "mt8188-u-boot.dtsi"
+#include "mt8390-genio-common-u-boot.dtsi"
diff --git a/arch/arm/dts/mt8390-genio-common-u-boot.dtsi 
b/arch/arm/dts/mt8390-genio-common-u-boot.dtsi
new file mode 100644
index 00000000000..87ebc64e6f6
--- /dev/null
+++ b/arch/arm/dts/mt8390-genio-common-u-boot.dtsi
@@ -0,0 +1,94 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Copyright (c) 2026 BayLibre, SAS.
+ * Author: Julien Stephan <[email protected]>
+ * Author: Carlo Caione <[email protected]>
+ */
+
+#include "mt8188-u-boot.dtsi"
+
+&clk26m {
+       bootph-pre-ram;
+};
+
+&gic {
+       bootph-pre-ram;
+};
+
+&topckgen {
+       bootph-pre-ram;
+};
+
+&infracfg_ao {
+       bootph-pre-ram;
+};
+
+&pio {
+       bootph-pre-ram;
+};
+
+&watchdog {
+       bootph-pre-ram;
+};
+
+&apmixedsys {
+       bootph-pre-ram;
+};
+
+&uart0 {
+       bootph-pre-ram;
+};
+
+&mmc0 {
+       bootph-pre-ram;
+};
+
+/ {
+       memory@40000000 {
+               bootph-pre-ram;
+       };
+};
+
+&mmc0_default_pins {
+       bootph-pre-ram;
+
+       pins-clk {
+               bootph-pre-ram;
+       };
+
+       pins-cmd-dat {
+               bootph-pre-ram;
+       };
+
+       pins-rst {
+               bootph-pre-ram;
+       };
+};
+
+&mmc0_uhs_pins {
+       bootph-pre-ram;
+
+       pins-clk {
+               bootph-pre-ram;
+       };
+
+       pins-cmd-dat {
+               bootph-pre-ram;
+       };
+
+       pins-ds {
+               bootph-pre-ram;
+       };
+
+       pins-rst {
+               bootph-pre-ram;
+       };
+};
+
+&uart0_pins {
+       bootph-pre-ram;
+
+       pins {
+               bootph-pre-ram;
+       };
+};
diff --git a/board/mediatek/MAINTAINERS b/board/mediatek/MAINTAINERS
index d99c6d708b2..d0d25b096e5 100644
--- a/board/mediatek/MAINTAINERS
+++ b/board/mediatek/MAINTAINERS
@@ -22,6 +22,7 @@ M:    Macpaul Lin <[email protected]>
 M:     Julien Stephan <[email protected]>
 S:     Maintained
 F:     arch/arm/dts/mt8188-u-boot.dtsi
+F:     arch/arm/dts/mt8390-genio-common-u-boot.dtsi
 F:     arch/arm/dts/mt8370-genio-510-evk-u-boot.dtsi
 F:     arch/arm/dts/mt8390-genio-700-evk-u-boot.dtsi
 F:     configs/mt8188.config

-- 
2.55.0

Reply via email to