blob: 1671217ec0515a31a44c9e54837e3d0c1e4e5be3 [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
144#define SPL_NODTB "spl/u-boot-spl-nodtb.bin"
145#define SPL_J721S2_EVM_DTB "spl/dts/k3-j721s2-common-proc-board.dtb"
146#define SPL_AM68_SK_DTB "spl/dts/k3-am68-sk-base-board.dtb"
147
148#define UBOOT_NODTB "u-boot-nodtb.bin"
149#define J721S2_EVM_DTB "arch/arm/dts/k3-j721s2-common-proc-board.dtb"
150#define AM68_SK_DTB "arch/arm/dts/k3-am68-sk-base-board.dtb"
151
152&binman {
153 ti-dm {
154 filename = "ti-dm.bin";
155 blob-ext {
156 filename = "ti-dm/j721s2/ipc_echo_testb_mcu1_0_release_strip.xer5f";
157 };
158 };
159 ti-spl {
160 filename = "tispl.bin";
161 pad-byte = <0xff>;
162
163 fit {
164 description = "Configuration to load ATF and SPL";
165 #address-cells = <1>;
166
167 images {
168
169 atf {
170 description = "ARM Trusted Firmware";
171 type = "firmware";
172 arch = "arm64";
173 compression = "none";
174 os = "arm-trusted-firmware";
175 load = <CONFIG_K3_ATF_LOAD_ADDR>;
176 entry = <CONFIG_K3_ATF_LOAD_ADDR>;
177 ti-secure {
178 content = <&atf>;
179 keyfile = "custMpk.pem";
180 };
181 atf: atf-bl31 {
182 };
183 };
184
185 tee {
186 description = "OP-TEE";
187 type = "tee";
188 arch = "arm64";
189 compression = "none";
190 os = "tee";
191 load = <0x9e800000>;
192 entry = <0x9e800000>;
193 ti-secure {
194 content = <&tee>;
195 keyfile = "custMpk.pem";
196 };
197 tee: tee-os {
198 };
199 };
200
201 dm {
202 description = "DM binary";
203 type = "firmware";
204 arch = "arm32";
205 compression = "none";
206 os = "DM";
207 load = <0x89000000>;
208 entry = <0x89000000>;
209 ti-secure {
210 content = <&dm>;
211 keyfile = "custMpk.pem";
212 };
213 dm: blob-ext {
214 filename = "ti-dm.bin";
215 };
216 };
217
218 spl {
219 description = "SPL (64-bit)";
220 type = "standalone";
221 os = "U-Boot";
222 arch = "arm64";
223 compression = "none";
224 load = <CONFIG_SPL_TEXT_BASE>;
225 entry = <CONFIG_SPL_TEXT_BASE>;
226 ti-secure {
227 content = <&u_boot_spl_nodtb>;
228 keyfile = "custMpk.pem";
229 };
230 u_boot_spl_nodtb: blob-ext {
231 filename = SPL_NODTB;
232 };
233 };
234
235 fdt-0 {
236 description = "k3-j721s2-common-proc-board";
237 type = "flat_dt";
238 arch = "arm";
239 compression = "none";
240 ti-secure {
241 content = <&spl_j721s2_evm_dtb>;
242 keyfile = "custMpk.pem";
243 };
244 spl_j721s2_evm_dtb: blob-ext {
245 filename = SPL_J721S2_EVM_DTB;
246 };
247
248 };
249
250 fdt-1 {
251 description = "k3-am68-sk-base-board";
252 type = "flat_dt";
253 arch = "arm";
254 compression = "none";
255 ti-secure {
256 content = <&spl_am68_sk_dtb>;
257 keyfile = "custMpk.pem";
258 };
259 spl_am68_sk_dtb: blob-ext {
260 filename = SPL_AM68_SK_DTB;
261 };
262 };
263 };
264
265 configurations {
266 default = "conf-0";
267
268 conf-0 {
269 description = "k3-j721s2-common-proc-board";
270 firmware = "atf";
271 loadables = "tee", "dm", "spl";
272 fdt = "fdt-0";
273 };
274
275 conf-1 {
276 description = "k3-am68-sk-base-board";
277 firmware = "atf";
278 loadables = "tee", "dm", "spl";
279 fdt = "fdt-1";
280 };
281 };
282 };
283 };
284};
285
286&binman {
287 u-boot {
288 filename = "u-boot.img";
289 pad-byte = <0xff>;
290
291 fit {
292 description = "FIT image with multiple configurations";
293
294 images {
295 uboot {
296 description = "U-Boot for J721S2 board";
297 type = "firmware";
298 os = "u-boot";
299 arch = "arm";
300 compression = "none";
301 load = <CONFIG_TEXT_BASE>;
302 ti-secure {
303 content = <&u_boot_nodtb>;
304 keyfile = "custMpk.pem";
305 };
306 u_boot_nodtb: u-boot-nodtb {
307 };
308 hash {
309 algo = "crc32";
310 };
311 };
312
313 fdt-0 {
314 description = "k3-j721s2-common-proc-board";
315 type = "flat_dt";
316 arch = "arm";
317 compression = "none";
318 ti-secure {
319 content = <&j721s2_evm_dtb>;
320 keyfile = "custMpk.pem";
321 };
322 j721s2_evm_dtb: blob-ext {
323 filename = J721S2_EVM_DTB;
324 };
325
326 hash {
327 algo = "crc32";
328 };
329 };
330
331 fdt-1 {
332 description = "k3-am68-sk-base-board";
333 type = "flat_dt";
334 arch = "arm";
335 compression = "none";
336 ti-secure {
337 content = <&am68_sk_dtb>;
338 keyfile = "custMpk.pem";
339 };
340 am68_sk_dtb: blob-ext {
341 filename = AM68_SK_DTB;
342 };
343
344 hash {
345 algo = "crc32";
346 };
347 };
348
349 };
350
351 configurations {
352 default = "conf-0";
353
354 conf-0 {
355 description = "k3-j721s2-common-proc-board";
356 firmware = "uboot";
357 loadables = "uboot";
358 fdt = "fdt-0";
359 };
360 conf-1 {
361 description = "k3-am68-sk-base-board";
362 firmware = "uboot";
363 loadables = "uboot";
364 fdt = "fdt-1";
365 };
366
367 };
368 };
369 };
370};
371
372&binman {
373 ti-spl_unsigned {
374 filename = "tispl.bin_unsigned";
375 pad-byte = <0xff>;
376
377 fit {
378 description = "Configuration to load ATF and SPL";
379 #address-cells = <1>;
380
381 images {
382
383 atf {
384 description = "ARM Trusted Firmware";
385 type = "firmware";
386 arch = "arm64";
387 compression = "none";
388 os = "arm-trusted-firmware";
389 load = <CONFIG_K3_ATF_LOAD_ADDR>;
390 entry = <CONFIG_K3_ATF_LOAD_ADDR>;
391 atf-bl31 {
392 filename = "bl31.bin";
393 };
394 };
395
396 tee {
397 description = "OP-TEE";
398 type = "tee";
399 arch = "arm64";
400 compression = "none";
401 os = "tee";
402 load = <0x9e800000>;
403 entry = <0x9e800000>;
404 tee-os {
405 filename = "tee-raw.bin";
406 };
407 };
408
409 dm {
410 description = "DM binary";
411 type = "firmware";
412 arch = "arm32";
413 compression = "none";
414 os = "DM";
415 load = <0x89000000>;
416 entry = <0x89000000>;
417 blob-ext {
418 filename = "ti-dm.bin";
419 };
420 };
421
422 spl {
423 description = "SPL (64-bit)";
424 type = "standalone";
425 os = "U-Boot";
426 arch = "arm64";
427 compression = "none";
428 load = <CONFIG_SPL_TEXT_BASE>;
429 entry = <CONFIG_SPL_TEXT_BASE>;
430 blob {
431 filename = "spl/u-boot-spl-nodtb.bin";
432 };
433 };
434
435 fdt-0 {
436 description = "k3-j721s2-common-proc-board";
437 type = "flat_dt";
438 arch = "arm";
439 compression = "none";
440 blob {
441 filename = SPL_J721S2_EVM_DTB;
442 };
443 };
444 fdt-1 {
445 description = "k3-am68-sk-base-board";
446 type = "flat_dt";
447 arch = "arm";
448 compression = "none";
449 blob {
450 filename = SPL_AM68_SK_DTB;
451 };
452 };
453
454 };
455
456 configurations {
457 default = "conf-0";
458
459 conf-0 {
460 description = "k3-j721s2-common-proc-board";
461 firmware = "atf";
462 loadables = "tee", "dm", "spl";
463 fdt = "fdt-0";
464 };
465 conf-1 {
466 description = "k3-am68-sk-base-board";
467 firmware = "atf";
468 loadables = "tee", "dm", "spl";
469 fdt = "fdt-1";
470 };
471 };
472 };
473 };
474};
475
476&binman {
477 u-boot_unsigned {
478 filename = "u-boot.img_unsigned";
479 pad-byte = <0xff>;
480
481 fit {
482 description = "FIT image with multiple configurations";
483
484 images {
485 uboot {
486 description = "U-Boot for J721S2 board";
487 type = "firmware";
488 os = "u-boot";
489 arch = "arm";
490 compression = "none";
491 load = <CONFIG_TEXT_BASE>;
492 blob {
493 filename = UBOOT_NODTB;
494 };
495 hash {
496 algo = "crc32";
497 };
498 };
499
500 fdt-0 {
501 description = "k3-j721s2-common-proc-board";
502 type = "flat_dt";
503 arch = "arm";
504 compression = "none";
505 blob {
506 filename = J721S2_EVM_DTB;
507 };
508 hash {
509 algo = "crc32";
510 };
511 };
512 fdt-1 {
513 description = "k3-am68-sk-base-board";
514 type = "flat_dt";
515 arch = "arm";
516 compression = "none";
517 blob {
518 filename = AM68_SK_DTB;
519 };
520 hash {
521 algo = "crc32";
522 };
523 };
524
525 };
526
527 configurations {
528 default = "conf-0";
529
530 conf-0 {
531 description = "k3-j721s2-common-proc-board";
532 firmware = "uboot";
533 loadables = "uboot";
534 fdt = "fdt-0";
535 };
536 conf-1 {
537 description = "k3-am68-sk-base-board";
538 firmware = "uboot";
539 loadables = "uboot";
540 fdt = "fdt-1";
541 };
542 };
543 };
544 };
545};
546#endif