Add FIT multi-DTB selection for Qualcomm
v5 cover Add FIT multi-DTB selection for Qualcomm
This series adds dynamic device tree selection from FIT images for Qualcomm Snapdragon platforms, enabling U-Boot to select the appropriate DTB based on hardware parameters detected at boot.
Qualcomm FIT-based DTB format is documented in [1].
The FIT image contains only DTBs, while the kernel is provided separately as part of a UKI image.
The implementation consists of:
1. Hardware detection infrastructure: Introduces the qcom,hwinfo driver and qcom_hwdetect helper to collect hardware identification data from SMEM, IMEM and TCSR into a single qcom_hw_params structure for consumers such as FIT multi-DTB selection.
2. FIT multi-DTB selection: Implements DTB selection based on the aggregated hardware information. The code parses metadata DTBs, matches FIT configurations against detected hardware attributes, applies overlays, and loads the selected DTB for EFI boot.
[1] https://github.com/qualcomm-linux/qcom-dtb-metadata/blob/main/
Documentation.md
---
Changes in v4:
1. Drop the SMEM cache infrastructure.
2. misc: qcom: add qcom,hwinfo driver to provide a common interface for reading IMEM boot cookie and TCSR SOC version information.
3. arm: snapdragon: add qcom_hwdetect helper to aggregate hardware information from SMEM, IMEM and TCSR into a single struct qcom_hw_params.
4. Refactor FIT multi-DTB selection to consume qcom_hw_params instead of accessing SMEM, IMEM and TCSR data directly.
5. Separate hardware discovery from FIT parsing and DTB matching logic, reducing complexity and improving code organization.
6. Load FIT images directly from a raw GPT partition and remove the FAT filesystem image based loading approach.
7. Drop IH_TYPE_FATFS, mkimage FAT image generation support and related documentation updates.
8. arm: dts: enable qcom,hwinfo on qcs9100-ride-r3, qcs615-ride and qcs6490-rb3gen2 by adding the required qcom,hwinfo DT nodes and board-specific offsets.
Link to v3:
https://lore.kernel.org/u-boot/[email protected]/
Changes in v3:
1. Runtime IMEM address lookup via DT: Removed CONFIG_QCOM_IMEM_SIZE Kconfig option. Added qcom_imem_table[] mapping SoC compatible strings to IMEM addresses.
2. Split SoC version sources: SoC hardware version now read from TCSR register via qcom_read_tcsr_soc_version(). The soc_info->plat_ver from SMEM is stored separately as board_version. Added socver and boardrev metadata node matching for finer-grained DTB selection.
3. qcom_load_fit_image() returns int: Changed return type from efi_status_t to int, returning standard Linux error codes for consistency with the rest of the driver.
4. Code cleanup: strtok() replaced with strsep(); memcpy + manual null-termination replaced with strlcpy(); DDR thresholds use SZ_* macros; compatible matching and FDT loading extracted into dedicated helpers.
5. image: add IH_TYPE_FATFS image type: Added new fatfs image type to represent a raw FAT filesystem partition image, registered in the image type lookup table.
6. mkimage: add fatfs image type for FAT partition images: Added fatimage.c handler that uses mkfs.vfat and mcopy to create FAT images from a directory.
New --fat-extra-space, --fat-type, --fat-volume-id, --fat-mkfs-opts long options added to mkimage.
7. doc: document mkimage fatfs type and Qualcomm multi-DTB: Updated 'doc/mkimage.1' for the new fatfs type and options. Added 'doc/board/qualcomm/multi_dtb.rst' covering FIT ITS configuration, QCOM metadata format, socver/boardrev guidelines, and image creation steps.
Link to v2:
https://lore.kernel.org/u-boot/[email protected]/
Changes in v2:
1. In v1, a combined DTB format was used for multi-DTB support. Based on feedback, v2 implements FIT-based DTB selection instead.
Link to v1: https://lore.kernel.org/all/[email protected]/
Aswin Murugan via U-Boot (5):
misc: qcom: Add HW-Info aggregator driver
mach-snapdragon: Add hardware detection helper
mach-snapdragon: Add FIT multi-DTB selection support
configs: qcom_defconfig: Enable QCOM_FIT_MULTIDTB
arm: dts: Enable qcom, hwinfo on qcs9100-ride-r3, qcs615-ride and
qcs6490-rb3gen2
arch/arm/dts/qcs615-ride-u-boot.dtsi | 10 + arch/arm/dts/qcs6490-rb3gen2-u-boot.dtsi | 10 + arch/arm/dts/qcs9100-ride-r3-u-boot.dtsi | 10 + arch/arm/mach-snapdragon/Kconfig | 17 + arch/arm/mach-snapdragon/Makefile | 2 + arch/arm/mach-snapdragon/board.c | 7 + arch/arm/mach-snapdragon/qcom_fit_multidtb.c | 1033 ++++++++++++++++++ arch/arm/mach-snapdragon/qcom_fit_multidtb.h | 61 ++ arch/arm/mach-snapdragon/qcom_hwdetect.c | 167 +++ arch/arm/mach-snapdragon/qcom_hwdetect.h | 52 + configs/qcom_defconfig | 2 + drivers/misc/Kconfig | 9 + drivers/misc/Makefile | 1 + drivers/misc/qcom_hwinfo.c | 160 +++ include/qcom_hwinfo.h | 109 ++ 15 files changed, 1650 insertions(+) create mode 100644 arch/arm/mach-snapdragon/qcom_fit_multidtb.c create mode 100644 arch/arm/mach-snapdragon/qcom_fit_multidtb.h create mode 100644 arch/arm/mach-snapdragon/qcom_hwdetect.c create mode 100644 arch/arm/mach-snapdragon/qcom_hwdetect.h create mode 100644 drivers/misc/qcom_hwinfo.c create mode 100644 include/qcom_hwinfo.h
Signature · 1 line
2.34.1
PATCH RESEND v5 1/5 misc: qcom: Add HW-Info aggregator driver
From: Aswin Murugan via U-Boot <[email protected]>
Add a generic driver that binds to a U-Boot-only "qcom,hwinfo" DT node holding phandles to the existing IMEM/TCSR syscon nodes plus per-SoC offsets. This provides a common interface for reading the IMEM boot cookie (used to detect boot storage type) and the TCSR SOC_HW_VERSION register.
--- drivers/misc/Kconfig | 9 +++ drivers/misc/Makefile | 1 + drivers/misc/qcom_hwinfo.c | 160 +++++++++++++++++++++++++++++++++++++ include/qcom_hwinfo.h | 109 +++++++++++++++++++++++++ 4 files changed, 279 insertions(+) create mode 100644 drivers/misc/qcom_hwinfo.c create mode 100644 include/qcom_hwinfo.h
drivers/misc/Kconfig +9 -0
@@ -102,6 +102,15 @@ config QCOM_GENI for providing a common interface for various peripherals like UART, I2C, SPI, etc. +config QCOM_HWINFO + bool "Qualcomm HW-Info aggregator driver" + depends on MISC + select SYSCON + select REGMAP + help + Reads the IMEM boot cookie and TCSR HW version via a common + "qcom,hwinfo" DT node. + config ROCKCHIP_EFUSE bool "Rockchip e-fuse support" depends on MISC
drivers/misc/Makefile +1 -0
@@ -67,6 +67,7 @@ obj-$(CONFIG_QFW_SMBIOS) += qfw_smbios.o obj-$(CONFIG_SANDBOX) += qfw_sandbox.o endif obj-$(CONFIG_QCOM_GENI) += qcom_geni.o +obj-$(CONFIG_$(PHASE_)QCOM_HWINFO) += qcom_hwinfo.o obj-$(CONFIG_$(PHASE_)ROCKCHIP_EFUSE) += rockchip-efuse.o obj-$(CONFIG_$(PHASE_)ROCKCHIP_OTP) += rockchip-otp.o obj-$(CONFIG_$(PHASE_)ROCKCHIP_IODOMAIN) += rockchip-io-domain.o
drivers/misc/qcom_hwinfo.c new file +160 -0
160 lines not on this page · raw message
include/qcom_hwinfo.h new file +109 -0
109 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH RESEND v5 2/5 mach-snapdragon: Add hardware detection helper
In reply to Aswin MuruganFrom: Aswin Murugan via U-Boot <[email protected]>
Add qcom_hwdetect, a helper that aggregates hardware parameters (chip ID, chip version, board version, platform, subtype, OEM variant, foundry ID, DDR size type, storage type) from SMEM, TCSR, and IMEM into a single struct qcom_hw_params. This is intended for consumption by FIT multi-DTB selection and other subsystems that need a unified view of hardware identification data.
Depends on the qcom,hwinfo driver for IMEM/TCSR register access.
--- arch/arm/mach-snapdragon/Kconfig | 8 ++ arch/arm/mach-snapdragon/Makefile | 1 + arch/arm/mach-snapdragon/qcom_hwdetect.c | 167 +++++++++++++++++++++++ arch/arm/mach-snapdragon/qcom_hwdetect.h | 52 +++++++ 4 files changed, 228 insertions(+) create mode 100644 arch/arm/mach-snapdragon/qcom_hwdetect.c create mode 100644 arch/arm/mach-snapdragon/qcom_hwdetect.h
arch/arm/mach-snapdragon/Kconfig +8 -0
@@ -59,6 +59,14 @@ config QCOM_GENERATE_MBN New platforms can be added to tools/qcom/mkmbn/mkmbn.py if they aren't already supported. +config QCOM_HWDETECT + bool "Qualcomm Hardware Detection" + depends on QCOM_SMEM + select QCOM_HWINFO + help + Hardware parameter detection from SMEM and TCSR for + DTB selection and other platform subsystems. + choice prompt "Qualcomm boot0.h workaround" optional
arch/arm/mach-snapdragon/Makefile +1 -0
@@ -10,6 +10,7 @@ obj-y += board_spl.o else obj-y += board.o obj-$(CONFIG_EFI_HAVE_CAPSULE_SUPPORT) += capsule_update.o +obj-$(CONFIG_QCOM_HWDETECT) += qcom_hwdetect.o endif obj-$(CONFIG_OF_LIVE) += of_fixup.o
arch/arm/mach-snapdragon/qcom_hwdetect.c new file +167 -0
167 lines not on this page · raw message
arch/arm/mach-snapdragon/qcom_hwdetect.h new file +52 -0
52 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH RESEND v5 3/5 mach-snapdragon: Add FIT multi-DTB selection support
In reply to Aswin MuruganFrom: Aswin Murugan via U-Boot <[email protected]>
Add support for automatically selecting the correct DTB from a FIT image based on hardware parameters detected at runtime via SMEM, TCSR, and IMEM.
The FIT image (qclinux_fit.img) is loaded from the "dtb_a" raw GPT partition. A metadata DTB embedded as the first FIT image is parsed to build a "bucket list" of matching identifiers based on detected hardware (OEM, SoC, SoC version, board, board revision, peripheral subtype, storage type, DDR size, soft SKU). FIT configurations are then scored against this bucket list via their "compatible" string, and the best-matching configuration's DTB (plus any listed overlays) is loaded, overlaid, and installed via the "fdt_addr" environment variable for the EFI boot flow to consume.
This is gated behind CONFIG_QCOM_FIT_MULTIDTB and is a no-op unless both the config is enabled and hardware detection succeeds, so it is safe to enable without affecting boards that don't need it.
--- arch/arm/mach-snapdragon/Kconfig | 9 + arch/arm/mach-snapdragon/Makefile | 1 + arch/arm/mach-snapdragon/board.c | 7 + arch/arm/mach-snapdragon/qcom_fit_multidtb.c | 1033 ++++++++++++++++++ arch/arm/mach-snapdragon/qcom_fit_multidtb.h | 61 ++ 5 files changed, 1111 insertions(+) create mode 100644 arch/arm/mach-snapdragon/qcom_fit_multidtb.c create mode 100644 arch/arm/mach-snapdragon/qcom_fit_multidtb.h
arch/arm/mach-snapdragon/Kconfig +9 -0
@@ -49,6 +49,15 @@ config SYS_CONFIG_NAME Based on this option include/configs/<CONFIG_SYS_CONFIG_NAME>.h header will be used for board configuration. +config QCOM_FIT_MULTIDTB + bool "Enable FIT multi-DTB selection for Qualcomm platforms" + depends on FIT + select QCOM_HWDETECT + help + Enable FIT multi-DTB selection for Qualcomm platforms. + This allows U-Boot to select the appropriate device tree + from a FIT image. + config QCOM_GENERATE_MBN bool "Generate an MBN-compatible ELF binary" help
arch/arm/mach-snapdragon/Makefile +1 -0
@@ -10,6 +10,7 @@ obj-y += board_spl.o else obj-y += board.o obj-$(CONFIG_EFI_HAVE_CAPSULE_SUPPORT) += capsule_update.o +obj-$(CONFIG_QCOM_FIT_MULTIDTB) += qcom_fit_multidtb.o obj-$(CONFIG_QCOM_HWDETECT) += qcom_hwdetect.o endif
arch/arm/mach-snapdragon/board.c +7 -0
@@ -26,6 +26,7 @@#include <time.h> #include "qcom-priv.h" +#include "qcom_fit_multidtb.h" enum qcom_boot_source qcom_boot_source __section(".data") = 0; enum qcom_memmap_source qcom_memmap_source __section(".data") = 0;
@@ -452,5 +453,11 @@ int board_late_init(void)/* Configure the dfu_string for capsule updates */ qcom_configure_capsule_updates (); +/* Try FIT multi-DTB selection if enabled */ +if (IS_ENABLED (CONFIG_QCOM_FIT_MULTIDTB )) { +if (qcom_fit_multidtb_setup ()) +log_debug ("FIT multi-DTB selection not available or failed\n" ); + } +return 0 ; }
arch/arm/mach-snapdragon/qcom_fit_multidtb.c new file +1033 -0
1,033 lines not on this page · raw message
arch/arm/mach-snapdragon/qcom_fit_multidtb.h new file +61 -0
61 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH RESEND v5 4/5 configs: qcom_defconfig: Enable QCOM_FIT_MULTIDTB
In reply to Aswin MuruganFrom: Aswin Murugan via U-Boot <[email protected]>
Enable FIT multi-DTB selection and its OF_LIBFDT_OVERLAY dependency by default.
--- configs/qcom_defconfig | 2 ++ 1 file changed, 2 insertions(+)
configs/qcom_defconfig +2 -0
@@ -13,6 +13,7 @@ CONFIG_EFI_CAPSULE_FIRMWARE_RAW=y CONFIG_BUTTON_CMD=y CONFIG_FIT=y CONFIG_FIT_VERBOSE=y +CONFIG_QCOM_FIT_MULTIDTB=y CONFIG_BOOTSTD_FULL=y # CONFIG_BOOTMETH_VBE is not set CONFIG_BOOTDELAY=1
@@ -48,6 +49,7 @@ CONFIG_CMD_EFIDEBUG=y CONFIG_CMD_RNG=y CONFIG_CMD_REGULATOR=y CONFIG_CMD_LOG=y +CONFIG_OF_LIBFDT_OVERLAY=y CONFIG_OF_UPSTREAM_BUILD_VENDOR=y CONFIG_ENV_USE_DEFAULT_ENV_TEXT_FILE=y CONFIG_ENV_DEFAULT_ENV_TEXT_FILE="board/qualcomm/default.env"
Signature · 1 line
2.34.1
PATCH RESEND v5 5/5 arm: dts: Enable qcom, hwinfo on qcs9100-ride-r3, qcs615-ride and qcs6490-rb3gen2
In reply to Aswin MuruganFrom: Aswin Murugan via U-Boot <[email protected]>
Add the "qcom,hwinfo" DT node with the appropriate IMEM boot-cookie and TCSR HW-version offsets for each board, enabling FIT multi-DTB selection (CONFIG_QCOM_FIT_MULTIDTB) to detect hardware parameters at boot time.
--- arch/arm/dts/qcs615-ride-u-boot.dtsi | 10 ++++++++++ arch/arm/dts/qcs6490-rb3gen2-u-boot.dtsi | 10 ++++++++++ arch/arm/dts/qcs9100-ride-r3-u-boot.dtsi | 10 ++++++++++ 3 files changed, 30 insertions(+)
arch/arm/dts/qcs615-ride-u-boot.dtsi +10 -0
@@ -11,4 +11,14 @@ <0x0 0xc0000000 0x0 0xc0000000>, <0x1 0x80000000 0x1 0x00000000>; }; + + qcom_hwinfo: qcom-hwinfo { + compatible = "qcom,hwinfo"; + + imem = <&{/soc@0/sram@14680000}>; + imem-boot-cookie-offset = <0x2a000>; + + tcsr = <&tcsr>; + tcsr-hw-version-offset = <0x8000>; + }; };
arch/arm/dts/qcs6490-rb3gen2-u-boot.dtsi +10 -0
@@ -15,6 +15,16 @@ <0 0xC3400000 0 0x3CC00000>, <1 0x00000000 1 0x00000000>; }; + + qcom_hwinfo: qcom-hwinfo { + compatible = "qcom,hwinfo"; + + imem = <&{/soc@0/sram@146a5000}>; + imem-boot-cookie-offset = <0x5000>; + + tcsr = <&tcsr_2>; + tcsr-hw-version-offset = <0x8000>; + }; }; // RAM Entry 0 : Base 0x0080000000 Size 0x003A800000
arch/arm/dts/qcs9100-ride-r3-u-boot.dtsi +10 -0
@@ -17,4 +17,14 @@ <0x0 0xd3500000 0x0 0x07c00000>, <0x0 0xdb300000 0x0 0x24d00000>; }; + + qcom_hwinfo: qcom-hwinfo { + compatible = "qcom,hwinfo"; + + imem = <&sram>; + imem-boot-cookie-offset = <0x0>; + + tcsr = <&tcsr>; + tcsr-hw-version-offset = <0x8000>; + }; };
Signature · 1 line
2.34.1
Quoted 21 lines · Aswin Murugan
This series adds dynamic device tree selection from FIT images for Qualcomm Snapdragon platforms, enabling U-Boot to select the appropriate DTB based on hardware parameters detected at boot.
Qualcomm FIT-based DTB format is documented in [1].
The FIT image contains only DTBs, while the kernel is provided separately as part of a UKI image.
The implementation consists of:
1. Hardware detection infrastructure: Introduces the qcom,hwinfo driver and
qcom_hwdetecthelper to collect hardware identification data from SMEM, IMEM and TCSR into a singleqcom_hw_paramsstructure for consumers such as FIT multi-DTB selection.2. FIT multi-DTB selection: Implements DTB selection based on the aggregated hardware information. The code parses metadata DTBs, matches FIT configurations against detected hardware attributes, applies overlays, and loads the selected DTB for EFI boot.
Quoted 6 lines
[1] https://github.com/qualcomm-linux/qcom-dtb-metadata/blob/main/
Documentation.md---
Changes in v4:
... which was sent as v5, and this is a re-send of?
Quoted 21 lines
1. Drop the SMEM cache infrastructure.
2. misc: qcom: add qcom,hwinfo driver to provide a common interface for reading IMEM boot cookie and TCSR SOC version information.
3. arm: snapdragon: add
qcom_hwdetecthelper to aggregate hardware information from SMEM, IMEM and TCSR into a single structqcom_hw_params.4. Refactor FIT multi-DTB selection to consume
qcom_hw_paramsinstead of accessing SMEM, IMEM and TCSR data directly.5. Separate hardware discovery from FIT parsing and DTB matching logic, reducing complexity and improving code organization.
6. Load FIT images directly from a raw GPT partition and remove the FAT filesystem image based loading approach.
7. Drop
IH_TYPE_FATFS, mkimage FAT image generation support and related documentation updates.
Quoted 6 lines
8. arm: dts: enable qcom,hwinfo on qcs9100-ride-r3, qcs615-ride and qcs6490-rb3gen2 by adding the required qcom,hwinfo DT nodes and board-specific offsets.
Link to v3:
https://lore.kernel.org/u-boot/[email protected]/
The FAT comments in v3 were addressed. I'm not really sure the discussion about if this approach makes sense as really was addressed however?
Signature · 1 line
Tom
On 10/12/2026 11:20 PM, Tom Rini wrote:
Hi Tom,
Quoted 22 lines · Aswin Murugan
Quoted 21 lines
This series adds dynamic device tree selection from FIT images for Qualcomm Snapdragon platforms, enabling U-Boot to select the appropriate DTB based on hardware parameters detected at boot.
Qualcomm FIT-based DTB format is documented in [1].
The FIT image contains only DTBs, while the kernel is provided separately as part of a UKI image.
The implementation consists of:
1. Hardware detection infrastructure: Introduces the qcom,hwinfo driver and
qcom_hwdetecthelper to collect hardware identification data from SMEM, IMEM and TCSR into a singleqcom_hw_paramsstructure for consumers such as FIT multi-DTB selection.2. FIT multi-DTB selection: Implements DTB selection based on the aggregated hardware information. The code parses metadata DTBs, matches FIT configurations against detected hardware attributes, applies overlays, and loads the selected DTB for EFI boot.
Quoted 7 lines
Quoted 6 lines
[1] https://github.com/qualcomm-linux/qcom-dtb-metadata/blob/main/
Documentation.md---
Changes in v4:
... which was sent as v5, and this is a re-send of?
Yes, this is a resend of v4, which was sent as v5
Quoted 21 lines
Quoted 21 lines
1. Drop the SMEM cache infrastructure.
2. misc: qcom: add qcom,hwinfo driver to provide a common interface for reading IMEM boot cookie and TCSR SOC version information.
3. arm: snapdragon: add
qcom_hwdetecthelper to aggregate hardware information from SMEM, IMEM and TCSR into a single structqcom_hw_params.4. Refactor FIT multi-DTB selection to consume
qcom_hw_paramsinstead of accessing SMEM, IMEM and TCSR data directly.5. Separate hardware discovery from FIT parsing and DTB matching logic, reducing complexity and improving code organization.
6. Load FIT images directly from a raw GPT partition and remove the FAT filesystem image based loading approach.
7. Drop
IH_TYPE_FATFS, mkimage FAT image generation support and related documentation updates.
Quoted 8 lines
Quoted 6 lines
8. arm: dts: enable qcom,hwinfo on qcs9100-ride-r3, qcs615-ride and qcs6490-rb3gen2 by adding the required qcom,hwinfo DT nodes and board-specific offsets.
Link to v3:
https://lore.kernel.org/u-boot/[email protected]/The FAT comments in v3 were addressed. I'm not really sure the discussion about if this approach makes sense as really was addressed however?
Yes, the FAT-related comments from v3 were addressed in this revision by dropping the FAT filesystem image-based loading approach and loading FIT image directly from a raw GPT partition.
Regarding the broader design, the reasoning for using a DTB-only FIT was discussed in the v3 thread [1]. The intention is to support firmware-side DT selection while keeping DTB management independent of kernel packaging, matching existing Qualcomm deployment models. This is intended to coexist with, rather than replace, approaches such as UKI DT bundling.
[1]: https://lore.kernel.org/u-boot/afSXa7q7hJC_ZW07@sumit-xelite/
Thanks,
Aswin
Quoted 60 lines · Aswin Murugan
On 10/12/2026 11:20 PM, Tom Rini wrote:
Hi Tom,Quoted 22 lines · Aswin Murugan
Quoted 21 lines
This series adds dynamic device tree selection from FIT images for Qualcomm Snapdragon platforms, enabling U-Boot to select the appropriate DTB based on hardware parameters detected at boot.
Qualcomm FIT-based DTB format is documented in [1].
The FIT image contains only DTBs, while the kernel is provided separately as part of a UKI image.
The implementation consists of:
1. Hardware detection infrastructure: Introduces the qcom,hwinfo driver and
qcom_hwdetecthelper to collect hardware identification data from SMEM, IMEM and TCSR into a singleqcom_hw_paramsstructure for consumers such as FIT multi-DTB selection.2. FIT multi-DTB selection: Implements DTB selection based on the aggregated hardware information. The code parses metadata DTBs, matches FIT configurations against detected hardware attributes, applies overlays, and loads the selected DTB for EFI boot.
Quoted 7 lines
Quoted 6 lines
[1] https://github.com/qualcomm-linux/qcom-dtb-metadata/blob/main/
Documentation.md---
Changes in v4:
... which was sent as v5, and this is a re-send of?
Yes, this is a resend of v4, which was sent as v5
Quoted 27 lines
Quoted 27 lines
1. Drop the SMEM cache infrastructure.
2. misc: qcom: add qcom,hwinfo driver to provide a common interface for reading IMEM boot cookie and TCSR SOC version information.
3. arm: snapdragon: add
qcom_hwdetecthelper to aggregate hardware information from SMEM, IMEM and TCSR into a single structqcom_hw_params.4. Refactor FIT multi-DTB selection to consume
qcom_hw_paramsinstead of accessing SMEM, IMEM and TCSR data directly.5. Separate hardware discovery from FIT parsing and DTB matching logic, reducing complexity and improving code organization.
6. Load FIT images directly from a raw GPT partition and remove the FAT filesystem image based loading approach.
7. Drop
IH_TYPE_FATFS, mkimage FAT image generation support and related documentation updates.8. arm: dts: enable qcom,hwinfo on qcs9100-ride-r3, qcs615-ride and qcs6490-rb3gen2 by adding the required qcom,hwinfo DT nodes and board-specific offsets.
Link to v3:
https://lore.kernel.org/u-boot/[email protected]/
Quoted 7 lines
Quoted 2 lines
The FAT comments in v3 were addressed. I'm not really sure the discussion about if this approach makes sense as really was addressed however?
Yes, the FAT-related comments from v3 were addressed in this revision by dropping the FAT filesystem image-based loading approach and loading FIT image directly from a raw GPT partition.
Right, thanks.
Quoted 8 lines
Regarding the broader design, the reasoning for using a DTB-only FIT was discussed in the v3 thread [1]. The intention is to support firmware-side DT selection while keeping DTB management independent of kernel packaging, matching existing Qualcomm deployment models. This is intended to coexist with, rather than replace, approaches such as UKI DT bundling.
[1]: https://lore.kernel.org/u-boot/afSXa7q7hJC_ZW07@sumit-xelite/
Yes, and I'd appreciate some of the people that were discussing things in that thread chiming in and saying they're happy enough, as it wasn't clear to me in re-reading the thread yesterday that the discussion ended with agreement and instead just stopped.
Signature · 1 line
Tom
Hi Tom,
Quoted 78 lines · Tom Rini
Quoted 60 lines · Aswin Murugan
On 10/12/2026 11:20 PM, Tom Rini wrote:
Hi Tom,Quoted 22 lines · Aswin Murugan
Quoted 21 lines
This series adds dynamic device tree selection from FIT images for Qualcomm Snapdragon platforms, enabling U-Boot to select the appropriate DTB based on hardware parameters detected at boot.
Qualcomm FIT-based DTB format is documented in [1].
The FIT image contains only DTBs, while the kernel is provided separately as part of a UKI image.
The implementation consists of:
1. Hardware detection infrastructure: Introduces the qcom,hwinfo driver and
qcom_hwdetecthelper to collect hardware identification data from SMEM, IMEM and TCSR into a singleqcom_hw_paramsstructure for consumers such as FIT multi-DTB selection.2. FIT multi-DTB selection: Implements DTB selection based on the aggregated hardware information. The code parses metadata DTBs, matches FIT configurations against detected hardware attributes, applies overlays, and loads the selected DTB for EFI boot.
Quoted 7 lines
Quoted 6 lines
[1] https://github.com/qualcomm-linux/qcom-dtb-metadata/blob/main/
Documentation.md---
Changes in v4:
... which was sent as v5, and this is a re-send of?
Yes, this is a resend of v4, which was sent as v5
Quoted 27 lines
Quoted 27 lines
1. Drop the SMEM cache infrastructure.
2. misc: qcom: add qcom,hwinfo driver to provide a common interface for reading IMEM boot cookie and TCSR SOC version information.
3. arm: snapdragon: add
qcom_hwdetecthelper to aggregate hardware information from SMEM, IMEM and TCSR into a single structqcom_hw_params.4. Refactor FIT multi-DTB selection to consume
qcom_hw_paramsinstead of accessing SMEM, IMEM and TCSR data directly.5. Separate hardware discovery from FIT parsing and DTB matching logic, reducing complexity and improving code organization.
6. Load FIT images directly from a raw GPT partition and remove the FAT filesystem image based loading approach.
7. Drop
IH_TYPE_FATFS, mkimage FAT image generation support and related documentation updates.8. arm: dts: enable qcom,hwinfo on qcs9100-ride-r3, qcs615-ride and qcs6490-rb3gen2 by adding the required qcom,hwinfo DT nodes and board-specific offsets.
Link to v3:
https://lore.kernel.org/u-boot/[email protected]/Quoted 7 lines
Quoted 2 lines
The FAT comments in v3 were addressed. I'm not really sure the discussion about if this approach makes sense as really was addressed however?
Yes, the FAT-related comments from v3 were addressed in this revision by dropping the FAT filesystem image-based loading approach and loading FIT image directly from a raw GPT partition.
Right, thanks.
Quoted 7 lines
Regarding the broader design, the reasoning for using a DTB-only FIT was discussed in the v3 thread [1]. The intention is to support firmware-side DT selection while keeping DTB management independent of kernel packaging, matching existing Qualcomm deployment models. This is intended to coexist with, rather than replace, approaches such as UKI DT bundling.
Quoted 7 lines
Quoted 1 line
[1]: https://lore.kernel.org/u-boot/afSXa7q7hJC_ZW07@sumit-xelite/
Yes, and I'd appreciate some of the people that were discussing things in that thread chiming in and saying they're happy enough, as it wasn't clear to me in re-reading the thread yesterday that the discussion ended with agreement and instead just stopped.
As of now the Qualcomm subsystem maintenence is in really inactive state as you can see from the list of patchsets even carrying review tags are missing custodian attention here [1]. If you remember it from our earlier private thread with Casey and Neil many months ago, the maintainence situation hasn't improved at all.
Even as a reviewer for the Qcom subsystem, I have tried earlier with all the reviews but patches were still floating on the list, which just demotivated me from doing further reviews.
I would really like to get this maintainence situation fixed. Would it be fine with you to accept me as a Qcom subsystem custodian with more people from Qualcomm contributing as reviewers?
In the meantime why we decide on that, can you help with picking patches which have been reviewed directly for the Qualcomm subsystem?
[1] https://patchwork.ozlabs.org/project/uboot/list/?delegate=151538¶m=4&page=1
-Sumit
Quoted 99 lines · Sumit Garg
Hi Tom,
Quoted 78 lines · Tom Rini
Quoted 60 lines · Aswin Murugan
On 10/12/2026 11:20 PM, Tom Rini wrote:
Hi Tom,Quoted 22 lines · Aswin Murugan
Quoted 21 lines
This series adds dynamic device tree selection from FIT images for Qualcomm Snapdragon platforms, enabling U-Boot to select the appropriate DTB based on hardware parameters detected at boot.
Qualcomm FIT-based DTB format is documented in [1].
The FIT image contains only DTBs, while the kernel is provided separately as part of a UKI image.
The implementation consists of:
1. Hardware detection infrastructure: Introduces the qcom,hwinfo driver and
qcom_hwdetecthelper to collect hardware identification data from SMEM, IMEM and TCSR into a singleqcom_hw_paramsstructure for consumers such as FIT multi-DTB selection.2. FIT multi-DTB selection: Implements DTB selection based on the aggregated hardware information. The code parses metadata DTBs, matches FIT configurations against detected hardware attributes, applies overlays, and loads the selected DTB for EFI boot.
Quoted 7 lines
Quoted 6 lines
[1] https://github.com/qualcomm-linux/qcom-dtb-metadata/blob/main/
Documentation.md---
Changes in v4:
... which was sent as v5, and this is a re-send of?
Yes, this is a resend of v4, which was sent as v5
Quoted 27 lines
Quoted 27 lines
1. Drop the SMEM cache infrastructure.
2. misc: qcom: add qcom,hwinfo driver to provide a common interface for reading IMEM boot cookie and TCSR SOC version information.
3. arm: snapdragon: add
qcom_hwdetecthelper to aggregate hardware information from SMEM, IMEM and TCSR into a single structqcom_hw_params.4. Refactor FIT multi-DTB selection to consume
qcom_hw_paramsinstead of accessing SMEM, IMEM and TCSR data directly.5. Separate hardware discovery from FIT parsing and DTB matching logic, reducing complexity and improving code organization.
6. Load FIT images directly from a raw GPT partition and remove the FAT filesystem image based loading approach.
7. Drop
IH_TYPE_FATFS, mkimage FAT image generation support and related documentation updates.8. arm: dts: enable qcom,hwinfo on qcs9100-ride-r3, qcs615-ride and qcs6490-rb3gen2 by adding the required qcom,hwinfo DT nodes and board-specific offsets.
Link to v3:
https://lore.kernel.org/u-boot/[email protected]/Quoted 7 lines
Quoted 2 lines
The FAT comments in v3 were addressed. I'm not really sure the discussion about if this approach makes sense as really was addressed however?
Yes, the FAT-related comments from v3 were addressed in this revision by dropping the FAT filesystem image-based loading approach and loading FIT image directly from a raw GPT partition.
Right, thanks.
Quoted 7 lines
Regarding the broader design, the reasoning for using a DTB-only FIT was discussed in the v3 thread [1]. The intention is to support firmware-side DT selection while keeping DTB management independent of kernel packaging, matching existing Qualcomm deployment models. This is intended to coexist with, rather than replace, approaches such as UKI DT bundling.
Quoted 7 lines
Quoted 1 line
[1]: https://lore.kernel.org/u-boot/afSXa7q7hJC_ZW07@sumit-xelite/
Yes, and I'd appreciate some of the people that were discussing things in that thread chiming in and saying they're happy enough, as it wasn't clear to me in re-reading the thread yesterday that the discussion ended with agreement and instead just stopped.
As of now the Qualcomm subsystem maintenence is in really inactive state as you can see from the list of patchsets even carrying review tags are missing custodian attention here [1]. If you remember it from our earlier private thread with Casey and Neil many months ago, the maintainence situation hasn't improved at all.
Even as a reviewer for the Qcom subsystem, I have tried earlier with all the reviews but patches were still floating on the list, which just demotivated me from doing further reviews.
Quoted 8 lines
I would really like to get this maintainence situation fixed. Would it be fine with you to accept me as a Qcom subsystem custodian with more people from Qualcomm contributing as reviewers?
In the meantime why we decide on that, can you help with picking patches which have been reviewed directly for the Qualcomm subsystem?
[1] https://patchwork.ozlabs.org/project/uboot/list/?delegate=151538¶m=4&page=1
I don't have a problem with (and a number of our SoCs do this now) have co-custodians, so I've reached out to Casey.
Since you brought it up in this thread, you were in the original v3 with questions / concerns about the approach that I wasn't sure if were resolved.
Signature · 1 line
Tom
Quoted 104 lines · Tom Rini
Quoted 103 lines · Sumit Garg
Hi Tom,
Quoted 78 lines · Tom Rini
Quoted 60 lines · Aswin Murugan
On 10/12/2026 11:20 PM, Tom Rini wrote:
Hi Tom,Quoted 22 lines · Aswin Murugan
Quoted 21 lines
This series adds dynamic device tree selection from FIT images for Qualcomm Snapdragon platforms, enabling U-Boot to select the appropriate DTB based on hardware parameters detected at boot.
Qualcomm FIT-based DTB format is documented in [1].
The FIT image contains only DTBs, while the kernel is provided separately as part of a UKI image.
The implementation consists of:
1. Hardware detection infrastructure: Introduces the qcom,hwinfo driver and
qcom_hwdetecthelper to collect hardware identification data from SMEM, IMEM and TCSR into a singleqcom_hw_paramsstructure for consumers such as FIT multi-DTB selection.2. FIT multi-DTB selection: Implements DTB selection based on the aggregated hardware information. The code parses metadata DTBs, matches FIT configurations against detected hardware attributes, applies overlays, and loads the selected DTB for EFI boot.
Quoted 7 lines
Quoted 6 lines
[1] https://github.com/qualcomm-linux/qcom-dtb-metadata/blob/main/
Documentation.md---
Changes in v4:
... which was sent as v5, and this is a re-send of?
Yes, this is a resend of v4, which was sent as v5
Quoted 27 lines
Quoted 27 lines
1. Drop the SMEM cache infrastructure.
2. misc: qcom: add qcom,hwinfo driver to provide a common interface for reading IMEM boot cookie and TCSR SOC version information.
3. arm: snapdragon: add
qcom_hwdetecthelper to aggregate hardware information from SMEM, IMEM and TCSR into a single structqcom_hw_params.4. Refactor FIT multi-DTB selection to consume
qcom_hw_paramsinstead of accessing SMEM, IMEM and TCSR data directly.5. Separate hardware discovery from FIT parsing and DTB matching logic, reducing complexity and improving code organization.
6. Load FIT images directly from a raw GPT partition and remove the FAT filesystem image based loading approach.
7. Drop
IH_TYPE_FATFS, mkimage FAT image generation support and related documentation updates.8. arm: dts: enable qcom,hwinfo on qcs9100-ride-r3, qcs615-ride and qcs6490-rb3gen2 by adding the required qcom,hwinfo DT nodes and board-specific offsets.
Link to v3:
https://lore.kernel.org/u-boot/[email protected]/Quoted 7 lines
Quoted 2 lines
The FAT comments in v3 were addressed. I'm not really sure the discussion about if this approach makes sense as really was addressed however?
Yes, the FAT-related comments from v3 were addressed in this revision by dropping the FAT filesystem image-based loading approach and loading FIT image directly from a raw GPT partition.
Right, thanks.
Quoted 7 lines
Regarding the broader design, the reasoning for using a DTB-only FIT was discussed in the v3 thread [1]. The intention is to support firmware-side DT selection while keeping DTB management independent of kernel packaging, matching existing Qualcomm deployment models. This is intended to coexist with, rather than replace, approaches such as UKI DT bundling.
Quoted 7 lines
Quoted 1 line
[1]: https://lore.kernel.org/u-boot/afSXa7q7hJC_ZW07@sumit-xelite/
Yes, and I'd appreciate some of the people that were discussing things in that thread chiming in and saying they're happy enough, as it wasn't clear to me in re-reading the thread yesterday that the discussion ended with agreement and instead just stopped.
As of now the Qualcomm subsystem maintenence is in really inactive state as you can see from the list of patchsets even carrying review tags are missing custodian attention here [1]. If you remember it from our earlier private thread with Casey and Neil many months ago, the maintainence situation hasn't improved at all.
Even as a reviewer for the Qcom subsystem, I have tried earlier with all the reviews but patches were still floating on the list, which just demotivated me from doing further reviews.
I would really like to get this maintainence situation fixed. Would it be fine with you to accept me as a Qcom subsystem custodian with more people from Qualcomm contributing as reviewers?
Quoted 7 lines
Quoted 4 lines
In the meantime why we decide on that, can you help with picking patches which have been reviewed directly for the Qualcomm subsystem?
[1] https://patchwork.ozlabs.org/project/uboot/list/?delegate=151538¶m=4&page=1
I don't have a problem with (and a number of our SoCs do this now) have co-custodians, so I've reached out to Casey.
Thanks, I will send a maintainer entry update soon.
Quoted 5 lines
Since you brought it up in this thread, you were in the original v3 with questions / concerns about the approach that I wasn't sure if were resolved.
Conceptually the concerns are addressed, I will do the further code review shortly.
-Sumit