Hi,

On 10/11/24 20:15, Patrick DELAUNAY wrote:
Hi,

On 10/5/24 03:15, Marek Vasut wrote:
Describe the u-boot.its generation in stm32mp15xx-dhsom-u-boot.dtsi
binman {} DT node as a replacement for current CONFIG_SPL_FIT_SOURCE
use, dispose of both u-boot-dhcom.its and u-boot-dhcor.its.

Use fdt-SEQ/config-SEQ to generate a list of fdt-N fitImage images {} and matching configuration {} node entries. The configuration node entry names no longer encode _somrevN_boardrevN suffix, which was never really used, so drop this functionality by default. Rework board_fit_config_name_match() to
match on the new configuration node entry names.

Users who do need the match on _somrevN_boardrevN can either replace the
fdt-SEQ/config-SEQ with fixed fdt-N/config-N nodes which each encode the
matching 'description = "NAME_somrevN_boardrevN"' to restore the old
behavior verbatim, or better use SPL DT overlays for U-Boot control DT
the same way e.g. i.MX8MP DHCOM does to support multiple SoM and board
variants.

Signed-off-by: Marek Vasut <ma...@denx.de>
---
Cc: Patrice Chotard <patrice.chot...@foss.st.com>
Cc: Patrick Delaunay <patrick.delau...@foss.st.com>
Cc: Sean Anderson <sean...@gmail.com>
Cc: Simon Glass <s...@chromium.org>
Cc: Tom Rini <tr...@konsulko.com>
Cc: u-b...@dh-electronics.com
Cc: u-boot@lists.denx.de
Cc: uboot-st...@st-md-mailman.stormreply.com
---
V2: No change
---
  arch/arm/dts/stm32mp15xx-dhcom-u-boot.dtsi    |  1 +
  arch/arm/dts/stm32mp15xx-dhcor-u-boot.dtsi    |  1 +
  arch/arm/dts/stm32mp15xx-dhsom-u-boot.dtsi    | 53 +++++++++++
  board/dhelectronics/dh_stm32mp1/board.c       | 19 +++-
  .../dh_stm32mp1/u-boot-dhcom.its              | 91 -------------------
  .../dh_stm32mp1/u-boot-dhcor.its              | 70 --------------
  configs/stm32mp15_dhcom_basic_defconfig       |  2 -
  configs/stm32mp15_dhcor_basic_defconfig       |  2 -
  8 files changed, 70 insertions(+), 169 deletions(-)
  create mode 100644 arch/arm/dts/stm32mp15xx-dhsom-u-boot.dtsi
  delete mode 100644 board/dhelectronics/dh_stm32mp1/u-boot-dhcom.its
  delete mode 100644 board/dhelectronics/dh_stm32mp1/u-boot-dhcor.its


Nice,
I discover the binman FIT Substitutions with N / SEQ


Reviewed-by: Patrick Delaunay <patrick.delau...@foss.st.com>

Thanks
Patrick



Applied to u-boot-stm/master, thanks!

Regards
Patrick



Reply via email to