blob: e79ba3b3775eb8330c9441997f425ad45aae856c [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";
284 };
285 };
286 ti-spl {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530287 insert-template = <&ti_spl_template>;
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530288
289 fit {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530290 images {
Manorit Chawdhryebea8982023-12-29 16:16:31 +0530291 atf {
292 ti-secure {
293 auth-in-place = <0xa02>;
294
295 firewall-257-0 {
296 /* cpu_0_cpu_0_msmc Background Firewall */
297 insert-template = <&firewall_bg_1>;
298 id = <257>;
299 region = <0>;
300 };
301
302 firewall-257-1 {
303 /* cpu_0_cpu_0_msmc Foreground Firewall */
304 insert-template = <&firewall_armv8_atf_fg>;
305 id = <257>;
306 region = <1>;
307 };
308
309 /* firewall-4760-0 {
310 * nb_slv0__mem0 Background Firewall
311 * Already configured by the secure entity
312 * };
313 */
314
315 firewall-4760-1 {
316 /* nb_slv0__mem0 Foreground Firewall */
317 insert-template = <&firewall_armv8_atf_fg>;
318 id = <4760>;
319 region = <1>;
320 };
321
322 /* firewall-4761-0 {
323 * nb_slv1__mem0 Background Firewall
324 * Already configured by the secure entity
325 * };
326 */
327
328 firewall-4761-1 {
329 /* nb_slv1__mem0 Foreground Firewall */
330 insert-template = <&firewall_armv8_atf_fg>;
331 id = <4761>;
332 region = <1>;
333 };
334 };
335 };
336
337 tee {
338 ti-secure {
339 auth-in-place = <0xa02>;
340
341 /* cpu_0_cpu_0_msmc region 0 and 1 configured
342 * during ATF Firewalling
343 */
344
345 firewall-257-2 {
346 /* cpu_0_cpu_0_msmc Foreground Firewall */
347 insert-template = <&firewall_armv8_optee_fg>;
348 id = <257>;
349 region = <2>;
350 };
351
352 firewall-4762-0 {
353 /* nb_slv2__mem0 Background Firewall - 0 */
354 insert-template = <&firewall_bg_3>;
355 id = <4762>;
356 region = <0>;
357 };
358
359 firewall-4762-1 {
360 /* nb_slv2__mem0 Foreground Firewall */
361 insert-template = <&firewall_armv8_optee_fg>;
362 id = <4762>;
363 region = <1>;
364 };
365
366 firewall-4763-0 {
367 /* nb_slv3__mem0 Background Firewall - 0 */
368 insert-template = <&firewall_bg_3>;
369 id = <4763>;
370 region = <0>;
371 };
372
373 firewall-4763-1 {
374 /* nb_slv3__mem0 Foreground Firewall */
375 insert-template = <&firewall_armv8_optee_fg>;
376 id = <4763>;
377 region = <1>;
378 };
379 };
380 };
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530381 dm {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530382 ti-secure {
383 content = <&dm>;
384 keyfile = "custMpk.pem";
385 };
Neha Malcom Francis82378212023-12-05 15:12:19 +0530386 dm: ti-dm {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530387 filename = "ti-dm.bin";
388 };
389 };
390
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530391 fdt-0 {
392 description = "k3-j7200-common-proc-board";
393 type = "flat_dt";
394 arch = "arm";
395 compression = "none";
396 ti-secure {
397 content = <&spl_j7200_evm_dtb>;
398 keyfile = "custMpk.pem";
399 };
400 spl_j7200_evm_dtb: blob-ext {
401 filename = SPL_J7200_EVM_DTB;
402 };
403 };
404
405 };
406
407 configurations {
408 default = "conf-0";
409
410 conf-0 {
411 description = "k3-j7200-common-proc-board";
412 firmware = "atf";
413 loadables = "tee", "dm", "spl";
414 fdt = "fdt-0";
415 };
416 };
417 };
418 };
419};
420
421&binman {
422 u-boot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530423 insert-template = <&u_boot_template>;
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530424
425 fit {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530426 images {
427 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530428 description = "U-Boot for J7200 Board";
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530429 };
430
431 fdt-0 {
432 description = "k3-j7200-common-proc-board";
433 type = "flat_dt";
434 arch = "arm";
435 compression = "none";
436 ti-secure {
437 content = <&j7200_evm_dtb>;
438 keyfile = "custMpk.pem";
439 };
440 j7200_evm_dtb: blob-ext {
441 filename = J7200_EVM_DTB;
442 };
443 hash {
444 algo = "crc32";
445 };
446 };
447 };
448
449 configurations {
450 default = "conf-0";
451
452 conf-0 {
453 description = "k3-j7200-common-proc-board";
454 firmware = "uboot";
455 loadables = "uboot";
456 fdt = "fdt-0";
457 };
458
459 };
460 };
461 };
462};
463
464&binman {
465 ti-spl_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530466 insert-template = <&ti_spl_unsigned_template>;
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530467
468 fit {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530469 images {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530470 dm {
Neha Malcom Francis82378212023-12-05 15:12:19 +0530471 ti-dm {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530472 filename = "ti-dm.bin";
473 };
474 };
475
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530476 fdt-1 {
477 description = "k3-j7200-common-proc-board";
478 type = "flat_dt";
479 arch = "arm";
480 compression = "none";
481 blob {
482 filename = SPL_J7200_EVM_DTB;
483 };
484 };
485 };
486
487 configurations {
488 default = "conf-1";
489
490 conf-1 {
491 description = "k3-j7200-common-proc-board";
492 firmware = "atf";
493 loadables = "tee", "dm", "spl";
494 fdt = "fdt-1";
495 };
496 };
497 };
498 };
499};
500
501&binman {
502 u-boot_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530503 insert-template = <&u_boot_unsigned_template>;
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530504
505 fit {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530506 images {
507 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530508 description = "U-Boot for J7200 Board";
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530509 };
510
511 fdt-1 {
512 description = "k3-j7200-common-proc-board";
513 type = "flat_dt";
514 arch = "arm";
515 compression = "none";
516 blob {
517 filename = J7200_EVM_DTB;
518 };
519 hash {
520 algo = "crc32";
521 };
522 };
523 };
524
525 configurations {
526 default = "conf-1";
527
528 conf-1 {
529 description = "k3-j7200-common-proc-board";
530 firmware = "uboot";
531 loadables = "uboot";
532 fdt = "fdt-1";
533 };
534 };
535 };
536 };
537};
538#endif