blob: bffce03594cadd4a306146301da8b8379e3e20ed [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";
Neha Malcom Francisdf41fc62024-05-29 13:18:49 +0530310 optional;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530311 };
312 };
313 ti-spl {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530314 insert-template = <&ti_spl_template>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530315
316 fit {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530317 images {
Manorit Chawdhry5fa5cd42023-12-29 16:16:29 +0530318 atf {
319 ti-secure {
320 auth-in-place = <0xa02>;
321
322 firewall-257-0 {
323 /* cpu_0_cpu_0_msmc Background Firewall */
324 insert-template = <&firewall_bg_1>;
325 id = <257>;
326 region = <0>;
327 };
328
329 firewall-257-1 {
330 /* cpu_0_cpu_0_msmc Foreground Firewall */
331 insert-template = <&firewall_armv8_atf_fg>;
332 id = <257>;
333 region = <1>;
334 };
335
336 firewall-284-0 {
337 /* dru_0_msmc Background Firewall */
338 insert-template = <&firewall_bg_3>;
339 id = <284>;
340 region = <0>;
341 };
342
343 firewall-284-1 {
344 /* dru_0_msmc Foreground Firewall */
345 insert-template = <&firewall_armv8_atf_fg>;
346 id = <284>;
347 region = <1>;
348 };
349
350 /* firewall-4760-0 {
351 * nb_slv0__mem0 Background Firewall
352 * Already configured by the secure entity
353 * };
354 */
355
356 firewall-4760-1 {
357 /* nb_slv0__mem0 Foreground Firewall */
358 insert-template = <&firewall_armv8_atf_fg>;
359 id = <4760>;
360 region = <1>;
361 };
362
363 /* firewall-4761-0 {
364 * nb_slv1__mem0 Background Firewall
365 * Already configured by the secure entity
366 * };
367 */
368
369 firewall-4761-1 {
370 /* nb_slv1__mem0 Foreground Firewall */
371 insert-template = <&firewall_armv8_atf_fg>;
372 id = <4761>;
373 region = <1>;
374 };
375
376 };
377 };
378
379 tee {
380 ti-secure {
381 auth-in-place = <0xa02>;
382
383 /* cpu_0_cpu_0_msmc region 0 and 1 configured
384 * during ATF Firewalling
385 */
386
387 firewall-257-2 {
388 /* cpu_0_cpu_0_msmc Foreground Firewall */
389 insert-template = <&firewall_armv8_optee_fg>;
390 id = <257>;
391 region = <2>;
392 };
393
394 /* dru_0_msmc region 0 and 1 configured
395 * during ATF Firewalling
396 */
397
398 firewall-284-2 {
399 /* dru_0_msmc Foreground Firewall */
400 insert-template = <&firewall_armv8_optee_fg>;
401 id = <284>;
402 region = <2>;
403 };
404
405 firewall-4762-0 {
406 /* nb_slv2__mem0 Background Firewall */
407 insert-template = <&firewall_bg_3>;
408 id = <4762>;
409 region = <0>;
410 };
411
412 firewall-4762-1 {
413 /* nb_slv2__mem0 Foreground Firewall */
414 insert-template = <&firewall_armv8_optee_fg>;
415 id = <4762>;
416 region = <1>;
417 };
418
419 firewall-4763-0 {
420 /* nb_slv3__mem0 Background Firewall */
421 insert-template = <&firewall_bg_3>;
422 id = <4763>;
423 region = <0>;
424 };
425
426 firewall-4763-1 {
427 /* nb_slv3__mem0 Foreground Firewall */
428 insert-template = <&firewall_armv8_optee_fg>;
429 id = <4763>;
430 region = <1>;
431 };
432 };
433 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530434 dm {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530435 ti-secure {
436 content = <&dm>;
437 keyfile = "custMpk.pem";
438 };
Neha Malcom Francis82378212023-12-05 15:12:19 +0530439 dm: ti-dm {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530440 filename = "ti-dm.bin";
441 };
442 };
443
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530444 fdt-0 {
445 description = "k3-j721e-common-proc-board";
446 type = "flat_dt";
447 arch = "arm";
448 compression = "none";
449 ti-secure {
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530450 content = <&spl_j721e_dtb>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530451 keyfile = "custMpk.pem";
452 };
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530453 spl_j721e_dtb: blob-ext {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530454 filename = SPL_J721E_EVM_DTB;
455 };
456 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530457 };
458
459 configurations {
460 default = "conf-0";
461
462 conf-0 {
463 description = "k3-j721e-common-proc-board";
464 firmware = "atf";
465 loadables = "tee", "dm", "spl";
466 fdt = "fdt-0";
467 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530468 };
469 };
470 };
471};
472
473&binman {
474 u-boot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530475 insert-template = <&u_boot_template>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530476 fit {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530477
478 images {
479 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530480 description = "U-Boot for J721E Board";
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530481 };
482
483 fdt-0 {
484 description = "k3-j721e-common-proc-board";
485 type = "flat_dt";
486 arch = "arm";
487 compression = "none";
488 ti-secure {
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530489 content = <&j721e_dtb>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530490 keyfile = "custMpk.pem";
491
492 };
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530493 j721e_dtb: blob-ext {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530494 filename = J721E_EVM_DTB;
495 };
496 hash {
497 algo = "crc32";
498 };
499 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530500 };
501
502 configurations {
503 default = "conf-0";
504
505 conf-0 {
506 description = "k3-j721e-common-proc-board";
507 firmware = "uboot";
508 loadables = "uboot";
509 fdt = "fdt-0";
510 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530511 };
512 };
513 };
514};
515
516&binman {
517 ti-spl_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530518 insert-template = <&ti_spl_unsigned_template>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530519
520 fit {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530521 images {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530522 dm {
Neha Malcom Francis82378212023-12-05 15:12:19 +0530523 ti-dm {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530524 filename = "ti-dm.bin";
525 };
526 };
527
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530528 fdt-0 {
529 description = "k3-j721e-common-proc-board";
530 type = "flat_dt";
531 arch = "arm";
532 compression = "none";
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530533 spl_j721e_dtb_unsigned: blob {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530534 filename = SPL_J721E_EVM_DTB;
535 };
536 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530537 };
538
539 configurations {
540 default = "conf-0";
541
542 conf-0 {
543 description = "k3-j721e-common-proc-board";
544 firmware = "atf";
545 loadables = "tee", "dm", "spl";
546 fdt = "fdt-0";
547 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530548 };
549 };
550 };
551};
552
553&binman {
554 u-boot_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530555 insert-template = <&u_boot_unsigned_template>;
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530556
557 fit {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530558 images {
559 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530560 description = "U-Boot for J721E Board";
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530561 };
562
563 fdt-0 {
564 description = "k3-j721e-common-proc-board";
565 type = "flat_dt";
566 arch = "arm";
567 compression = "none";
Neha Malcom Francisa4515b02024-05-20 15:29:15 +0530568 j721e_dtb_unsigned: blob {
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530569 filename = J721E_EVM_DTB;
570 };
571 hash {
572 algo = "crc32";
573 };
574 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530575 };
576
577 configurations {
578 default = "conf-0";
579
580 conf-0 {
581 description = "k3-j721e-common-proc-board";
582 firmware = "uboot";
583 loadables = "uboot";
584 fdt = "fdt-0";
585 };
Neha Malcom Francis20a90042023-07-22 00:14:28 +0530586 };
587 };
588 };
589};
590#endif