The Genio 510 and Genio 700 boot chains use a platform DDR loader built
separately from U-Boot to initialize DRAM before entering U-Boot SPL. Add
the shared SPL devicetree and configuration needed to initialize the debug
UART, watchdog, pinctrl and eMMC, then load a conventional FIT from the
bootloaders GPT partition.
Add an opt-in binman description that generates the images consumed by
the MediaTek flashing flow:
mtk-boot.bin
MediaTek BootROM wrapper containing the platform DDR loader and SPL
mtk-boot-payload.bin
Raw DDR-loader and SPL payload for external MediaTek signing tools
bootloaders.img
FIT containing BL31, OP-TEE, U-Boot proper, and its control DT
Signed-off-by: Carlo Caione <[email protected]>
---
Changes in v3:
- Add Genio 510 support using the shared MT8188-family SPL configuration,
pre-RAM devicetree annotations and binman layout.
- Make complete image packaging opt-in through CONFIG_MTK_BOOT_IMAGES.
- Keep the binman image description in a separate optional include.
- Leave SPL binman symbols disabled by default on MT8188.
- Add optional RSA-3072 signing for the bootloader FIT.
- Emit the raw BootROM payload required by external MediaTek signing tools.
- Document component-only, unsigned, and signed build procedures.
- Link to v2:
https://patch.msgid.link/20260722-ccaione-upstream-mt8390-spl-v2-0-7aa005345...@baylibre.com
Changes in v2:
- Clarify that the platform DDR loader is built separately from U-Boot.
- Fix the SPL copy-window wording in patch 2.
- Keep the SPL annotations board-scoped and drop the unused pericfg_ao tag.
- Normalize the firmware-stage names in the board documentation.
- Simplify the documented build commands.
- Remove the redundant MediaTek documentation maintainer pattern.
- Add links to Genio Tools and prebuilt images.
- Link to v1:
https://patch.msgid.link/20260718-ccaione-upstream-mt8390-spl-v1-0-1256b6dfd...@baylibre.com
---
Carlo Caione (6):
arm: dts: mediatek: prepare Genio 510 and 700 devices for SPL
configs: mt8188: enable eMMC FIT boot from SPL
arm: mediatek: build Genio 510 and 700 boot images with binman
arm: dts: mediatek: support signed Genio 510 and 700 bootloader FIT
arm: dts: mediatek: emit the Genio 510 and 700 BootROM payload
doc: board: mediatek: document Genio 510 and 700 SPL boot
arch/arm/dts/mt8370-genio-510-evk-u-boot.dtsi | 9 +-
arch/arm/dts/mt8390-genio-700-evk-u-boot.dtsi | 9 +-
arch/arm/dts/mt8390-genio-common-binman.dtsi | 155 +++++++++++++++
arch/arm/dts/mt8390-genio-common-u-boot.dtsi | 94 ++++++++++
arch/arm/mach-mediatek/Kconfig | 8 +
board/mediatek/MAINTAINERS | 3 +
common/spl/Kconfig | 1 +
configs/mt8188.config | 27 +++
doc/board/mediatek/index.rst | 1 +
doc/board/mediatek/mt8188-genio-evk.rst | 260 ++++++++++++++++++++++++++
10 files changed, 565 insertions(+), 2 deletions(-)
---
base-commit: bf75f80082a194a95eb2aef039a746c5765ba8d1
change-id: 20260717-ccaione-upstream-mt8390-spl-7f64ca12dfbd
Best regards,
--
Carlo Caione <[email protected]>