blob: 0553825b38350890ae00a3c41663cbb842cbc65e [file] [log] [blame]
Apurva Nandan3818b142024-02-24 01:51:49 +05301// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/
4 */
5
6#include "k3-binman.dtsi"
7
Neha Malcom Francis64470cc2025-03-17 10:24:21 +05308#if defined(CONFIG_CPU_V7R)
Apurva Nandan3818b142024-02-24 01:51:49 +05309
10&rcfg_yaml_tifs {
11 config = "tifs-rm-cfg.yaml";
12};
13
14&binman {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +053015 tiboot3_j784s4_hs: template-9 {
16 section {
Apurva Nandan3818b142024-02-24 01:51:49 +053017 ti-secure-rom {
18 content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>,
19 <&combined_dm_cfg>, <&sysfw_inner_cert>;
20 combined;
21 dm-data;
22 sysfw-inner-cert;
23 keyfile = "custMpk.pem";
24 sw-rev = <1>;
25 content-sbl = <&u_boot_spl>;
26 content-sysfw = <&ti_fs_enc>;
27 content-sysfw-data = <&combined_tifs_cfg>;
28 content-sysfw-inner-cert = <&sysfw_inner_cert>;
29 content-dm-data = <&combined_dm_cfg>;
30 load = <0x41c00000>;
31 load-sysfw = <0x40000>;
32 load-sysfw-data = <0x66800>;
33 load-dm-data = <0x41c80000>;
34 };
35
36 u_boot_spl: u-boot-spl {
37 no-expanded;
38 };
39
40 ti_fs_enc: ti-fs-enc.bin {
Apurva Nandan3818b142024-02-24 01:51:49 +053041 type = "blob-ext";
42 optional;
43 };
44
45 combined_tifs_cfg: combined-tifs-cfg.bin {
46 filename = "combined-tifs-cfg.bin";
47 type = "blob-ext";
48 };
49
50 sysfw_inner_cert: sysfw-inner-cert {
Apurva Nandan3818b142024-02-24 01:51:49 +053051 type = "blob-ext";
52 optional;
53 };
54
55 combined_dm_cfg: combined-dm-cfg.bin {
56 filename = "combined-dm-cfg.bin";
57 type = "blob-ext";
58 };
Neha Malcom Francis64470cc2025-03-17 10:24:21 +053059 };
Apurva Nandan3818b142024-02-24 01:51:49 +053060 };
61};
62
63&binman {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +053064 tiboot3_j784s4_hs_fs: template-10 {
65 section {
Apurva Nandan3818b142024-02-24 01:51:49 +053066 ti-secure-rom {
67 content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>,
68 <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>;
69 combined;
70 dm-data;
71 sysfw-inner-cert;
72 keyfile = "custMpk.pem";
73 sw-rev = <1>;
74 content-sbl = <&u_boot_spl_fs>;
75 content-sysfw = <&ti_fs_enc_fs>;
76 content-sysfw-data = <&combined_tifs_cfg_fs>;
77 content-sysfw-inner-cert = <&sysfw_inner_cert_fs>;
78 content-dm-data = <&combined_dm_cfg_fs>;
79 load = <0x41c00000>;
80 load-sysfw = <0x40000>;
81 load-sysfw-data = <0x66800>;
82 load-dm-data = <0x41c80000>;
83 };
84
85 u_boot_spl_fs: u-boot-spl {
86 no-expanded;
87 };
88
89 ti_fs_enc_fs: ti-fs-enc.bin {
Apurva Nandan3818b142024-02-24 01:51:49 +053090 type = "blob-ext";
91 optional;
92 };
93
94 combined_tifs_cfg_fs: combined-tifs-cfg.bin {
95 filename = "combined-tifs-cfg.bin";
96 type = "blob-ext";
97 };
98
99 sysfw_inner_cert_fs: sysfw-inner-cert {
Apurva Nandan3818b142024-02-24 01:51:49 +0530100 type = "blob-ext";
101 optional;
102 };
103
104 combined_dm_cfg_fs: combined-dm-cfg.bin {
105 filename = "combined-dm-cfg.bin";
106 type = "blob-ext";
107 };
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530108 };
Apurva Nandan3818b142024-02-24 01:51:49 +0530109 };
110};
111
112&binman {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530113 tiboot3_j784s4_gp: template-11 {
114 section {
Apurva Nandan3818b142024-02-24 01:51:49 +0530115 ti-secure-rom {
116 content = <&u_boot_spl_unsigned>, <&ti_fs_gp>,
117 <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>;
118 combined;
119 dm-data;
120 content-sbl = <&u_boot_spl_unsigned>;
121 load = <0x41c00000>;
122 content-sysfw = <&ti_fs_gp>;
123 load-sysfw = <0x40000>;
124 content-sysfw-data = <&combined_tifs_cfg_gp>;
125 load-sysfw-data = < 0x66800>;
126 content-dm-data = <&combined_dm_cfg_gp>;
127 load-dm-data = <0x41c80000>;
128 sw-rev = <1>;
129 keyfile = "ti-degenerate-key.pem";
130 };
131
132 u_boot_spl_unsigned: u-boot-spl {
133 no-expanded;
134 };
135
136 ti_fs_gp: ti-fs-gp.bin {
Apurva Nandan3818b142024-02-24 01:51:49 +0530137 type = "blob-ext";
138 optional;
139 };
140
141 combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin {
142 filename = "combined-tifs-cfg.bin";
143 type = "blob-ext";
144 };
145
146 combined_dm_cfg_gp: combined-dm-cfg-gp.bin {
147 filename = "combined-dm-cfg.bin";
148 type = "blob-ext";
149 };
Jonathan Humphreys0e34cad2024-05-31 17:51:10 -0500150 };
151 };
152};
153
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530154#else
Apurva Nandan3818b142024-02-24 01:51:49 +0530155
156&binman {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530157 ti_spl: template-12 {
Apurva Nandan3818b142024-02-24 01:51:49 +0530158 insert-template = <&ti_spl_template>;
159
160 fit {
161 images {
162 dm {
163 ti-secure {
164 content = <&dm>;
165 keyfile = "custMpk.pem";
166 };
167
168 dm: blob-ext {
169 filename = "ti-dm.bin";
170 };
171 };
172
173 fdt-0 {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530174 description = BOARD_DESCRIPTION;
Apurva Nandan3818b142024-02-24 01:51:49 +0530175 type = "flat_dt";
176 arch = "arm";
177 compression = "none";
178
179 ti-secure {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530180 content = <&spl_board_dtb>;
Apurva Nandan3818b142024-02-24 01:51:49 +0530181 keyfile = "custMpk.pem";
182 };
183
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530184 spl_board_dtb: blob-ext {
185 filename = SPL_BOARD_DTB;
Apurva Nandan3818b142024-02-24 01:51:49 +0530186 };
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530187
Apurva Nandan3818b142024-02-24 01:51:49 +0530188 };
189 };
190
191 configurations {
192 default = "conf-0";
193
194 conf-0 {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530195 description = BOARD_DESCRIPTION;
Apurva Nandan3818b142024-02-24 01:51:49 +0530196 firmware = "atf";
197 loadables = "tee", "dm", "spl";
198 fdt = "fdt-0";
199 };
200 };
201 };
202 };
203};
204
205&binman {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530206 u_boot: template-13 {
Apurva Nandan3818b142024-02-24 01:51:49 +0530207 insert-template = <&u_boot_template>;
208
209 fit {
210 images {
211 uboot {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530212 description = UBOOT_BOARD_DESCRIPTION;
Apurva Nandan3818b142024-02-24 01:51:49 +0530213 };
214
215 fdt-0 {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530216 description = BOARD_DESCRIPTION;
Apurva Nandan3818b142024-02-24 01:51:49 +0530217 type = "flat_dt";
218 arch = "arm";
219 compression = "none";
220
221 ti-secure {
222 content = <&j784s4_evm_dtb>;
223 keyfile = "custMpk.pem";
224 };
225
226 j784s4_evm_dtb: blob-ext {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530227 filename = "u-boot.dtb";
Apurva Nandan3818b142024-02-24 01:51:49 +0530228 };
229
230 hash {
231 algo = "crc32";
232 };
233 };
234 };
235
236 configurations {
237 default = "conf-0";
238
239 conf-0 {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530240 description = BOARD_DESCRIPTION;
Apurva Nandan3818b142024-02-24 01:51:49 +0530241 firmware = "uboot";
242 loadables = "uboot";
243 fdt = "fdt-0";
244 };
245 };
246 };
247 };
248};
249
250&binman {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530251 ti_spl_unsigned: template-14 {
Apurva Nandan3818b142024-02-24 01:51:49 +0530252 insert-template = <&ti_spl_unsigned_template>;
253
254 fit {
255 images {
256 dm {
257 blob-ext {
258 filename = "ti-dm.bin";
259 };
260 };
261
262 fdt-0 {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530263 description = BOARD_DESCRIPTION;
Apurva Nandan3818b142024-02-24 01:51:49 +0530264 type = "flat_dt";
265 arch = "arm";
266 compression = "none";
267
268 spl_j784s4_evm_dtb_unsigned: blob {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530269 filename = SPL_BOARD_DTB;
Apurva Nandan3818b142024-02-24 01:51:49 +0530270 };
271 };
272 };
273
274 configurations {
275 default = "conf-0";
276
277 conf-0 {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530278 description = BOARD_DESCRIPTION;
Apurva Nandan3818b142024-02-24 01:51:49 +0530279 firmware = "atf";
280 loadables = "tee", "dm", "spl";
281 fdt = "fdt-0";
282 };
283 };
284 };
285 };
286};
287
288&binman {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530289 u_boot_unsigned: template-15 {
Apurva Nandan3818b142024-02-24 01:51:49 +0530290 insert-template = <&u_boot_unsigned_template>;
291
292 fit {
293 images {
294 uboot {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530295 description = UBOOT_BOARD_DESCRIPTION;
Apurva Nandan3818b142024-02-24 01:51:49 +0530296 };
297
298 fdt-0 {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530299 description = BOARD_DESCRIPTION;
Apurva Nandan3818b142024-02-24 01:51:49 +0530300 type = "flat_dt";
301 arch = "arm";
302 compression = "none";
303
304 j784s4_evm_dtb_unsigned: blob {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530305 filename = "u-boot.dtb";
Apurva Nandan3818b142024-02-24 01:51:49 +0530306 };
307
308 hash {
309 algo = "crc32";
310 };
311 };
312 };
313
314 configurations {
315 default = "conf-0";
316
317 conf-0 {
Neha Malcom Francis64470cc2025-03-17 10:24:21 +0530318 description = BOARD_DESCRIPTION;
Apurva Nandan3818b142024-02-24 01:51:49 +0530319 firmware = "uboot";
320 loadables = "uboot";
321 fdt = "fdt-0";
322 };
323 };
324 };
325 };
326};
Apurva Nandan3818b142024-02-24 01:51:49 +0530327#endif