blob: 7efb135bdff94266efc59b2b2d857218d9692296 [file] [log] [blame]
Neha Malcom Francis9409fb62023-07-22 00:14:36 +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_J721S2_R5_EVM
9
10&binman {
11 tiboot3-j721s2-hs-evm.bin {
12 filename = "tiboot3-j721s2-hs-evm.bin";
13 ti-secure-rom {
14 content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>,
15 <&combined_dm_cfg>, <&sysfw_inner_cert>;
16 combined;
17 dm-data;
18 sysfw-inner-cert;
19 keyfile = "custMpk.pem";
20 sw-rev = <1>;
21 content-sbl = <&u_boot_spl>;
22 content-sysfw = <&ti_fs_enc>;
23 content-sysfw-data = <&combined_tifs_cfg>;
24 content-sysfw-inner-cert = <&sysfw_inner_cert>;
25 content-dm-data = <&combined_dm_cfg>;
26 load = <0x41c00000>;
27 load-sysfw = <0x40000>;
28 load-sysfw-data = <0x67000>;
29 load-dm-data = <0x41c80000>;
30 };
31 u_boot_spl: u-boot-spl {
32 no-expanded;
33 };
34 ti_fs_enc: ti-fs-enc.bin {
35 filename = "ti-sysfw/ti-fs-firmware-j721s2-hs-enc.bin";
36 type = "blob-ext";
37 optional;
38 };
39 combined_tifs_cfg: combined-tifs-cfg.bin {
40 filename = "combined-tifs-cfg.bin";
41 type = "blob-ext";
42 };
43 sysfw_inner_cert: sysfw-inner-cert {
44 filename = "ti-sysfw/ti-fs-firmware-j721s2-hs-cert.bin";
45 type = "blob-ext";
46 optional;
47 };
48 combined_dm_cfg: combined-dm-cfg.bin {
49 filename = "combined-dm-cfg.bin";
50 type = "blob-ext";
51 };
52 };
53};
54
55&binman {
56 tiboot3-j721s2-hs-fs-evm.bin {
57 filename = "tiboot3-j721s2-hs-fs-evm.bin";
58 ti-secure-rom {
59 content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>,
60 <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>;
61 combined;
62 dm-data;
63 sysfw-inner-cert;
64 keyfile = "custMpk.pem";
65 sw-rev = <1>;
66 content-sbl = <&u_boot_spl_fs>;
67 content-sysfw = <&ti_fs_enc_fs>;
68 content-sysfw-data = <&combined_tifs_cfg_fs>;
69 content-sysfw-inner-cert = <&sysfw_inner_cert_fs>;
70 content-dm-data = <&combined_dm_cfg_fs>;
71 load = <0x41c00000>;
72 load-sysfw = <0x40000>;
73 load-sysfw-data = <0x67000>;
74 load-dm-data = <0x41c80000>;
75 };
76 u_boot_spl_fs: u-boot-spl {
77 no-expanded;
78 };
79 ti_fs_enc_fs: ti-fs-enc.bin {
80 filename = "ti-sysfw/ti-fs-firmware-j721s2-hs-fs-enc.bin";
81 type = "blob-ext";
82 optional;
83 };
84 combined_tifs_cfg_fs: combined-tifs-cfg.bin {
85 filename = "combined-tifs-cfg.bin";
86 type = "blob-ext";
87 };
88 sysfw_inner_cert_fs: sysfw-inner-cert {
89 filename = "ti-sysfw/ti-fs-firmware-j721s2-hs-fs-cert.bin";
90 type = "blob-ext";
91 optional;
92 };
93 combined_dm_cfg_fs: combined-dm-cfg.bin {
94 filename = "combined-dm-cfg.bin";
95 type = "blob-ext";
96 };
97 };
98};
99
100&binman {
101 tiboot3-j721s2-gp-evm.bin {
102 filename = "tiboot3-j721s2-gp-evm.bin";
103 symlink = "tiboot3.bin";
104 ti-secure-rom {
105 content = <&u_boot_spl_unsigned>, <&ti_fs_gp>,
106 <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>;
107 combined;
108 dm-data;
109 content-sbl = <&u_boot_spl_unsigned>;
110 load = <0x41c00000>;
111 content-sysfw = <&ti_fs_gp>;
112 load-sysfw = <0x40000>;
113 content-sysfw-data = <&combined_tifs_cfg_gp>;
114 load-sysfw-data = <0x67000>;
115 content-dm-data = <&combined_dm_cfg_gp>;
116 load-dm-data = <0x41c80000>;
117 sw-rev = <1>;
118 keyfile = "ti-degenerate-key.pem";
119 };
120 u_boot_spl_unsigned: u-boot-spl {
121 no-expanded;
122 };
123 ti_fs_gp: ti-fs-gp.bin {
124 filename = "ti-sysfw/ti-fs-firmware-j721s2-gp.bin";
125 type = "blob-ext";
126 optional;
127 };
128 combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin {
129 filename = "combined-tifs-cfg.bin";
130 type = "blob-ext";
131 };
132 combined_dm_cfg_gp: combined-dm-cfg-gp.bin {
133 filename = "combined-dm-cfg.bin";
134 type = "blob-ext";
135 };
136
137 };
138};
139
140#endif
141
142#ifdef CONFIG_TARGET_J721S2_A72_EVM
143
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530144#define SPL_J721S2_EVM_DTB "spl/dts/k3-j721s2-common-proc-board.dtb"
145#define SPL_AM68_SK_DTB "spl/dts/k3-am68-sk-base-board.dtb"
146
Manorit Chawdhry64ebddb2023-07-14 11:22:38 +0530147#define J721S2_EVM_DTB "u-boot.dtb"
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530148#define AM68_SK_DTB "arch/arm/dts/k3-am68-sk-base-board.dtb"
149
150&binman {
151 ti-dm {
152 filename = "ti-dm.bin";
153 blob-ext {
154 filename = "ti-dm/j721s2/ipc_echo_testb_mcu1_0_release_strip.xer5f";
155 };
156 };
157 ti-spl {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530158 insert-template = <&ti_spl_template>;
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530159
160 fit {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530161 images {
Manorit Chawdhrye83a2652023-12-29 16:16:30 +0530162 atf {
163 ti-secure {
164 auth-in-place = <0xa02>;
165
166 firewall-257-0 {
167 /* cpu_0_cpu_0_msmc Background Firewall */
168 insert-template = <&firewall_bg_1>;
169 id = <257>;
170 region = <0>;
171 };
172
173 firewall-257-1 {
174 /* cpu_0_cpu_0_msmc Foreground Firewall */
175 insert-template = <&firewall_armv8_atf_fg>;
176 id = <257>;
177 region = <1>;
178 };
179
180 firewall-284-0 {
181 /* dru_0_msmc Background Firewall */
182 insert-template = <&firewall_bg_3>;
183 id = <284>;
184 region = <0>;
185 };
186
187 firewall-284-1 {
188 /* dru_0_msmc Foreground Firewall */
189 insert-template = <&firewall_armv8_atf_fg>;
190 id = <284>;
191 region = <1>;
192 };
193
194 /* firewall-5140-0 {
195 * nb_slv0__mem0 Background Firewall
196 * Already configured by the secure entity
197 * };
198 */
199
200 firewall-5140-1 {
201 /* nb_slv0__mem0 Foreground Firewall */
202 insert-template = <&firewall_armv8_atf_fg>;
203 id = <5140>;
204 region = <1>;
205 };
206
207 /* firewall-5140-0 {
208 * nb_slv1__mem0 Background Firewall
209 * Already configured by the secure entity
210 * };
211 */
212
213 firewall-5141-1 {
214 /* nb_slv1__mem0 Foreground Firewall */
215 insert-template = <&firewall_armv8_atf_fg>;
216 id = <5141>;
217 region = <1>;
218 };
219
220 };
221 };
222
223 tee {
224 ti-secure {
225 auth-in-place = <0xa02>;
226
227 firewall-257-2 {
228 /* cpu_0_cpu_0_msmc Foreground Firewall */
229 insert-template = <&firewall_armv8_optee_fg>;
230 id = <257>;
231 region = <2>;
232 };
233
234 firewall-284-2 {
235 /* dru_0_msmc Foreground Firewall */
236 insert-template = <&firewall_armv8_optee_fg>;
237 id = <284>;
238 region = <2>;
239 };
240
241 firewall-5142-0 {
242 /* nb_slv2__mem0 Background Firewall - 0 */
243 insert-template = <&firewall_bg_3>;
244 id = <5142>;
245 region = <0>;
246 };
247
248 firewall-5142-1 {
249 /* nb_slv2__mem0 Foreground Firewall */
250 insert-template = <&firewall_armv8_optee_fg>;
251 id = <5142>;
252 region = <1>;
253 };
254
255 firewall-5143-0 {
256 /* nb_slv3__mem0 Background Firewall - 0 */
257 insert-template = <&firewall_bg_3>;
258 id = <5143>;
259 region = <0>;
260 };
261
262 firewall-5143-1 {
263 /* nb_slv3__mem0 Foreground Firewall */
264 insert-template = <&firewall_armv8_optee_fg>;
265 id = <5143>;
266 region = <1>;
267 };
268
269 firewall-5144-0 {
270 /* nb_slv4__mem0 Background Firewall - 0 */
271 insert-template = <&firewall_bg_3>;
272 id = <5144>;
273 region = <0>;
274 };
275
276 firewall-5144-1 {
277 /* nb_slv4__mem0 Foreground Firewall */
278 insert-template = <&firewall_armv8_optee_fg>;
279 id = <5144>;
280 region = <1>;
281 };
282
283 };
284 };
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530285 dm {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530286 ti-secure {
287 content = <&dm>;
288 keyfile = "custMpk.pem";
289 };
Neha Malcom Francis82378212023-12-05 15:12:19 +0530290 dm: ti-dm {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530291 filename = "ti-dm.bin";
292 };
293 };
294
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530295 fdt-0 {
296 description = "k3-j721s2-common-proc-board";
297 type = "flat_dt";
298 arch = "arm";
299 compression = "none";
300 ti-secure {
301 content = <&spl_j721s2_evm_dtb>;
302 keyfile = "custMpk.pem";
303 };
304 spl_j721s2_evm_dtb: blob-ext {
305 filename = SPL_J721S2_EVM_DTB;
306 };
307
308 };
309
310 fdt-1 {
311 description = "k3-am68-sk-base-board";
312 type = "flat_dt";
313 arch = "arm";
314 compression = "none";
315 ti-secure {
316 content = <&spl_am68_sk_dtb>;
317 keyfile = "custMpk.pem";
318 };
319 spl_am68_sk_dtb: blob-ext {
320 filename = SPL_AM68_SK_DTB;
321 };
322 };
323 };
324
325 configurations {
326 default = "conf-0";
327
328 conf-0 {
329 description = "k3-j721s2-common-proc-board";
330 firmware = "atf";
331 loadables = "tee", "dm", "spl";
332 fdt = "fdt-0";
333 };
334
335 conf-1 {
336 description = "k3-am68-sk-base-board";
337 firmware = "atf";
338 loadables = "tee", "dm", "spl";
339 fdt = "fdt-1";
340 };
341 };
342 };
343 };
344};
345
346&binman {
347 u-boot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530348 insert-template = <&u_boot_template>;
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530349
350 fit {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530351 images {
352 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530353 description = "U-Boot for J721S2 Board";
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530354 };
355
356 fdt-0 {
357 description = "k3-j721s2-common-proc-board";
358 type = "flat_dt";
359 arch = "arm";
360 compression = "none";
361 ti-secure {
362 content = <&j721s2_evm_dtb>;
363 keyfile = "custMpk.pem";
364 };
365 j721s2_evm_dtb: blob-ext {
366 filename = J721S2_EVM_DTB;
367 };
368
369 hash {
370 algo = "crc32";
371 };
372 };
373
374 fdt-1 {
375 description = "k3-am68-sk-base-board";
376 type = "flat_dt";
377 arch = "arm";
378 compression = "none";
379 ti-secure {
380 content = <&am68_sk_dtb>;
381 keyfile = "custMpk.pem";
382 };
383 am68_sk_dtb: blob-ext {
384 filename = AM68_SK_DTB;
385 };
386
387 hash {
388 algo = "crc32";
389 };
390 };
391
392 };
393
394 configurations {
395 default = "conf-0";
396
397 conf-0 {
398 description = "k3-j721s2-common-proc-board";
399 firmware = "uboot";
400 loadables = "uboot";
401 fdt = "fdt-0";
402 };
403 conf-1 {
404 description = "k3-am68-sk-base-board";
405 firmware = "uboot";
406 loadables = "uboot";
407 fdt = "fdt-1";
408 };
409
410 };
411 };
412 };
413};
414
415&binman {
416 ti-spl_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530417 insert-template = <&ti_spl_unsigned_template>;
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530418
419 fit {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530420 images {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530421 dm {
Neha Malcom Francis82378212023-12-05 15:12:19 +0530422 ti-dm {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530423 filename = "ti-dm.bin";
424 };
425 };
426
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530427 fdt-0 {
428 description = "k3-j721s2-common-proc-board";
429 type = "flat_dt";
430 arch = "arm";
431 compression = "none";
432 blob {
433 filename = SPL_J721S2_EVM_DTB;
434 };
435 };
436 fdt-1 {
437 description = "k3-am68-sk-base-board";
438 type = "flat_dt";
439 arch = "arm";
440 compression = "none";
441 blob {
442 filename = SPL_AM68_SK_DTB;
443 };
444 };
445
446 };
447
448 configurations {
449 default = "conf-0";
450
451 conf-0 {
452 description = "k3-j721s2-common-proc-board";
453 firmware = "atf";
454 loadables = "tee", "dm", "spl";
455 fdt = "fdt-0";
456 };
457 conf-1 {
458 description = "k3-am68-sk-base-board";
459 firmware = "atf";
460 loadables = "tee", "dm", "spl";
461 fdt = "fdt-1";
462 };
463 };
464 };
465 };
466};
467
468&binman {
469 u-boot_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530470 insert-template = <&u_boot_unsigned_template>;
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530471
472 fit {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530473 images {
474 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530475 description = "U-Boot for J721S2 Board";
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530476 };
477
478 fdt-0 {
479 description = "k3-j721s2-common-proc-board";
480 type = "flat_dt";
481 arch = "arm";
482 compression = "none";
483 blob {
484 filename = J721S2_EVM_DTB;
485 };
486 hash {
487 algo = "crc32";
488 };
489 };
490 fdt-1 {
491 description = "k3-am68-sk-base-board";
492 type = "flat_dt";
493 arch = "arm";
494 compression = "none";
495 blob {
496 filename = AM68_SK_DTB;
497 };
498 hash {
499 algo = "crc32";
500 };
501 };
502
503 };
504
505 configurations {
506 default = "conf-0";
507
508 conf-0 {
509 description = "k3-j721s2-common-proc-board";
510 firmware = "uboot";
511 loadables = "uboot";
512 fdt = "fdt-0";
513 };
514 conf-1 {
515 description = "k3-am68-sk-base-board";
516 firmware = "uboot";
517 loadables = "uboot";
518 fdt = "fdt-1";
519 };
520 };
521 };
522 };
523};
524#endif