blob: 97ee695779bd767d4a9f6e54892e16045b857e78 [file] [log] [blame]
Neha Malcom Francis20a90042023-07-22 00:14:28 +05301// SPDX-License-Identifier: GPL-2.0
2/*
Tom Rinidec7ea02024-05-20 13:35:03 -06003 * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/
Neha Malcom Francis20a90042023-07-22 00:14:28 +05304 */
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 {
Tom Rinidec7ea02024-05-20 13:35:03 -0600133 tiboot3-j721e_sr1_1-hs-fs-evm.bin {
134 filename = "tiboot3-j721e_sr1_1-hs-fs-evm.bin";
135 ti-secure-rom {
136 content = <&u_boot_spl_fs_sr1_1>;
137 core = "public";
138 core-opts = <2>;
139 load = <CONFIG_SPL_TEXT_BASE>;
140 keyfile = "custMpk.pem";
141 };
142 u_boot_spl_fs_sr1_1: u-boot-spl {
143 no-expanded;
144 };
145 };
146 sysfw_fs_sr1_1 {
147 filename = "sysfw.bin_fs_sr1_1";
148 ti-fs-cert-fs.bin {
149 filename = "ti-sysfw/ti-fs-firmware-j721e_sr1_1-hs-fs-cert.bin";
150 type = "blob-ext";
151 optional;
152 };
153 ti-fs-firmware-j721e-hs-fs-enc.bin {
154 filename = "ti-sysfw/ti-fs-firmware-j721e_sr1_1-hs-fs-enc.bin";
155 type = "blob-ext";
156 optional;
157 };
158 };
159 itb_fs_sr1_1 {
160 filename = "sysfw-j721e_sr1_1-hs-fs-evm.itb";
161 fit {
162 description = "SYSFW and Config fragments";
163 #address-cells = <1>;
164 images {
165 sysfw.bin {
166 description = "sysfw";
167 type = "firmware";
168 arch = "arm";
169 compression = "none";
170 blob-ext {
171 filename = "sysfw.bin_fs_sr1_1";
172 };
173 };
174 board-cfg.bin {
175 description = "board-cfg";
176 type = "firmware";
177 arch = "arm";
178 compression = "none";
179 board-cfg {
180 filename = "board-cfg.bin";
181 type = "blob-ext";
182 };
183
184 };
185 pm-cfg.bin {
186 description = "pm-cfg";
187 type = "firmware";
188 arch = "arm";
189 compression = "none";
190 pm-cfg {
191 filename = "pm-cfg.bin";
192 type = "blob-ext";
193 };
194 };
195 rm-cfg.bin {
196 description = "rm-cfg";
197 type = "firmware";
198 arch = "arm";
199 compression = "none";
200 rm-cfg {
201 filename = "rm-cfg.bin";
202 type = "blob-ext";
203 };
204 };
205 sec-cfg.bin {
206 description = "sec-cfg";
207 type = "firmware";
208 arch = "arm";
209 compression = "none";
210 sec-cfg {
211 filename = "sec-cfg.bin";
212 type = "blob-ext";
213 };
214 };
215 };
216 };
217 };
218};
219
220&binman {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530221 tiboot3-j721e_sr2-hs-fs-evm.bin {
222 filename = "tiboot3-j721e_sr2-hs-fs-evm.bin";
223 ti-secure-rom {
224 content = <&u_boot_spl_fs>;
225 core = "public";
226 load = <CONFIG_SPL_TEXT_BASE>;
227 keyfile = "custMpk.pem";
228 };
229 u_boot_spl_fs: u-boot-spl {
230 no-expanded;
231 };
232 };
233 sysfw_fs {
234 filename = "sysfw.bin_fs";
235 ti-fs-cert-fs.bin {
236 filename = "ti-sysfw/ti-fs-firmware-j721e_sr2-hs-fs-cert.bin";
237 type = "blob-ext";
238 optional;
239 };
240 ti-fs-firmware-j721e-hs-fs-enc.bin {
241 filename = "ti-sysfw/ti-fs-firmware-j721e_sr2-hs-fs-enc.bin";
242 type = "blob-ext";
243 optional;
244 };
245 };
246 itb_fs {
247 filename = "sysfw-j721e_sr2-hs-fs-evm.itb";
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530248 insert-template = <&itb_unsigned_template>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530249 };
250};
251
252&binman {
253 tiboot3-j721e-gp-evm.bin {
254 filename = "tiboot3-j721e-gp-evm.bin";
255 symlink = "tiboot3.bin";
256 ti-secure-rom {
257 content = <&u_boot_spl_unsigned>;
258 core = "public";
259 load = <CONFIG_SPL_TEXT_BASE>;
260 sw-rev = <CONFIG_K3_X509_SWRV>;
261 keyfile = "ti-degenerate-key.pem";
262 };
263 u_boot_spl_unsigned: u-boot-spl {
264 no-expanded;
265 };
266 };
267 sysfw_gp {
268 filename = "sysfw.bin_gp";
269 ti-secure-rom {
270 content = <&ti_fs>;
271 core = "secure";
272 load = <0x40000>;
273 sw-rev = <CONFIG_K3_X509_SWRV>;
274 keyfile = "ti-degenerate-key.pem";
275 };
276 ti_fs: ti-fs.bin {
277 filename = "ti-sysfw/ti-fs-firmware-j721e-gp.bin";
278 type = "blob-ext";
279 optional;
280 };
281 };
282 itb_gp {
283 filename = "sysfw-j721e-gp-evm.itb";
284 symlink = "sysfw.itb";
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530285 insert-template = <&itb_unsigned_template>;
286
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530287 fit {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530288 images {
289 sysfw.bin {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530290 blob-ext {
291 filename = "sysfw.bin_gp";
292 };
293 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530294 };
295 };
296 };
297};
298#endif
299
300#ifdef CONFIG_TARGET_J721E_A72_EVM
301
Neha Malcom Francis154bdbf2024-05-20 15:29:16 +0530302#define SPL_J721E_EVM_DTB "spl/dts/ti/k3-j721e-common-proc-board.dtb"
Manorit Chawdhry64ebddb2023-07-14 11:22:38 +0530303#define J721E_EVM_DTB "u-boot.dtb"
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530304
305&binman {
306 ti-dm {
307 filename = "ti-dm.bin";
308 blob-ext {
309 filename = "ti-dm/j721e/ipc_echo_testb_mcu1_0_release_strip.xer5f";
310 };
311 };
312 ti-spl {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530313 insert-template = <&ti_spl_template>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530314
315 fit {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530316 images {
Manorit Chawdhry5fa5cd42023-12-29 16:16:29 +0530317 atf {
318 ti-secure {
319 auth-in-place = <0xa02>;
320
321 firewall-257-0 {
322 /* cpu_0_cpu_0_msmc Background Firewall */
323 insert-template = <&firewall_bg_1>;
324 id = <257>;
325 region = <0>;
326 };
327
328 firewall-257-1 {
329 /* cpu_0_cpu_0_msmc Foreground Firewall */
330 insert-template = <&firewall_armv8_atf_fg>;
331 id = <257>;
332 region = <1>;
333 };
334
335 firewall-284-0 {
336 /* dru_0_msmc Background Firewall */
337 insert-template = <&firewall_bg_3>;
338 id = <284>;
339 region = <0>;
340 };
341
342 firewall-284-1 {
343 /* dru_0_msmc Foreground Firewall */
344 insert-template = <&firewall_armv8_atf_fg>;
345 id = <284>;
346 region = <1>;
347 };
348
349 /* firewall-4760-0 {
350 * nb_slv0__mem0 Background Firewall
351 * Already configured by the secure entity
352 * };
353 */
354
355 firewall-4760-1 {
356 /* nb_slv0__mem0 Foreground Firewall */
357 insert-template = <&firewall_armv8_atf_fg>;
358 id = <4760>;
359 region = <1>;
360 };
361
362 /* firewall-4761-0 {
363 * nb_slv1__mem0 Background Firewall
364 * Already configured by the secure entity
365 * };
366 */
367
368 firewall-4761-1 {
369 /* nb_slv1__mem0 Foreground Firewall */
370 insert-template = <&firewall_armv8_atf_fg>;
371 id = <4761>;
372 region = <1>;
373 };
374
375 };
376 };
377
378 tee {
379 ti-secure {
380 auth-in-place = <0xa02>;
381
382 /* cpu_0_cpu_0_msmc region 0 and 1 configured
383 * during ATF Firewalling
384 */
385
386 firewall-257-2 {
387 /* cpu_0_cpu_0_msmc Foreground Firewall */
388 insert-template = <&firewall_armv8_optee_fg>;
389 id = <257>;
390 region = <2>;
391 };
392
393 /* dru_0_msmc region 0 and 1 configured
394 * during ATF Firewalling
395 */
396
397 firewall-284-2 {
398 /* dru_0_msmc Foreground Firewall */
399 insert-template = <&firewall_armv8_optee_fg>;
400 id = <284>;
401 region = <2>;
402 };
403
404 firewall-4762-0 {
405 /* nb_slv2__mem0 Background Firewall */
406 insert-template = <&firewall_bg_3>;
407 id = <4762>;
408 region = <0>;
409 };
410
411 firewall-4762-1 {
412 /* nb_slv2__mem0 Foreground Firewall */
413 insert-template = <&firewall_armv8_optee_fg>;
414 id = <4762>;
415 region = <1>;
416 };
417
418 firewall-4763-0 {
419 /* nb_slv3__mem0 Background Firewall */
420 insert-template = <&firewall_bg_3>;
421 id = <4763>;
422 region = <0>;
423 };
424
425 firewall-4763-1 {
426 /* nb_slv3__mem0 Foreground Firewall */
427 insert-template = <&firewall_armv8_optee_fg>;
428 id = <4763>;
429 region = <1>;
430 };
431 };
432 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530433 dm {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530434 ti-secure {
435 content = <&dm>;
436 keyfile = "custMpk.pem";
437 };
Neha Malcom Francis82378212023-12-05 15:12:19 +0530438 dm: ti-dm {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530439 filename = "ti-dm.bin";
440 };
441 };
442
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530443 fdt-0 {
444 description = "k3-j721e-common-proc-board";
445 type = "flat_dt";
446 arch = "arm";
447 compression = "none";
448 ti-secure {
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530449 content = <&spl_j721e_dtb>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530450 keyfile = "custMpk.pem";
451 };
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530452 spl_j721e_dtb: blob-ext {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530453 filename = SPL_J721E_EVM_DTB;
454 };
455 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530456 };
457
458 configurations {
459 default = "conf-0";
460
461 conf-0 {
462 description = "k3-j721e-common-proc-board";
463 firmware = "atf";
464 loadables = "tee", "dm", "spl";
465 fdt = "fdt-0";
466 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530467 };
468 };
469 };
470};
471
472&binman {
473 u-boot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530474 insert-template = <&u_boot_template>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530475 fit {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530476
477 images {
478 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530479 description = "U-Boot for J721E Board";
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530480 };
481
482 fdt-0 {
483 description = "k3-j721e-common-proc-board";
484 type = "flat_dt";
485 arch = "arm";
486 compression = "none";
487 ti-secure {
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530488 content = <&j721e_dtb>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530489 keyfile = "custMpk.pem";
490
491 };
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530492 j721e_dtb: blob-ext {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530493 filename = J721E_EVM_DTB;
494 };
495 hash {
496 algo = "crc32";
497 };
498 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530499 };
500
501 configurations {
502 default = "conf-0";
503
504 conf-0 {
505 description = "k3-j721e-common-proc-board";
506 firmware = "uboot";
507 loadables = "uboot";
508 fdt = "fdt-0";
509 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530510 };
511 };
512 };
513};
514
515&binman {
516 ti-spl_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530517 insert-template = <&ti_spl_unsigned_template>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530518
519 fit {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530520 images {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530521 dm {
Neha Malcom Francis82378212023-12-05 15:12:19 +0530522 ti-dm {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530523 filename = "ti-dm.bin";
524 };
525 };
526
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530527 fdt-0 {
528 description = "k3-j721e-common-proc-board";
529 type = "flat_dt";
530 arch = "arm";
531 compression = "none";
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530532 spl_j721e_dtb_unsigned: blob {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530533 filename = SPL_J721E_EVM_DTB;
534 };
535 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530536 };
537
538 configurations {
539 default = "conf-0";
540
541 conf-0 {
542 description = "k3-j721e-common-proc-board";
543 firmware = "atf";
544 loadables = "tee", "dm", "spl";
545 fdt = "fdt-0";
546 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530547 };
548 };
549 };
550};
551
552&binman {
553 u-boot_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530554 insert-template = <&u_boot_unsigned_template>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530555
556 fit {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530557 images {
558 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530559 description = "U-Boot for J721E Board";
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530560 };
561
562 fdt-0 {
563 description = "k3-j721e-common-proc-board";
564 type = "flat_dt";
565 arch = "arm";
566 compression = "none";
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530567 j721e_dtb_unsigned: blob {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530568 filename = J721E_EVM_DTB;
569 };
570 hash {
571 algo = "crc32";
572 };
573 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530574 };
575
576 configurations {
577 default = "conf-0";
578
579 conf-0 {
580 description = "k3-j721e-common-proc-board";
581 firmware = "uboot";
582 loadables = "uboot";
583 fdt = "fdt-0";
584 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530585 };
586 };
587 };
588};
589#endif