riscv: dts: add OF_LIST handling to binman.dtsi
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 21 Feb 2025 09:58:53 +0000 (10:58 +0100)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 25 Mar 2025 08:25:26 +0000 (16:25 +0800)
Binman can automatically generate device-tree and configuration entries in
the FIT image based on CONFIG_MULTI_DTB_FIT if the binman node includes the
right sub-nodes.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: E Shattow <e@freeshell.de>
arch/riscv/dts/binman.dtsi

index 0405fac..782ef03 100644 (file)
@@ -82,8 +82,9 @@
                                        };
                                };
 
-#ifndef CONFIG_OF_BOARD
+#if !defined(CONFIG_OF_BOARD) || defined(CONFIG_MULTI_DTB_FIT)
                                @fdt-SEQ {
+                                       fit,operation = "gen-fdt-nodes";
                                        description = "NAME";
                                        type = "flat_dt";
                                        compression = "none";
@@ -94,7 +95,7 @@
                        configurations {
                                default = "conf-1";
 
-#ifndef CONFIG_OF_BOARD
+#if !defined(CONFIG_OF_BOARD) || defined(CONFIG_MULTI_DTB_FIT)
                                @conf-SEQ {
 #else
                                conf-1 {
 #endif
 #endif /* CONFIG_OPTEE */
 
-#ifndef CONFIG_OF_BOARD
+#if !defined(CONFIG_OF_BOARD) || defined(CONFIG_MULTI_DTB_FIT)
                                        fdt = "fdt-SEQ";
 #endif
                                };