U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Add RITY devicetree preparation support
@ 2026-08-28  8:39 Carlo Caione
  2026-08-28  8:39 ` [PATCH 1/3] arm: mediatek: add RITY devicetree preparation Carlo Caione
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Carlo Caione @ 2026-08-28  8:39 UTC (permalink / raw)
  To: GSS_MTK_Uboot_upstream, u-boot
  Cc: Tom Rini, Ilias Apalodimas, Ryder Lee, Weijie Gao, Chunfeng Yun,
	Igor Belwon, David Lechner, Julien Stephan, Johan Jonker,
	Macpaul Lin, Chris-QJ Chen, Pablo Sun (孫毓翔),
	Carlo Caione

RITY images select a base devicetree and an ordered list of overlays
through the storage, storage_dev, dtb_path, boot_dtb, fdtfile and list_dtbo
environment variables. EFI boot needs the selected tree to be assembled
and published through fdt_addr before the operating system is started.

Add MediaTek support to consume that interface. It locates the selected
source on GPT block partitions or on the RITY UBI/UBIFS NOR layout, loads
the base DTB, applies list_dtbo in order and publishes the completed tree.
Both raw and authenticated DTB and DTBO inputs are supported.

Expose mtk_fdt_prepare for interactive use. Retain the dtbprobe and
fdtprobe command names and positional arguments used by RITY EFI boot
environments. Also provide bootembedded for legacy boot. It locates and
runs the appended RITY boot script through the standard source command,
leaving the legacy policy and authentication to source and bootm.

The implementation uses existing block, MTD, UBI/UBIFS, libfdt overlay,
image verification, source and bootm services.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
---
Carlo Caione (3):
      arm: mediatek: add RITY devicetree preparation
      arm: mediatek: add RITY devicetree compatibility commands
      arm: mediatek: add bootembedded compatibility command

 arch/arm/mach-mediatek/Kconfig            |  45 +++
 arch/arm/mach-mediatek/Makefile           |   3 +
 arch/arm/mach-mediatek/cmd_bootembedded.c |  59 ++++
 arch/arm/mach-mediatek/cmd_fdt_prepare.c  |  66 ++++
 arch/arm/mach-mediatek/fdt_prepare.c      | 502 ++++++++++++++++++++++++++++++
 arch/arm/mach-mediatek/fdt_prepare.h      |  10 +
 6 files changed, 685 insertions(+)
---
base-commit: 964ad5b5c91b7be56e443e899d7f873e6aa8c9fc
change-id: 20260827-ccaione-upstream-mtk-fdt-prepare-68f51a5fd2ea

Best regards,
--  
Carlo Caione <ccaione@baylibre.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-08-29 13:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-28  8:39 [PATCH 0/3] Add RITY devicetree preparation support Carlo Caione
2026-08-28  8:39 ` [PATCH 1/3] arm: mediatek: add RITY devicetree preparation Carlo Caione
2026-08-28  8:39 ` [PATCH 2/3] arm: mediatek: add RITY devicetree compatibility commands Carlo Caione
2026-08-28  8:39 ` [PATCH 3/3] arm: mediatek: add bootembedded compatibility command Carlo Caione
2026-08-28 14:59 ` [PATCH 0/3] Add RITY devicetree preparation support Tom Rini
2026-08-29 13:59   ` Carlo Caione

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox