blob: 2867d264664ffc675fcbcde3108218b2c6ce4115 [file] [log] [blame]
Neha Malcom Francis20a90042023-07-22 00:14:28 +05301// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
4 */
5
6#include "k3-binman.dtsi"
7
8#ifdef CONFIG_TARGET_J721E_R5_EVM
9
10&binman {
11 tiboot3-j721e_sr1_1-hs-evm.bin {
12 filename = "tiboot3-j721e_sr1_1-hs-evm.bin";
13 ti-secure-rom {
14 content = <&u_boot_spl>;
15 core = "public";
16 load = <CONFIG_SPL_TEXT_BASE>;
17 keyfile = "custMpk.pem";
18 };
19 u_boot_spl: u-boot-spl {
20 no-expanded;
21 };
22 };
Neha Malcom Francis20b15972023-12-20 17:04:33 +053023
24 tiboot3-j721e_sr2-hs-evm.bin {
25 filename = "tiboot3-j721e_sr2-hs-evm.bin";
26 ti-secure-rom {
27 content = <&u_boot_spl_sr2>;
28 core = "public";
29 load = <CONFIG_SPL_TEXT_BASE>;
30 keyfile = "custMpk.pem";
31 };
32 u_boot_spl_sr2: u-boot-spl {
33 no-expanded;
34 };
35 };
36
Neha Malcom Francis20a90042023-07-22 00:14:28 +053037 sysfw {
38 filename = "sysfw.bin";
39 ti-secure-rom {
40 content = <&ti_fs_cert>;
41 core = "secure";
42 load = <0x40000>;
43 keyfile = "custMpk.pem";
44 countersign;
45 };
46 ti_fs_cert: ti-fs-cert.bin {
47 filename = "ti-sysfw/ti-fs-firmware-j721e_sr1_1-hs-cert.bin";
48 type = "blob-ext";
49 optional;
50 };
51 ti-fs-firmware-j721e_sr1_1-hs-enc.bin {
52 filename = "ti-sysfw/ti-fs-firmware-j721e_sr1_1-hs-enc.bin";
53 type = "blob-ext";
54 optional;
55 };
56 };
Neha Malcom Francis20b15972023-12-20 17:04:33 +053057
58 sysfw_sr2 {
59 filename = "sysfw.bin_sr2";
60 ti-secure-rom {
61 content = <&ti_fs_cert_sr2>;
62 core = "secure";
63 load = <0x40000>;
64 keyfile = "custMpk.pem";
65 countersign;
66 };
67 ti_fs_cert_sr2: ti-fs-cert.bin {
68 filename = "ti-sysfw/ti-fs-firmware-j721e_sr2-hs-cert.bin";
69 type = "blob-ext";
70 optional;
71 };
72 ti-fs-firmware-j721e_sr2-hs-enc.bin {
73 filename = "ti-sysfw/ti-fs-firmware-j721e_sr2-hs-enc.bin";
74 type = "blob-ext";
75 optional;
76 };
77 };
78
Neha Malcom Francis20a90042023-07-22 00:14:28 +053079 itb {
80 filename = "sysfw-j721e_sr1_1-hs-evm.itb";
Neha Malcom Francis806b6f82023-11-15 15:40:24 +053081 insert-template = <&itb_template>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +053082 };
Neha Malcom Francis20b15972023-12-20 17:04:33 +053083
84 itb_sr2 {
85 filename = "sysfw-j721e_sr2-hs-evm.itb";
86 insert-template = <&itb_template>;
87 fit {
88 images {
89 sysfw.bin {
90 blob-ext {
91 filename = "sysfw.bin_sr2";
92 };
93 };
94 board-cfg.bin {
95 ti-secure {
96 content = <&board_cfg_sr2>;
97 };
98 board_cfg_sr2: board-cfg {
99 filename = "board-cfg.bin";
100 };
101 };
102 pm-cfg.bin {
103 ti-secure {
104 content = <&pm_cfg_sr2>;
105 };
106 pm_cfg_sr2: pm-cfg {
107 filename = "pm-cfg.bin";
108 };
109 };
110 rm-cfg.bin {
111 ti-secure {
112 content = <&rm_cfg_sr2>;
113 };
114 rm_cfg_sr2: rm-cfg {
115 filename = "rm-cfg.bin";
116 };
117 };
118 sec-cfg.bin {
119 ti-secure {
120 content = <&sec_cfg_sr2>;
121 };
122 sec_cfg_sr2: sec-cfg {
123 filename = "sec-cfg.bin";
124 };
125 };
126
127 };
128 };
129 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530130};
131
132&binman {
133 tiboot3-j721e_sr2-hs-fs-evm.bin {
134 filename = "tiboot3-j721e_sr2-hs-fs-evm.bin";
135 ti-secure-rom {
136 content = <&u_boot_spl_fs>;
137 core = "public";
138 load = <CONFIG_SPL_TEXT_BASE>;
139 keyfile = "custMpk.pem";
140 };
141 u_boot_spl_fs: u-boot-spl {
142 no-expanded;
143 };
144 };
145 sysfw_fs {
146 filename = "sysfw.bin_fs";
147 ti-fs-cert-fs.bin {
148 filename = "ti-sysfw/ti-fs-firmware-j721e_sr2-hs-fs-cert.bin";
149 type = "blob-ext";
150 optional;
151 };
152 ti-fs-firmware-j721e-hs-fs-enc.bin {
153 filename = "ti-sysfw/ti-fs-firmware-j721e_sr2-hs-fs-enc.bin";
154 type = "blob-ext";
155 optional;
156 };
157 };
158 itb_fs {
159 filename = "sysfw-j721e_sr2-hs-fs-evm.itb";
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530160 insert-template = <&itb_unsigned_template>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530161 };
162};
163
164&binman {
165 tiboot3-j721e-gp-evm.bin {
166 filename = "tiboot3-j721e-gp-evm.bin";
167 symlink = "tiboot3.bin";
168 ti-secure-rom {
169 content = <&u_boot_spl_unsigned>;
170 core = "public";
171 load = <CONFIG_SPL_TEXT_BASE>;
172 sw-rev = <CONFIG_K3_X509_SWRV>;
173 keyfile = "ti-degenerate-key.pem";
174 };
175 u_boot_spl_unsigned: u-boot-spl {
176 no-expanded;
177 };
178 };
179 sysfw_gp {
180 filename = "sysfw.bin_gp";
181 ti-secure-rom {
182 content = <&ti_fs>;
183 core = "secure";
184 load = <0x40000>;
185 sw-rev = <CONFIG_K3_X509_SWRV>;
186 keyfile = "ti-degenerate-key.pem";
187 };
188 ti_fs: ti-fs.bin {
189 filename = "ti-sysfw/ti-fs-firmware-j721e-gp.bin";
190 type = "blob-ext";
191 optional;
192 };
193 };
194 itb_gp {
195 filename = "sysfw-j721e-gp-evm.itb";
196 symlink = "sysfw.itb";
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530197 insert-template = <&itb_unsigned_template>;
198
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530199 fit {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530200 images {
201 sysfw.bin {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530202 blob-ext {
203 filename = "sysfw.bin_gp";
204 };
205 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530206 };
207 };
208 };
209};
210#endif
211
212#ifdef CONFIG_TARGET_J721E_A72_EVM
213
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530214#define SPL_J721E_EVM_DTB "spl/dts/k3-j721e-common-proc-board.dtb"
Manorit Chawdhry64ebddb2023-07-14 11:22:38 +0530215#define J721E_EVM_DTB "u-boot.dtb"
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530216
217&binman {
218 ti-dm {
219 filename = "ti-dm.bin";
220 blob-ext {
221 filename = "ti-dm/j721e/ipc_echo_testb_mcu1_0_release_strip.xer5f";
222 };
223 };
224 ti-spl {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530225 insert-template = <&ti_spl_template>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530226
227 fit {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530228 images {
Manorit Chawdhry5fa5cd42023-12-29 16:16:29 +0530229 atf {
230 ti-secure {
231 auth-in-place = <0xa02>;
232
233 firewall-257-0 {
234 /* cpu_0_cpu_0_msmc Background Firewall */
235 insert-template = <&firewall_bg_1>;
236 id = <257>;
237 region = <0>;
238 };
239
240 firewall-257-1 {
241 /* cpu_0_cpu_0_msmc Foreground Firewall */
242 insert-template = <&firewall_armv8_atf_fg>;
243 id = <257>;
244 region = <1>;
245 };
246
247 firewall-284-0 {
248 /* dru_0_msmc Background Firewall */
249 insert-template = <&firewall_bg_3>;
250 id = <284>;
251 region = <0>;
252 };
253
254 firewall-284-1 {
255 /* dru_0_msmc Foreground Firewall */
256 insert-template = <&firewall_armv8_atf_fg>;
257 id = <284>;
258 region = <1>;
259 };
260
261 /* firewall-4760-0 {
262 * nb_slv0__mem0 Background Firewall
263 * Already configured by the secure entity
264 * };
265 */
266
267 firewall-4760-1 {
268 /* nb_slv0__mem0 Foreground Firewall */
269 insert-template = <&firewall_armv8_atf_fg>;
270 id = <4760>;
271 region = <1>;
272 };
273
274 /* firewall-4761-0 {
275 * nb_slv1__mem0 Background Firewall
276 * Already configured by the secure entity
277 * };
278 */
279
280 firewall-4761-1 {
281 /* nb_slv1__mem0 Foreground Firewall */
282 insert-template = <&firewall_armv8_atf_fg>;
283 id = <4761>;
284 region = <1>;
285 };
286
287 };
288 };
289
290 tee {
291 ti-secure {
292 auth-in-place = <0xa02>;
293
294 /* cpu_0_cpu_0_msmc region 0 and 1 configured
295 * during ATF Firewalling
296 */
297
298 firewall-257-2 {
299 /* cpu_0_cpu_0_msmc Foreground Firewall */
300 insert-template = <&firewall_armv8_optee_fg>;
301 id = <257>;
302 region = <2>;
303 };
304
305 /* dru_0_msmc region 0 and 1 configured
306 * during ATF Firewalling
307 */
308
309 firewall-284-2 {
310 /* dru_0_msmc Foreground Firewall */
311 insert-template = <&firewall_armv8_optee_fg>;
312 id = <284>;
313 region = <2>;
314 };
315
316 firewall-4762-0 {
317 /* nb_slv2__mem0 Background Firewall */
318 insert-template = <&firewall_bg_3>;
319 id = <4762>;
320 region = <0>;
321 };
322
323 firewall-4762-1 {
324 /* nb_slv2__mem0 Foreground Firewall */
325 insert-template = <&firewall_armv8_optee_fg>;
326 id = <4762>;
327 region = <1>;
328 };
329
330 firewall-4763-0 {
331 /* nb_slv3__mem0 Background Firewall */
332 insert-template = <&firewall_bg_3>;
333 id = <4763>;
334 region = <0>;
335 };
336
337 firewall-4763-1 {
338 /* nb_slv3__mem0 Foreground Firewall */
339 insert-template = <&firewall_armv8_optee_fg>;
340 id = <4763>;
341 region = <1>;
342 };
343 };
344 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530345 dm {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530346 ti-secure {
347 content = <&dm>;
348 keyfile = "custMpk.pem";
349 };
Neha Malcom Francis82378212023-12-05 15:12:19 +0530350 dm: ti-dm {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530351 filename = "ti-dm.bin";
352 };
353 };
354
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530355 fdt-0 {
356 description = "k3-j721e-common-proc-board";
357 type = "flat_dt";
358 arch = "arm";
359 compression = "none";
360 ti-secure {
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530361 content = <&spl_j721e_dtb>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530362 keyfile = "custMpk.pem";
363 };
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530364 spl_j721e_dtb: blob-ext {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530365 filename = SPL_J721E_EVM_DTB;
366 };
367 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530368 };
369
370 configurations {
371 default = "conf-0";
372
373 conf-0 {
374 description = "k3-j721e-common-proc-board";
375 firmware = "atf";
376 loadables = "tee", "dm", "spl";
377 fdt = "fdt-0";
378 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530379 };
380 };
381 };
382};
383
384&binman {
385 u-boot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530386 insert-template = <&u_boot_template>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530387 fit {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530388
389 images {
390 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530391 description = "U-Boot for J721E Board";
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530392 };
393
394 fdt-0 {
395 description = "k3-j721e-common-proc-board";
396 type = "flat_dt";
397 arch = "arm";
398 compression = "none";
399 ti-secure {
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530400 content = <&j721e_dtb>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530401 keyfile = "custMpk.pem";
402
403 };
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530404 j721e_dtb: blob-ext {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530405 filename = J721E_EVM_DTB;
406 };
407 hash {
408 algo = "crc32";
409 };
410 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530411 };
412
413 configurations {
414 default = "conf-0";
415
416 conf-0 {
417 description = "k3-j721e-common-proc-board";
418 firmware = "uboot";
419 loadables = "uboot";
420 fdt = "fdt-0";
421 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530422 };
423 };
424 };
425};
426
427&binman {
428 ti-spl_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530429 insert-template = <&ti_spl_unsigned_template>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530430
431 fit {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530432 images {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530433 dm {
Neha Malcom Francis82378212023-12-05 15:12:19 +0530434 ti-dm {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530435 filename = "ti-dm.bin";
436 };
437 };
438
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530439 fdt-0 {
440 description = "k3-j721e-common-proc-board";
441 type = "flat_dt";
442 arch = "arm";
443 compression = "none";
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530444 spl_j721e_dtb_unsigned: blob {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530445 filename = SPL_J721E_EVM_DTB;
446 };
447 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530448 };
449
450 configurations {
451 default = "conf-0";
452
453 conf-0 {
454 description = "k3-j721e-common-proc-board";
455 firmware = "atf";
456 loadables = "tee", "dm", "spl";
457 fdt = "fdt-0";
458 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530459 };
460 };
461 };
462};
463
464&binman {
465 u-boot_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530466 insert-template = <&u_boot_unsigned_template>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530467
468 fit {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530469 images {
470 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530471 description = "U-Boot for J721E Board";
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530472 };
473
474 fdt-0 {
475 description = "k3-j721e-common-proc-board";
476 type = "flat_dt";
477 arch = "arm";
478 compression = "none";
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530479 j721e_dtb_unsigned: blob {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530480 filename = J721E_EVM_DTB;
481 };
482 hash {
483 algo = "crc32";
484 };
485 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530486 };
487
488 configurations {
489 default = "conf-0";
490
491 conf-0 {
492 description = "k3-j721e-common-proc-board";
493 firmware = "uboot";
494 loadables = "uboot";
495 fdt = "fdt-0";
496 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530497 };
498 };
499 };
500};
501#endif