From: Dasnavis Sabiya <sabiy...@ti.com>

The J784S4/AM69 has 2 platforms naming J784S4-EVM and AM69-SK.
Add binman support to build HS anad GP boot binaries for AM69 SK
platform

Signed-off-by: Dasnavis Sabiya <sabiy...@ti.com>
Signed-off-by: Apurva Nandan <a-nan...@ti.com>
---
 arch/arm/dts/k3-j784s4-binman.dtsi | 92 ++++++++++++++++++++++++++++++
 1 file changed, 92 insertions(+)

diff --git a/arch/arm/dts/k3-j784s4-binman.dtsi 
b/arch/arm/dts/k3-j784s4-binman.dtsi
index b5d2f4bab6..5c30333a10 100644
--- a/arch/arm/dts/k3-j784s4-binman.dtsi
+++ b/arch/arm/dts/k3-j784s4-binman.dtsi
@@ -163,9 +163,11 @@
 
 #define SPL_NODTB "spl/u-boot-spl-nodtb.bin"
 #define SPL_J784S4_EVM_DTB "spl/dts/k3-j784s4-evm.dtb"
+#define SPL_AM69_SK_DTB "spl/dts/k3-am69-sk.dtb"
 
 #define UBOOT_NODTB "u-boot-nodtb.bin"
 #define J784S4_EVM_DTB "u-boot.dtb"
+#define AM69_SK_DTB "arch/arm/dts/k3-am69-sk.dtb"
 
 &binman {
        ti-dm {
@@ -272,6 +274,22 @@
                                                filename = SPL_J784S4_EVM_DTB;
                                        };
                                };
+
+                               fdt-1 {
+                                       description = "k3-am69-sk";
+                                       type = "flat_dt";
+                                       arch = "arm";
+                                       compression = "none";
+
+                                       ti-secure {
+                                               content = <&spl_am69_sk_dtb>;
+                                               keyfile = "custMpk.pem";
+                                       };
+
+                                       spl_am69_sk_dtb: blob-ext {
+                                               filename = SPL_AM69_SK_DTB;
+                                       };
+                               };
                        };
 
                        configurations {
@@ -283,6 +301,13 @@
                                        loadables = "tee", "dm", "spl";
                                        fdt = "fdt-0";
                                };
+
+                               conf-1 {
+                                       description = "k3-am69-sk";
+                                       firmware = "atf";
+                                       loadables = "tee", "dm", "spl";
+                                       fdt = "fdt-1";
+                               };
                        };
                };
        };
@@ -338,6 +363,26 @@
                                                algo = "crc32";
                                        };
                                };
+
+                               fdt-1 {
+                                       description = "k3-am69-sk";
+                                       type = "flat_dt";
+                                       arch = "arm";
+                                       compression = "none";
+
+                                       ti-secure {
+                                               content = <&am69_sk_dtb>;
+                                               keyfile = "custMpk.pem";
+                                       };
+
+                                       am69_sk_dtb: blob-ext {
+                                               filename = AM69_SK_DTB;
+                                       };
+
+                                       hash {
+                                               algo = "crc32";
+                                       };
+                               };
                        };
 
                        configurations {
@@ -349,6 +394,13 @@
                                        loadables = "uboot";
                                        fdt = "fdt-0";
                                };
+
+                               conf-1 {
+                                       description = "k3-am69-sk";
+                                       firmware = "uboot";
+                                       loadables = "uboot";
+                                       fdt = "fdt-1";
+                               };
                        };
                };
        };
@@ -431,6 +483,17 @@
                                                filename = SPL_J784S4_EVM_DTB;
                                        };
                                };
+
+                               fdt-1 {
+                                       description = "k3-am69-sk";
+                                       type = "flat_dt";
+                                       arch = "arm";
+                                       compression = "none";
+
+                                       blob {
+                                               filename = SPL_AM69_SK_DTB;
+                                       };
+                               };
                        };
 
                        configurations {
@@ -442,6 +505,13 @@
                                        loadables = "tee", "dm", "spl";
                                        fdt = "fdt-0";
                                };
+
+                               conf-1 {
+                                       description = "k3-am69-sk";
+                                       firmware = "atf";
+                                       loadables = "tee", "dm", "spl";
+                                       fdt = "fdt-1";
+                               };
                        };
                };
        };
@@ -487,6 +557,21 @@
                                                algo = "crc32";
                                        };
                                };
+
+                               fdt-1 {
+                                       description = "k3-am69-sk";
+                                       type = "flat_dt";
+                                       arch = "arm";
+                                       compression = "none";
+
+                                       blob {
+                                               filename = AM69_SK_DTB;
+                                       };
+
+                                       hash {
+                                               algo = "crc32";
+                                       };
+                               };
                        };
 
                        configurations {
@@ -498,6 +583,13 @@
                                        loadables = "uboot";
                                        fdt = "fdt-0";
                                };
+
+                               conf-1 {
+                                       description = "k3-am69-sk";
+                                       firmware = "uboot";
+                                       loadables = "uboot";
+                                       fdt = "fdt-1";
+                               };
                        };
                };
        };
-- 
2.34.1

Reply via email to