blob: ef7d4594f69bcba8e0cc5a08d057c013c7329f84 [file] [log] [blame]
Neha Malcom Francis30dcda22023-07-22 00:14:30 +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 Francis30dcda22023-07-22 00:14:30 +05304 */
5
6#include "k3-binman.dtsi"
7
8#ifdef CONFIG_TARGET_J7200_R5_EVM
9
10&bcfg_yaml {
11 config = "board-cfg_j7200.yaml";
12};
13
14&rcfg_yaml {
15 config = "rm-cfg_j7200.yaml";
16};
17
18&pcfg_yaml {
19 config = "pm-cfg_j7200.yaml";
20};
21
22&scfg_yaml {
23 config = "sec-cfg_j7200.yaml";
24};
25
26&bcfg_yaml_tifs {
27 config = "board-cfg_j7200.yaml";
28};
29
30&rcfg_yaml_tifs {
31 config = "rm-cfg_j7200.yaml";
32};
33
34&pcfg_yaml_tifs {
35 config = "pm-cfg_j7200.yaml";
36};
37
38&scfg_yaml_tifs {
39 config = "sec-cfg_j7200.yaml";
40};
41
42&rcfg_yaml_dm {
43 config = "rm-cfg_j7200.yaml";
44};
45
46&pcfg_yaml_dm {
47 config = "pm-cfg_j7200.yaml";
48};
49
50&binman {
Tom Rinidec7ea02024-05-20 13:35:03 -060051 tiboot3-j7200-hs-evm.bin {
52 filename = "tiboot3-j7200-hs-evm.bin";
53 ti-secure-rom {
54 content = <&u_boot_spl_sr1>, <&ti_fs_enc_sr1>, <&combined_tifs_cfg_sr1>,
55 <&combined_dm_cfg_sr1>, <&sysfw_inner_cert_sr1>;
56 combined;
57 dm-data;
58 core-opts = <2>;
59 sysfw-inner-cert;
60 keyfile = "custMpk.pem";
61 sw-rev = <1>;
62 content-sbl = <&u_boot_spl_sr1>;
63 content-sysfw = <&ti_fs_enc_sr1>;
64 content-sysfw-data = <&combined_tifs_cfg_sr1>;
65 content-sysfw-inner-cert = <&sysfw_inner_cert_sr1>;
66 content-dm-data = <&combined_dm_cfg_sr1>;
67 load = <0x41c00000>;
68 load-sysfw = <0x40000>;
69 load-sysfw-data = <0x7f000>;
70 load-dm-data = <0x41c80000>;
71 };
72 u_boot_spl_sr1: u-boot-spl {
73 no-expanded;
74 };
75 ti_fs_enc_sr1: ti-fs-enc.bin {
76 filename = "ti-sysfw/ti-fs-firmware-j7200-hs-enc.bin";
77 type = "blob-ext";
78 optional;
79 };
80 combined_tifs_cfg_sr1: combined-tifs-cfg.bin {
81 filename = "combined-tifs-cfg.bin";
82 type = "blob-ext";
83 };
84 sysfw_inner_cert_sr1: sysfw-inner-cert {
85 filename = "ti-sysfw/ti-fs-firmware-j7200-hs-cert.bin";
86 type = "blob-ext";
87 optional;
88 };
89 combined_dm_cfg_sr1: combined-dm-cfg.bin {
90 filename = "combined-dm-cfg.bin";
91 type = "blob-ext";
92 };
93 };
94};
95
96&binman {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +053097 tiboot3-j7200_sr2-hs-evm.bin {
98 filename = "tiboot3-j7200_sr2-hs-evm.bin";
99 ti-secure-rom {
100 content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>,
101 <&combined_dm_cfg>, <&sysfw_inner_cert>;
102 combined;
103 dm-data;
104 sysfw-inner-cert;
105 keyfile = "custMpk.pem";
106 sw-rev = <1>;
107 content-sbl = <&u_boot_spl>;
108 content-sysfw = <&ti_fs_enc>;
109 content-sysfw-data = <&combined_tifs_cfg>;
110 content-sysfw-inner-cert = <&sysfw_inner_cert>;
111 content-dm-data = <&combined_dm_cfg>;
112 load = <0x41c00000>;
113 load-sysfw = <0x40000>;
114 load-sysfw-data = <0x7f000>;
115 load-dm-data = <0x41c80000>;
116 };
117 u_boot_spl: u-boot-spl {
118 no-expanded;
119 };
120 ti_fs_enc: ti-fs-enc.bin {
121 filename = "ti-sysfw/ti-fs-firmware-j7200_sr2-hs-enc.bin";
122 type = "blob-ext";
123 optional;
124 };
125 combined_tifs_cfg: combined-tifs-cfg.bin {
126 filename = "combined-tifs-cfg.bin";
127 type = "blob-ext";
128 };
129 sysfw_inner_cert: sysfw-inner-cert {
130 filename = "ti-sysfw/ti-fs-firmware-j7200_sr2-hs-cert.bin";
131 type = "blob-ext";
132 optional;
133 };
134 combined_dm_cfg: combined-dm-cfg.bin {
135 filename = "combined-dm-cfg.bin";
136 type = "blob-ext";
137 };
138 };
139};
140
141&binman {
Tom Rinidec7ea02024-05-20 13:35:03 -0600142 tiboot3-j7200-hs-fs-evm.bin {
143 filename = "tiboot3-j7200-hs-fs-evm.bin";
144 ti-secure-rom {
145 content = <&u_boot_spl_fs_sr1>, <&ti_fs_enc_fs_sr1>,
146 <&combined_tifs_cfg_fs_sr1>, <&combined_dm_cfg_fs_sr1>,
147 <&sysfw_inner_cert_fs_sr1>;
148 combined;
149 dm-data;
150 core-opts = <2>;
151 sysfw-inner-cert;
152 keyfile = "custMpk.pem";
153 sw-rev = <1>;
154 content-sbl = <&u_boot_spl_fs_sr1>;
155 content-sysfw = <&ti_fs_enc_fs_sr1>;
156 content-sysfw-data = <&combined_tifs_cfg_fs_sr1>;
157 content-sysfw-inner-cert = <&sysfw_inner_cert_fs_sr1>;
158 content-dm-data = <&combined_dm_cfg_fs_sr1>;
159 load = <0x41c00000>;
160 load-sysfw = <0x40000>;
161 load-sysfw-data = <0x7f000>;
162 load-dm-data = <0x41c80000>;
163 };
164 u_boot_spl_fs_sr1: u-boot-spl {
165 no-expanded;
166 };
167 ti_fs_enc_fs_sr1: ti-fs-enc.bin {
168 filename = "ti-sysfw/ti-fs-firmware-j7200-hs-fs-enc.bin";
169 type = "blob-ext";
170 optional;
171 };
172 combined_tifs_cfg_fs_sr1: combined-tifs-cfg.bin {
173 filename = "combined-tifs-cfg.bin";
174 type = "blob-ext";
175 };
176 sysfw_inner_cert_fs_sr1: sysfw-inner-cert {
177 filename = "ti-sysfw/ti-fs-firmware-j7200-hs-fs-cert.bin";
178 type = "blob-ext";
179 optional;
180 };
181 combined_dm_cfg_fs_sr1: combined-dm-cfg.bin {
182 filename = "combined-dm-cfg.bin";
183 type = "blob-ext";
184 };
185 };
186};
187
188&binman {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530189 tiboot3-j7200_sr2-hs-fs-evm.bin {
190 filename = "tiboot3-j7200_sr2-hs-fs-evm.bin";
191 ti-secure-rom {
192 content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>,
193 <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>;
194 combined;
195 dm-data;
196 sysfw-inner-cert;
197 keyfile = "custMpk.pem";
198 sw-rev = <1>;
199 content-sbl = <&u_boot_spl_fs>;
200 content-sysfw = <&ti_fs_enc_fs>;
201 content-sysfw-data = <&combined_tifs_cfg_fs>;
202 content-sysfw-inner-cert = <&sysfw_inner_cert_fs>;
203 content-dm-data = <&combined_dm_cfg_fs>;
204 load = <0x41c00000>;
205 load-sysfw = <0x40000>;
206 load-sysfw-data = <0x7f000>;
207 load-dm-data = <0x41c80000>;
208 };
209 u_boot_spl_fs: u-boot-spl {
210 no-expanded;
211 };
212 ti_fs_enc_fs: ti-fs-enc.bin {
213 filename = "ti-sysfw/ti-fs-firmware-j7200_sr2-hs-fs-enc.bin";
214 type = "blob-ext";
215 optional;
216 };
217 combined_tifs_cfg_fs: combined-tifs-cfg.bin {
218 filename = "combined-tifs-cfg.bin";
219 type = "blob-ext";
220 };
221 sysfw_inner_cert_fs: sysfw-inner-cert {
222 filename = "ti-sysfw/ti-fs-firmware-j7200_sr2-hs-fs-cert.bin";
223 type = "blob-ext";
224 optional;
225 };
226 combined_dm_cfg_fs: combined-dm-cfg.bin {
227 filename = "combined-dm-cfg.bin";
228 type = "blob-ext";
229 };
230 };
231};
232
233&binman {
234 tiboot3-j7200-gp-evm.bin {
235 filename = "tiboot3-j7200-gp-evm.bin";
236 symlink = "tiboot3.bin";
237 ti-secure-rom {
238 content = <&u_boot_spl_unsigned>, <&ti_fs_gp>,
239 <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>;
240 combined;
241 dm-data;
242 content-sbl = <&u_boot_spl_unsigned>;
243 load = <0x41c00000>;
244 content-sysfw = <&ti_fs_gp>;
245 load-sysfw = <0x40000>;
246 content-sysfw-data = <&combined_tifs_cfg_gp>;
247 load-sysfw-data = <0x7f000>;
248 content-dm-data = <&combined_dm_cfg_gp>;
249 load-dm-data = <0x41c80000>;
250 sw-rev = <1>;
251 keyfile = "ti-degenerate-key.pem";
252 };
253 u_boot_spl_unsigned: u-boot-spl {
254 no-expanded;
255 };
256 ti_fs_gp: ti-fs-gp.bin {
257 filename = "ti-sysfw/ti-fs-firmware-j7200-gp.bin";
258 type = "blob-ext";
259 optional;
260 };
261 combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin {
262 filename = "combined-tifs-cfg.bin";
263 type = "blob-ext";
264 };
265 combined_dm_cfg_gp: combined-dm-cfg-gp.bin {
266 filename = "combined-dm-cfg.bin";
267 type = "blob-ext";
268 };
269 };
270};
271
272#endif
273
274#ifdef CONFIG_TARGET_J7200_A72_EVM
275
Aniket Limaye38047902024-05-21 11:18:42 +0530276#define SPL_J7200_EVM_DTB "spl/dts/ti/k3-j7200-common-proc-board.dtb"
Manorit Chawdhry64ebddb2023-07-14 11:22:38 +0530277#define J7200_EVM_DTB "u-boot.dtb"
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530278
279&binman {
280 ti-dm {
281 filename = "ti-dm.bin";
282 blob-ext {
283 filename = "ti-dm/j7200/ipc_echo_testb_mcu1_0_release_strip.xer5f";
Neha Malcom Francisdf41fc62024-05-29 13:18:49 +0530284 optional;
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530285 };
286 };
287 ti-spl {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530288 insert-template = <&ti_spl_template>;
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530289
290 fit {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530291 images {
Manorit Chawdhryebea8982023-12-29 16:16:31 +0530292 atf {
293 ti-secure {
294 auth-in-place = <0xa02>;
295
296 firewall-257-0 {
297 /* cpu_0_cpu_0_msmc Background Firewall */
298 insert-template = <&firewall_bg_1>;
299 id = <257>;
300 region = <0>;
301 };
302
303 firewall-257-1 {
304 /* cpu_0_cpu_0_msmc Foreground Firewall */
305 insert-template = <&firewall_armv8_atf_fg>;
306 id = <257>;
307 region = <1>;
308 };
309
310 /* firewall-4760-0 {
311 * nb_slv0__mem0 Background Firewall
312 * Already configured by the secure entity
313 * };
314 */
315
316 firewall-4760-1 {
317 /* nb_slv0__mem0 Foreground Firewall */
318 insert-template = <&firewall_armv8_atf_fg>;
319 id = <4760>;
320 region = <1>;
321 };
322
323 /* firewall-4761-0 {
324 * nb_slv1__mem0 Background Firewall
325 * Already configured by the secure entity
326 * };
327 */
328
329 firewall-4761-1 {
330 /* nb_slv1__mem0 Foreground Firewall */
331 insert-template = <&firewall_armv8_atf_fg>;
332 id = <4761>;
333 region = <1>;
334 };
335 };
336 };
337
338 tee {
339 ti-secure {
340 auth-in-place = <0xa02>;
341
342 /* cpu_0_cpu_0_msmc region 0 and 1 configured
343 * during ATF Firewalling
344 */
345
346 firewall-257-2 {
347 /* cpu_0_cpu_0_msmc Foreground Firewall */
348 insert-template = <&firewall_armv8_optee_fg>;
349 id = <257>;
350 region = <2>;
351 };
352
353 firewall-4762-0 {
354 /* nb_slv2__mem0 Background Firewall - 0 */
355 insert-template = <&firewall_bg_3>;
356 id = <4762>;
357 region = <0>;
358 };
359
360 firewall-4762-1 {
361 /* nb_slv2__mem0 Foreground Firewall */
362 insert-template = <&firewall_armv8_optee_fg>;
363 id = <4762>;
364 region = <1>;
365 };
366
367 firewall-4763-0 {
368 /* nb_slv3__mem0 Background Firewall - 0 */
369 insert-template = <&firewall_bg_3>;
370 id = <4763>;
371 region = <0>;
372 };
373
374 firewall-4763-1 {
375 /* nb_slv3__mem0 Foreground Firewall */
376 insert-template = <&firewall_armv8_optee_fg>;
377 id = <4763>;
378 region = <1>;
379 };
380 };
381 };
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530382 dm {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530383 ti-secure {
384 content = <&dm>;
385 keyfile = "custMpk.pem";
386 };
Neha Malcom Francis82378212023-12-05 15:12:19 +0530387 dm: ti-dm {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530388 filename = "ti-dm.bin";
389 };
390 };
391
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530392 fdt-0 {
393 description = "k3-j7200-common-proc-board";
394 type = "flat_dt";
395 arch = "arm";
396 compression = "none";
397 ti-secure {
398 content = <&spl_j7200_evm_dtb>;
399 keyfile = "custMpk.pem";
400 };
401 spl_j7200_evm_dtb: blob-ext {
402 filename = SPL_J7200_EVM_DTB;
403 };
404 };
405
406 };
407
408 configurations {
409 default = "conf-0";
410
411 conf-0 {
412 description = "k3-j7200-common-proc-board";
413 firmware = "atf";
414 loadables = "tee", "dm", "spl";
415 fdt = "fdt-0";
416 };
417 };
418 };
419 };
420};
421
422&binman {
423 u-boot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530424 insert-template = <&u_boot_template>;
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530425
426 fit {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530427 images {
428 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530429 description = "U-Boot for J7200 Board";
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530430 };
431
432 fdt-0 {
433 description = "k3-j7200-common-proc-board";
434 type = "flat_dt";
435 arch = "arm";
436 compression = "none";
437 ti-secure {
438 content = <&j7200_evm_dtb>;
439 keyfile = "custMpk.pem";
440 };
441 j7200_evm_dtb: blob-ext {
442 filename = J7200_EVM_DTB;
443 };
444 hash {
445 algo = "crc32";
446 };
447 };
448 };
449
450 configurations {
451 default = "conf-0";
452
453 conf-0 {
454 description = "k3-j7200-common-proc-board";
455 firmware = "uboot";
456 loadables = "uboot";
457 fdt = "fdt-0";
458 };
459
460 };
461 };
462 };
463};
464
465&binman {
466 ti-spl_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530467 insert-template = <&ti_spl_unsigned_template>;
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530468
469 fit {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530470 images {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530471 dm {
Neha Malcom Francis82378212023-12-05 15:12:19 +0530472 ti-dm {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530473 filename = "ti-dm.bin";
474 };
475 };
476
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530477 fdt-1 {
478 description = "k3-j7200-common-proc-board";
479 type = "flat_dt";
480 arch = "arm";
481 compression = "none";
482 blob {
483 filename = SPL_J7200_EVM_DTB;
484 };
485 };
486 };
487
488 configurations {
489 default = "conf-1";
490
491 conf-1 {
492 description = "k3-j7200-common-proc-board";
493 firmware = "atf";
494 loadables = "tee", "dm", "spl";
495 fdt = "fdt-1";
496 };
497 };
498 };
499 };
500};
501
502&binman {
503 u-boot_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530504 insert-template = <&u_boot_unsigned_template>;
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530505
506 fit {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530507 images {
508 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530509 description = "U-Boot for J7200 Board";
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530510 };
511
512 fdt-1 {
513 description = "k3-j7200-common-proc-board";
514 type = "flat_dt";
515 arch = "arm";
516 compression = "none";
517 blob {
518 filename = J7200_EVM_DTB;
519 };
520 hash {
521 algo = "crc32";
522 };
523 };
524 };
525
526 configurations {
527 default = "conf-1";
528
529 conf-1 {
530 description = "k3-j7200-common-proc-board";
531 firmware = "uboot";
532 loadables = "uboot";
533 fdt = "fdt-1";
534 };
535 };
536 };
537 };
538};
539#endif