blob: 4f566c21a9afa10bb5db2c115ec0d0bb20289e39 [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 };
23 sysfw {
24 filename = "sysfw.bin";
25 ti-secure-rom {
26 content = <&ti_fs_cert>;
27 core = "secure";
28 load = <0x40000>;
29 keyfile = "custMpk.pem";
30 countersign;
31 };
32 ti_fs_cert: ti-fs-cert.bin {
33 filename = "ti-sysfw/ti-fs-firmware-j721e_sr1_1-hs-cert.bin";
34 type = "blob-ext";
35 optional;
36 };
37 ti-fs-firmware-j721e_sr1_1-hs-enc.bin {
38 filename = "ti-sysfw/ti-fs-firmware-j721e_sr1_1-hs-enc.bin";
39 type = "blob-ext";
40 optional;
41 };
42 };
43 itb {
44 filename = "sysfw-j721e_sr1_1-hs-evm.itb";
45 fit {
46 description = "SYSFW and Config fragments";
47 #address-cells = <1>;
48 images {
49 sysfw.bin {
50 description = "sysfw";
51 type = "firmware";
52 arch = "arm";
53 compression = "none";
54 blob-ext {
55 filename = "sysfw.bin";
56 };
57 };
58 board-cfg.bin {
59 description = "board-cfg";
60 type = "firmware";
61 arch = "arm";
62 compression = "none";
63 ti-secure {
64 content = <&board_cfg>;
65 keyfile = "custMpk.pem";
66 };
67 board_cfg: board-cfg {
68 filename = "board-cfg.bin";
69 type = "blob-ext";
70 };
71
72 };
73 pm-cfg.bin {
74 description = "pm-cfg";
75 type = "firmware";
76 arch = "arm";
77 compression = "none";
78 ti-secure {
79 content = <&pm_cfg>;
80 keyfile = "custMpk.pem";
81 };
82 pm_cfg: pm-cfg {
83 filename = "pm-cfg.bin";
84 type = "blob-ext";
85 };
86 };
87 rm-cfg.bin {
88 description = "rm-cfg";
89 type = "firmware";
90 arch = "arm";
91 compression = "none";
92 ti-secure {
93 content = <&rm_cfg>;
94 keyfile = "custMpk.pem";
95 };
96 rm_cfg: rm-cfg {
97 filename = "rm-cfg.bin";
98 type = "blob-ext";
99 };
100 };
101 sec-cfg.bin {
102 description = "sec-cfg";
103 type = "firmware";
104 arch = "arm";
105 compression = "none";
106 ti-secure {
107 content = <&sec_cfg>;
108 keyfile = "custMpk.pem";
109 };
110 sec_cfg: sec-cfg {
111 filename = "sec-cfg.bin";
112 type = "blob-ext";
113 };
114 };
115 };
116 };
117 };
118};
119
120&binman {
121 tiboot3-j721e_sr2-hs-fs-evm.bin {
122 filename = "tiboot3-j721e_sr2-hs-fs-evm.bin";
123 ti-secure-rom {
124 content = <&u_boot_spl_fs>;
125 core = "public";
126 load = <CONFIG_SPL_TEXT_BASE>;
127 keyfile = "custMpk.pem";
128 };
129 u_boot_spl_fs: u-boot-spl {
130 no-expanded;
131 };
132 };
133 sysfw_fs {
134 filename = "sysfw.bin_fs";
135 ti-fs-cert-fs.bin {
136 filename = "ti-sysfw/ti-fs-firmware-j721e_sr2-hs-fs-cert.bin";
137 type = "blob-ext";
138 optional;
139 };
140 ti-fs-firmware-j721e-hs-fs-enc.bin {
141 filename = "ti-sysfw/ti-fs-firmware-j721e_sr2-hs-fs-enc.bin";
142 type = "blob-ext";
143 optional;
144 };
145 };
146 itb_fs {
147 filename = "sysfw-j721e_sr2-hs-fs-evm.itb";
148 fit {
149 description = "SYSFW and Config fragments";
150 #address-cells = <1>;
151 images {
152 sysfw.bin {
153 description = "sysfw";
154 type = "firmware";
155 arch = "arm";
156 compression = "none";
157 blob-ext {
158 filename = "sysfw.bin_fs";
159 };
160 };
161 board-cfg.bin {
162 description = "board-cfg";
163 type = "firmware";
164 arch = "arm";
165 compression = "none";
166 board-cfg {
167 filename = "board-cfg.bin";
168 type = "blob-ext";
169 };
170
171 };
172 pm-cfg.bin {
173 description = "pm-cfg";
174 type = "firmware";
175 arch = "arm";
176 compression = "none";
177 pm-cfg {
178 filename = "pm-cfg.bin";
179 type = "blob-ext";
180 };
181 };
182 rm-cfg.bin {
183 description = "rm-cfg";
184 type = "firmware";
185 arch = "arm";
186 compression = "none";
187 rm-cfg {
188 filename = "rm-cfg.bin";
189 type = "blob-ext";
190 };
191 };
192 sec-cfg.bin {
193 description = "sec-cfg";
194 type = "firmware";
195 arch = "arm";
196 compression = "none";
197 sec-cfg {
198 filename = "sec-cfg.bin";
199 type = "blob-ext";
200 };
201 };
202 };
203 };
204 };
205};
206
207&binman {
208 tiboot3-j721e-gp-evm.bin {
209 filename = "tiboot3-j721e-gp-evm.bin";
210 symlink = "tiboot3.bin";
211 ti-secure-rom {
212 content = <&u_boot_spl_unsigned>;
213 core = "public";
214 load = <CONFIG_SPL_TEXT_BASE>;
215 sw-rev = <CONFIG_K3_X509_SWRV>;
216 keyfile = "ti-degenerate-key.pem";
217 };
218 u_boot_spl_unsigned: u-boot-spl {
219 no-expanded;
220 };
221 };
222 sysfw_gp {
223 filename = "sysfw.bin_gp";
224 ti-secure-rom {
225 content = <&ti_fs>;
226 core = "secure";
227 load = <0x40000>;
228 sw-rev = <CONFIG_K3_X509_SWRV>;
229 keyfile = "ti-degenerate-key.pem";
230 };
231 ti_fs: ti-fs.bin {
232 filename = "ti-sysfw/ti-fs-firmware-j721e-gp.bin";
233 type = "blob-ext";
234 optional;
235 };
236 };
237 itb_gp {
238 filename = "sysfw-j721e-gp-evm.itb";
239 symlink = "sysfw.itb";
240 fit {
241 description = "SYSFW and Config fragments";
242 #address-cells = <1>;
243 images {
244 sysfw.bin {
245 description = "sysfw";
246 type = "firmware";
247 arch = "arm";
248 compression = "none";
249 blob-ext {
250 filename = "sysfw.bin_gp";
251 };
252 };
253 board-cfg.bin {
254 description = "board-cfg";
255 type = "firmware";
256 arch = "arm";
257 compression = "none";
258 blob-ext {
259 filename = "board-cfg.bin";
260 };
261 };
262 pm-cfg.bin {
263 description = "pm-cfg";
264 type = "firmware";
265 arch = "arm";
266 compression = "none";
267 blob-ext {
268 filename = "pm-cfg.bin";
269 };
270 };
271 rm-cfg.bin {
272 description = "rm-cfg";
273 type = "firmware";
274 arch = "arm";
275 compression = "none";
276 blob-ext {
277 filename = "rm-cfg.bin";
278 };
279 };
280 sec-cfg.bin {
281 description = "sec-cfg";
282 type = "firmware";
283 arch = "arm";
284 compression = "none";
285 blob-ext {
286 filename = "sec-cfg.bin";
287 };
288 };
289 };
290 };
291 };
292};
293#endif
294
295#ifdef CONFIG_TARGET_J721E_A72_EVM
296
297#define SPL_NODTB "spl/u-boot-spl-nodtb.bin"
298#define SPL_J721E_EVM_DTB "spl/dts/k3-j721e-common-proc-board.dtb"
299#define SPL_J721E_SK_DTB "spl/dts/k3-j721e-sk.dtb"
300
301#define UBOOT_NODTB "u-boot-nodtb.bin"
Manorit Chawdhry64ebddb2023-07-14 11:22:38 +0530302#define J721E_EVM_DTB "u-boot.dtb"
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530303#define J721E_SK_DTB "arch/arm/dts/k3-j721e-sk.dtb"
304
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 {
313 filename = "tispl.bin";
314 pad-byte = <0xff>;
315
316 fit {
317 description = "Configuration to load ATF and SPL";
318 #address-cells = <1>;
319
320 images {
321
322 atf {
323 description = "ARM Trusted Firmware";
324 type = "firmware";
325 arch = "arm64";
326 compression = "none";
327 os = "arm-trusted-firmware";
328 load = <CONFIG_K3_ATF_LOAD_ADDR>;
329 entry = <CONFIG_K3_ATF_LOAD_ADDR>;
330 ti-secure {
331 content = <&atf>;
332 keyfile = "custMpk.pem";
333 };
334 atf: atf-bl31 {
335 };
336 };
337
338 tee {
339 description = "OP-TEE";
340 type = "tee";
341 arch = "arm64";
342 compression = "none";
343 os = "tee";
344 load = <0x9e800000>;
345 entry = <0x9e800000>;
346 ti-secure {
347 content = <&tee>;
348 keyfile = "custMpk.pem";
349 };
350 tee: tee-os {
351 };
352 };
353
354 dm {
355 description = "DM binary";
356 type = "firmware";
357 arch = "arm32";
358 compression = "none";
359 os = "DM";
360 load = <0x89000000>;
361 entry = <0x89000000>;
362 ti-secure {
363 content = <&dm>;
364 keyfile = "custMpk.pem";
365 };
366 dm: blob-ext {
367 filename = "ti-dm.bin";
368 };
369 };
370
371 spl {
372 description = "SPL (64-bit)";
373 type = "standalone";
374 os = "U-Boot";
375 arch = "arm64";
376 compression = "none";
377 load = <CONFIG_SPL_TEXT_BASE>;
378 entry = <CONFIG_SPL_TEXT_BASE>;
379 ti-secure {
380 content = <&u_boot_spl_nodtb>;
381 keyfile = "custMpk.pem";
382
383 };
384 u_boot_spl_nodtb: blob-ext {
385 filename = SPL_NODTB;
386 };
387 };
388
389 fdt-0 {
390 description = "k3-j721e-common-proc-board";
391 type = "flat_dt";
392 arch = "arm";
393 compression = "none";
394 ti-secure {
395 content = <&spl_j721e_evm_dtb>;
396 keyfile = "custMpk.pem";
397 };
398 spl_j721e_evm_dtb: blob-ext {
399 filename = SPL_J721E_EVM_DTB;
400 };
401 };
402
403 fdt-1 {
404 description = "k3-j721e-sk";
405 type = "flat_dt";
406 arch = "arm";
407 compression = "none";
408 ti-secure {
409 content = <&spl_j721e_sk_dtb>;
410 keyfile = "custMpk.pem";
411
412 };
413 spl_j721e_sk_dtb: blob-ext {
414 filename = SPL_J721E_SK_DTB;
415 };
416 };
417 };
418
419 configurations {
420 default = "conf-0";
421
422 conf-0 {
423 description = "k3-j721e-common-proc-board";
424 firmware = "atf";
425 loadables = "tee", "dm", "spl";
426 fdt = "fdt-0";
427 };
428
429 conf-1 {
430 description = "k3-j721e-sk";
431 firmware = "atf";
432 loadables = "tee", "dm", "spl";
433 fdt = "fdt-1";
434 };
435 };
436 };
437 };
438};
439
440&binman {
441 u-boot {
442 filename = "u-boot.img";
443 pad-byte = <0xff>;
444
445 fit {
446 description = "FIT image with multiple configurations";
447
448 images {
449 uboot {
450 description = "U-Boot for j721e board";
451 type = "firmware";
452 os = "u-boot";
453 arch = "arm";
454 compression = "none";
455 load = <CONFIG_TEXT_BASE>;
456 ti-secure {
457 content = <&u_boot_nodtb>;
458 keyfile = "custMpk.pem";
459 };
460 u_boot_nodtb: u-boot-nodtb {
461 };
462 hash {
463 algo = "crc32";
464 };
465 };
466
467 fdt-0 {
468 description = "k3-j721e-common-proc-board";
469 type = "flat_dt";
470 arch = "arm";
471 compression = "none";
472 ti-secure {
473 content = <&j721e_evm_dtb>;
474 keyfile = "custMpk.pem";
475
476 };
477 j721e_evm_dtb: blob-ext {
478 filename = J721E_EVM_DTB;
479 };
480 hash {
481 algo = "crc32";
482 };
483 };
484
485 fdt-1 {
486 description = "k3-j721e-sk";
487 type = "flat_dt";
488 arch = "arm";
489 compression = "none";
490 ti-secure {
491 content = <&j721e_sk_dtb>;
492 keyfile = "custMpk.pem";
493
494 };
495 j721e_sk_dtb: blob-ext {
496 filename = J721E_SK_DTB;
497 };
498 hash {
499 algo = "crc32";
500 };
501 };
502 };
503
504 configurations {
505 default = "conf-0";
506
507 conf-0 {
508 description = "k3-j721e-common-proc-board";
509 firmware = "uboot";
510 loadables = "uboot";
511 fdt = "fdt-0";
512 };
513
514 conf-1 {
515 description = "k3-j721e-sk";
516 firmware = "uboot";
517 loadables = "uboot";
518 fdt = "fdt-1";
519 };
520 };
521 };
522 };
523};
524
525&binman {
526 ti-spl_unsigned {
527 filename = "tispl.bin_unsigned";
528 pad-byte = <0xff>;
529
530 fit {
531 description = "Configuration to load ATF and SPL";
532 #address-cells = <1>;
533
534 images {
535
536 atf {
537 description = "ARM Trusted Firmware";
538 type = "firmware";
539 arch = "arm64";
540 compression = "none";
541 os = "arm-trusted-firmware";
542 load = <CONFIG_K3_ATF_LOAD_ADDR>;
543 entry = <CONFIG_K3_ATF_LOAD_ADDR>;
544 atf-bl31 {
545 filename = "bl31.bin";
546 };
547 };
548
549 tee {
550 description = "OP-TEE";
551 type = "tee";
552 arch = "arm64";
553 compression = "none";
554 os = "tee";
555 load = <0x9e800000>;
556 entry = <0x9e800000>;
557 tee-os {
558 filename = "tee-raw.bin";
559 };
560 };
561
562 dm {
563 description = "DM binary";
564 type = "firmware";
565 arch = "arm32";
566 compression = "none";
567 os = "DM";
568 load = <0x89000000>;
569 entry = <0x89000000>;
570 blob-ext {
571 filename = "ti-dm.bin";
572 };
573 };
574
575 spl {
576 description = "SPL (64-bit)";
577 type = "standalone";
578 os = "U-Boot";
579 arch = "arm64";
580 compression = "none";
581 load = <CONFIG_SPL_TEXT_BASE>;
582 entry = <CONFIG_SPL_TEXT_BASE>;
583 blob-ext {
584 filename = SPL_NODTB;
585 };
586 };
587
588 fdt-0 {
589 description = "k3-j721e-common-proc-board";
590 type = "flat_dt";
591 arch = "arm";
592 compression = "none";
593 blob {
594 filename = SPL_J721E_EVM_DTB;
595 };
596 };
597
598 fdt-1 {
599 description = "k3-j721e-sk";
600 type = "flat_dt";
601 arch = "arm";
602 compression = "none";
603 blob {
604 filename = SPL_J721E_SK_DTB;
605 };
606 };
607 };
608
609 configurations {
610 default = "conf-0";
611
612 conf-0 {
613 description = "k3-j721e-common-proc-board";
614 firmware = "atf";
615 loadables = "tee", "dm", "spl";
616 fdt = "fdt-0";
617 };
618
619 conf-1 {
620 description = "k3-j721e-sk";
621 firmware = "atf";
622 loadables = "tee", "dm", "spl";
623 fdt = "fdt-1";
624 };
625 };
626 };
627 };
628};
629
630&binman {
631 u-boot_unsigned {
632 filename = "u-boot.img_unsigned";
633 pad-byte = <0xff>;
634
635 fit {
636 description = "FIT image with multiple configurations";
637
638 images {
639 uboot {
640 description = "U-Boot for j721e board";
641 type = "firmware";
642 os = "u-boot";
643 arch = "arm";
644 compression = "none";
645 load = <CONFIG_TEXT_BASE>;
646 blob {
647 filename = UBOOT_NODTB;
648 };
649 hash {
650 algo = "crc32";
651 };
652 };
653
654 fdt-0 {
655 description = "k3-j721e-common-proc-board";
656 type = "flat_dt";
657 arch = "arm";
658 compression = "none";
659 blob {
660 filename = J721E_EVM_DTB;
661 };
662 hash {
663 algo = "crc32";
664 };
665 };
666
667 fdt-1 {
668 description = "k3-j721e-sk";
669 type = "flat_dt";
670 arch = "arm";
671 compression = "none";
672 blob {
673 filename = J721E_SK_DTB;
674 };
675 hash {
676 algo = "crc32";
677 };
678 };
679 };
680
681 configurations {
682 default = "conf-0";
683
684 conf-0 {
685 description = "k3-j721e-common-proc-board";
686 firmware = "uboot";
687 loadables = "uboot";
688 fdt = "fdt-0";
689 };
690
691 conf-1 {
692 description = "k3-j721e-sk";
693 firmware = "uboot";
694 loadables = "uboot";
695 fdt = "fdt-1";
696 };
697 };
698 };
699 };
700};
701#endif