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 | 6 +- arch/arm/dts/mt8390-genio-700-evk-u-boot.dtsi | 6 +- arch/arm/dts/mt8390-genio-common-u-boot.dtsi | 96 +++++++++++++++++++++++++++ board/mediatek/MAINTAINERS | 1 + 4 files changed, 103 insertions(+), 6 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..223f1371b9e 100644 --- a/arch/arm/dts/mt8370-genio-510-evk-u-boot.dtsi +++ b/arch/arm/dts/mt8370-genio-510-evk-u-boot.dtsi @@ -1,7 +1,7 @@ -// SPDX-License-Identifier: (GPL-2.0 OR MIT) +// SPDX-License-Identifier: (GPL-2.0-only OR MIT) /* - * Copyright (c) 2026 BayLibre, SAS. + * Copyright (c) 2026 BayLibre SAS * 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..223f1371b9e 100644 --- a/arch/arm/dts/mt8390-genio-700-evk-u-boot.dtsi +++ b/arch/arm/dts/mt8390-genio-700-evk-u-boot.dtsi @@ -1,7 +1,7 @@ -// SPDX-License-Identifier: (GPL-2.0 OR MIT) +// SPDX-License-Identifier: (GPL-2.0-only OR MIT) /* - * Copyright (c) 2026 BayLibre, SAS. + * Copyright (c) 2026 BayLibre SAS * 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..6371f7d5953 --- /dev/null +++ b/arch/arm/dts/mt8390-genio-common-u-boot.dtsi @@ -0,0 +1,96 @@ +// SPDX-License-Identifier: (GPL-2.0-only 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 { + /* Retain the eMMC interrupt parent even though SPL uses polling. */ + 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 { + /* Preserve the board memory description; the loader initializes DRAM. */ + 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
