blob: 0d607296f0e208d12185b3241cc6d445784accf7 [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};
Jonathan Humphreys324cb4d2024-05-31 17:51:05 -0500298
299#include "k3-binman-capsule-r5.dtsi"
300
301// Capsule update GUIDs in string form. See j721e_evm.h
302#define J721E_SK_TIBOOT3_IMAGE_GUID_STR "e672b518-7cd7-4014-bd8d-40724d0ad4dc"
303#define J721E_SK_SYSFW_IMAGE_GUID_STR "6fd10680-361b-431f-80aa-899455819e11"
304
305&capsule_tiboot3 {
306 efi-capsule {
307 image-guid = J721E_SK_TIBOOT3_IMAGE_GUID_STR;
308 };
309};
310
311&binman {
312 capsule-sysfw {
313 filename = "sysfw-capsule.bin";
314 efi-capsule {
315 image-index = <0x4>;
316 image-guid = J721E_SK_SYSFW_IMAGE_GUID_STR;
317 private-key = "arch/arm/mach-k3/keys/custMpk.pem";
318 public-key-cert = "arch/arm/mach-k3/keys/custMpk.crt";
319 monotonic-count = <0x1>;
320
321 blob {
322 filename = "sysfw.itb";
323 };
324 };
325 };
326};
327
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530328#endif
329
330#ifdef CONFIG_TARGET_J721E_A72_EVM
331
Neha Malcom Francis154bdbf2024-05-20 15:29:16 +0530332#define SPL_J721E_EVM_DTB "spl/dts/ti/k3-j721e-common-proc-board.dtb"
Manorit Chawdhry64ebddb2023-07-14 11:22:38 +0530333#define J721E_EVM_DTB "u-boot.dtb"
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530334
335&binman {
336 ti-dm {
337 filename = "ti-dm.bin";
338 blob-ext {
339 filename = "ti-dm/j721e/ipc_echo_testb_mcu1_0_release_strip.xer5f";
Neha Malcom Francisdf41fc62024-05-29 13:18:49 +0530340 optional;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530341 };
342 };
343 ti-spl {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530344 insert-template = <&ti_spl_template>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530345
346 fit {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530347 images {
Manorit Chawdhry5fa5cd42023-12-29 16:16:29 +0530348 atf {
349 ti-secure {
350 auth-in-place = <0xa02>;
351
352 firewall-257-0 {
353 /* cpu_0_cpu_0_msmc Background Firewall */
354 insert-template = <&firewall_bg_1>;
355 id = <257>;
356 region = <0>;
357 };
358
359 firewall-257-1 {
360 /* cpu_0_cpu_0_msmc Foreground Firewall */
361 insert-template = <&firewall_armv8_atf_fg>;
362 id = <257>;
363 region = <1>;
364 };
365
366 firewall-284-0 {
367 /* dru_0_msmc Background Firewall */
368 insert-template = <&firewall_bg_3>;
369 id = <284>;
370 region = <0>;
371 };
372
373 firewall-284-1 {
374 /* dru_0_msmc Foreground Firewall */
375 insert-template = <&firewall_armv8_atf_fg>;
376 id = <284>;
377 region = <1>;
378 };
379
380 /* firewall-4760-0 {
381 * nb_slv0__mem0 Background Firewall
382 * Already configured by the secure entity
383 * };
384 */
385
386 firewall-4760-1 {
387 /* nb_slv0__mem0 Foreground Firewall */
388 insert-template = <&firewall_armv8_atf_fg>;
389 id = <4760>;
390 region = <1>;
391 };
392
393 /* firewall-4761-0 {
394 * nb_slv1__mem0 Background Firewall
395 * Already configured by the secure entity
396 * };
397 */
398
399 firewall-4761-1 {
400 /* nb_slv1__mem0 Foreground Firewall */
401 insert-template = <&firewall_armv8_atf_fg>;
402 id = <4761>;
403 region = <1>;
404 };
405
406 };
407 };
408
409 tee {
410 ti-secure {
411 auth-in-place = <0xa02>;
412
413 /* cpu_0_cpu_0_msmc region 0 and 1 configured
414 * during ATF Firewalling
415 */
416
417 firewall-257-2 {
418 /* cpu_0_cpu_0_msmc Foreground Firewall */
419 insert-template = <&firewall_armv8_optee_fg>;
420 id = <257>;
421 region = <2>;
422 };
423
424 /* dru_0_msmc region 0 and 1 configured
425 * during ATF Firewalling
426 */
427
428 firewall-284-2 {
429 /* dru_0_msmc Foreground Firewall */
430 insert-template = <&firewall_armv8_optee_fg>;
431 id = <284>;
432 region = <2>;
433 };
434
435 firewall-4762-0 {
436 /* nb_slv2__mem0 Background Firewall */
437 insert-template = <&firewall_bg_3>;
438 id = <4762>;
439 region = <0>;
440 };
441
442 firewall-4762-1 {
443 /* nb_slv2__mem0 Foreground Firewall */
444 insert-template = <&firewall_armv8_optee_fg>;
445 id = <4762>;
446 region = <1>;
447 };
448
449 firewall-4763-0 {
450 /* nb_slv3__mem0 Background Firewall */
451 insert-template = <&firewall_bg_3>;
452 id = <4763>;
453 region = <0>;
454 };
455
456 firewall-4763-1 {
457 /* nb_slv3__mem0 Foreground Firewall */
458 insert-template = <&firewall_armv8_optee_fg>;
459 id = <4763>;
460 region = <1>;
461 };
462 };
463 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530464 dm {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530465 ti-secure {
466 content = <&dm>;
467 keyfile = "custMpk.pem";
468 };
Neha Malcom Francis82378212023-12-05 15:12:19 +0530469 dm: ti-dm {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530470 filename = "ti-dm.bin";
471 };
472 };
473
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530474 fdt-0 {
475 description = "k3-j721e-common-proc-board";
476 type = "flat_dt";
477 arch = "arm";
478 compression = "none";
479 ti-secure {
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530480 content = <&spl_j721e_dtb>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530481 keyfile = "custMpk.pem";
482 };
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530483 spl_j721e_dtb: blob-ext {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530484 filename = SPL_J721E_EVM_DTB;
485 };
486 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530487 };
488
489 configurations {
490 default = "conf-0";
491
492 conf-0 {
493 description = "k3-j721e-common-proc-board";
494 firmware = "atf";
495 loadables = "tee", "dm", "spl";
496 fdt = "fdt-0";
497 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530498 };
499 };
500 };
501};
502
503&binman {
504 u-boot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530505 insert-template = <&u_boot_template>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530506 fit {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530507
508 images {
509 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530510 description = "U-Boot for J721E Board";
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530511 };
512
513 fdt-0 {
514 description = "k3-j721e-common-proc-board";
515 type = "flat_dt";
516 arch = "arm";
517 compression = "none";
518 ti-secure {
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530519 content = <&j721e_dtb>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530520 keyfile = "custMpk.pem";
521
522 };
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530523 j721e_dtb: blob-ext {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530524 filename = J721E_EVM_DTB;
525 };
526 hash {
527 algo = "crc32";
528 };
529 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530530 };
531
532 configurations {
533 default = "conf-0";
534
535 conf-0 {
536 description = "k3-j721e-common-proc-board";
537 firmware = "uboot";
538 loadables = "uboot";
539 fdt = "fdt-0";
540 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530541 };
542 };
543 };
544};
545
546&binman {
547 ti-spl_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530548 insert-template = <&ti_spl_unsigned_template>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530549
550 fit {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530551 images {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530552 dm {
Neha Malcom Francis82378212023-12-05 15:12:19 +0530553 ti-dm {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530554 filename = "ti-dm.bin";
555 };
556 };
557
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530558 fdt-0 {
559 description = "k3-j721e-common-proc-board";
560 type = "flat_dt";
561 arch = "arm";
562 compression = "none";
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530563 spl_j721e_dtb_unsigned: blob {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530564 filename = SPL_J721E_EVM_DTB;
565 };
566 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530567 };
568
569 configurations {
570 default = "conf-0";
571
572 conf-0 {
573 description = "k3-j721e-common-proc-board";
574 firmware = "atf";
575 loadables = "tee", "dm", "spl";
576 fdt = "fdt-0";
577 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530578 };
579 };
580 };
581};
582
583&binman {
584 u-boot_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530585 insert-template = <&u_boot_unsigned_template>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530586
587 fit {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530588 images {
589 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530590 description = "U-Boot for J721E Board";
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530591 };
592
593 fdt-0 {
594 description = "k3-j721e-common-proc-board";
595 type = "flat_dt";
596 arch = "arm";
597 compression = "none";
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530598 j721e_dtb_unsigned: blob {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530599 filename = J721E_EVM_DTB;
600 };
601 hash {
602 algo = "crc32";
603 };
604 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530605 };
606
607 configurations {
608 default = "conf-0";
609
610 conf-0 {
611 description = "k3-j721e-common-proc-board";
612 firmware = "uboot";
613 loadables = "uboot";
614 fdt = "fdt-0";
615 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530616 };
617 };
618 };
619};
Jonathan Humphreys324cb4d2024-05-31 17:51:05 -0500620
621#include "k3-binman-capsule.dtsi"
622
623// Capsule update GUIDs in string form. See j721e_evm.h
624#define J721E_SK_SPL_IMAGE_GUID_STR "86f710ad-10cf-46ea-ac67-856ae06efad2"
625#define J721E_SK_UBOOT_IMAGE_GUID_STR "81b58fb0-3b00-4add-a20a-c185bbaca1ed"
626
627&capsule_tispl {
628 efi-capsule {
629 image-guid = J721E_SK_SPL_IMAGE_GUID_STR;
630 };
631};
632
633&capsule_uboot {
634 efi-capsule {
635 image-guid = J721E_SK_UBOOT_IMAGE_GUID_STR;
636 };
637};
638
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530639#endif