blob: 089b2a5f5cd5018e32f65753c83593e82814f0dd [file] [log] [blame]
Marcel Ziswiler315deb32023-08-04 12:08:08 +02001// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Copyright 2023 Toradex
4 */
5
6#include "k3-binman.dtsi"
7
8&custmpk_pem {
9 filename = "../../ti/keys/custMpk.pem";
10};
11
12&dkey_pem {
13 filename = "../../ti/keys/ti-degenerate-key.pem";
14};
15
16#ifndef CONFIG_ARM64
17
18&bcfg_yaml {
19 schema = "../../ti/common/schema.yaml";
20};
21
22&pcfg_yaml {
23 schema = "../../ti/common/schema.yaml";
24};
25
26&rcfg_yaml {
27 schema = "../../ti/common/schema.yaml";
28};
29
30&scfg_yaml {
31 schema = "../../ti/common/schema.yaml";
32};
33
34/* combined-tifs-cfg */
35
36&bcfg_yaml_tifs {
37 schema = "../../ti/common/schema.yaml";
38};
39
40&pcfg_yaml_tifs {
41 schema = "../../ti/common/schema.yaml";
42};
43
44&rcfg_yaml_tifs {
45 schema = "../../ti/common/schema.yaml";
46};
47
48&scfg_yaml_tifs {
49 schema = "../../ti/common/schema.yaml";
50};
51
52/* combined-dm-cfg */
53
54&pcfg_yaml_dm {
55 schema = "../../ti/common/schema.yaml";
56};
57
58&rcfg_yaml_dm {
59 schema = "../../ti/common/schema.yaml";
60};
61
62/* combined-sysfw-cfg */
63
64&bcfg_yaml_sysfw {
65 schema = "../../ti/common/schema.yaml";
66};
67
68&pcfg_yaml_sysfw {
69 schema = "../../ti/common/schema.yaml";
70};
71
72&rcfg_yaml_sysfw {
73 schema = "../../ti/common/schema.yaml";
74};
75
76&scfg_yaml_sysfw {
77 schema = "../../ti/common/schema.yaml";
78};
79
80#endif /* CONFIG_ARM64 */
81
82#ifdef CONFIG_TARGET_VERDIN_AM62_R5
83
84&binman {
85 tiboot3-am62x-hs-verdin.bin {
86 filename = "tiboot3-am62x-hs-verdin.bin";
87 ti-secure-rom {
88 content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>,
89 <&combined_dm_cfg>, <&sysfw_inner_cert>;
90 combined;
91 dm-data;
92 sysfw-inner-cert;
93 keyfile = "custMpk.pem";
94 sw-rev = <1>;
95 content-sbl = <&u_boot_spl>;
96 content-sysfw = <&ti_fs_enc>;
97 content-sysfw-data = <&combined_tifs_cfg>;
98 content-sysfw-inner-cert = <&sysfw_inner_cert>;
99 content-dm-data = <&combined_dm_cfg>;
100 load = <0x43c00000>;
101 load-sysfw = <0x40000>;
102 load-sysfw-data = <0x67000>;
103 load-dm-data = <0x43c3a800>;
104 };
105 u_boot_spl: u-boot-spl {
106 no-expanded;
107 };
108 ti_fs_enc: ti-fs-enc.bin {
109 filename = "ti-sysfw/ti-fs-firmware-am62x-hs-enc.bin";
110 type = "blob-ext";
111 optional;
112 };
113 combined_tifs_cfg: combined-tifs-cfg.bin {
114 filename = "combined-tifs-cfg.bin";
115 type = "blob-ext";
116 };
117 sysfw_inner_cert: sysfw-inner-cert {
118 filename = "ti-sysfw/ti-fs-firmware-am62x-hs-cert.bin";
119 type = "blob-ext";
120 optional;
121 };
122 combined_dm_cfg: combined-dm-cfg.bin {
123 filename = "combined-dm-cfg.bin";
124 type = "blob-ext";
125 };
126 };
127};
128
129&binman {
130 tiboot3-am62x-hs-fs-verdin.bin {
131 filename = "tiboot3-am62x-hs-fs-verdin.bin";
132 symlink = "tiboot3.bin";
133 ti-secure-rom {
134 content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>,
135 <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>;
136 combined;
137 dm-data;
138 sysfw-inner-cert;
139 keyfile = "custMpk.pem";
140 sw-rev = <1>;
141 content-sbl = <&u_boot_spl_fs>;
142 content-sysfw = <&ti_fs_enc_fs>;
143 content-sysfw-data = <&combined_tifs_cfg_fs>;
144 content-sysfw-inner-cert = <&sysfw_inner_cert_fs>;
145 content-dm-data = <&combined_dm_cfg_fs>;
146 load = <0x43c00000>;
147 load-sysfw = <0x40000>;
148 load-sysfw-data = <0x67000>;
149 load-dm-data = <0x43c3a800>;
150 };
151 u_boot_spl_fs: u-boot-spl {
152 no-expanded;
153 };
154 ti_fs_enc_fs: ti-fs-enc.bin {
155 filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-enc.bin";
156 type = "blob-ext";
157 optional;
158 };
159 combined_tifs_cfg_fs: combined-tifs-cfg.bin {
160 filename = "combined-tifs-cfg.bin";
161 type = "blob-ext";
162 };
163 sysfw_inner_cert_fs: sysfw-inner-cert {
164 filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-cert.bin";
165 type = "blob-ext";
166 optional;
167 };
168 combined_dm_cfg_fs: combined-dm-cfg.bin {
169 filename = "combined-dm-cfg.bin";
170 type = "blob-ext";
171 };
172 };
173};
174
175&binman {
176 tiboot3-am62x-gp-verdin.bin {
177 filename = "tiboot3-am62x-gp-verdin.bin";
178 ti-secure-rom {
179 content = <&u_boot_spl_unsigned>, <&ti_fs_gp>,
180 <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>;
181 combined;
182 dm-data;
183 content-sbl = <&u_boot_spl_unsigned>;
184 load = <0x43c00000>;
185 content-sysfw = <&ti_fs_gp>;
186 load-sysfw = <0x40000>;
187 content-sysfw-data = <&combined_tifs_cfg_gp>;
188 load-sysfw-data = <0x67000>;
189 content-dm-data = <&combined_dm_cfg_gp>;
190 load-dm-data = <0x43c3a800>;
191 sw-rev = <1>;
192 keyfile = "ti-degenerate-key.pem";
193 };
194 u_boot_spl_unsigned: u-boot-spl {
195 no-expanded;
196 };
197 ti_fs_gp: ti-fs-gp.bin {
198 filename = "ti-sysfw/ti-fs-firmware-am62x-gp.bin";
199 type = "blob-ext";
200 optional;
201 };
202 combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin {
203 filename = "combined-tifs-cfg.bin";
204 type = "blob-ext";
205 };
206 combined_dm_cfg_gp: combined-dm-cfg-gp.bin {
207 filename = "combined-dm-cfg.bin";
208 type = "blob-ext";
209 };
210 };
211};
212
213#endif /* CONFIG_TARGET_VERDIN_AM62_R5 */
214
215#ifdef CONFIG_TARGET_VERDIN_AM62_A53
216
217#define SPL_NODTB "spl/u-boot-spl-nodtb.bin"
218#define SPL_VERDIN_AM62_DTB "spl/dts/k3-am625-verdin-wifi-dev.dtb"
219
220#define UBOOT_NODTB "u-boot-nodtb.bin"
221#define VERDIN_AM62_DTB "u-boot.dtb"
222
223&binman {
224 ti-dm {
225 filename = "ti-dm.bin";
226 blob-ext {
227 filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
228 };
229 };
230 ti-spl {
231 filename = "tispl.bin";
232 pad-byte = <0xff>;
233
234 fit {
235 description = "Configuration to load ATF and SPL";
236 #address-cells = <1>;
237
238 images {
239 atf {
240 description = "ARM Trusted Firmware";
241 type = "firmware";
242 arch = "arm64";
243 compression = "none";
244 os = "arm-trusted-firmware";
245 load = <CONFIG_K3_ATF_LOAD_ADDR>;
246 entry = <CONFIG_K3_ATF_LOAD_ADDR>;
247 ti-secure {
248 content = <&atf>;
249 keyfile = "custMpk.pem";
250 };
251 atf: atf-bl31 {
252 };
253 };
254
255 tee {
256 description = "OP-TEE";
257 type = "tee";
258 arch = "arm64";
259 compression = "none";
260 os = "tee";
261 load = <0x9e800000>;
262 entry = <0x9e800000>;
263 ti-secure {
264 content = <&tee>;
265 keyfile = "custMpk.pem";
266 };
267 tee: tee-os {
268 };
269 };
270
271 dm {
272 description = "DM binary";
273 type = "firmware";
274 arch = "arm32";
275 compression = "none";
276 os = "DM";
277 load = <0x89000000>;
278 entry = <0x89000000>;
279 ti-secure {
280 content = <&dm>;
281 keyfile = "custMpk.pem";
282 };
283 dm: blob-ext {
284 filename = "ti-dm.bin";
285 };
286 };
287
288 spl {
289 description = "SPL (64-bit)";
290 type = "standalone";
291 os = "U-Boot";
292 arch = "arm64";
293 compression = "none";
294 load = <CONFIG_SPL_TEXT_BASE>;
295 entry = <CONFIG_SPL_TEXT_BASE>;
296 ti-secure {
297 content = <&u_boot_spl_nodtb>;
298 keyfile = "custMpk.pem";
299 };
300 u_boot_spl_nodtb: blob-ext {
301 filename = SPL_NODTB;
302 };
303 };
304
305 fdt-0 {
306 description = "k3-am625-verdin-wifi-dev";
307 type = "flat_dt";
308 arch = "arm";
309 compression = "none";
310 ti-secure {
311 content = <&spl_verdin_am62_dtb>;
312 keyfile = "custMpk.pem";
313 };
314 spl_verdin_am62_dtb: blob-ext {
315 filename = SPL_VERDIN_AM62_DTB;
316 };
317 };
318 };
319
320 configurations {
321 default = "conf-0";
322
323 conf-0 {
324 description = "k3-am625-verdin-wifi-dev";
325 firmware = "atf";
326 loadables = "tee", "dm", "spl";
327 fdt = "fdt-0";
328 };
329 };
330 };
331 };
332};
333
334&binman {
335 u-boot {
336 filename = "u-boot.img";
337 pad-byte = <0xff>;
338
339 fit {
340 description = "FIT image with multiple configurations";
341
342 images {
343 uboot {
344 description = "U-Boot for AM625 board";
345 type = "firmware";
346 os = "u-boot";
347 arch = "arm";
348 compression = "none";
349 load = <CONFIG_TEXT_BASE>;
350 ti-secure {
351 content = <&u_boot_nodtb>;
352 keyfile = "custMpk.pem";
353 };
354 u_boot_nodtb: u-boot-nodtb {
355 };
356 hash {
357 algo = "crc32";
358 };
359 };
360
361 fdt-0 {
362 description = "k3-am625-verdin-wifi-dev";
363 type = "flat_dt";
364 arch = "arm";
365 compression = "none";
366 ti-secure {
367 content = <&verdin_am62_dtb>;
368 keyfile = "custMpk.pem";
369 };
370 verdin_am62_dtb: blob-ext {
371 filename = VERDIN_AM62_DTB;
372 };
373 hash {
374 algo = "crc32";
375 };
376 };
377 };
378
379 configurations {
380 default = "conf-0";
381
382 conf-0 {
383 description = "k3-am625-verdin-wifi-dev";
384 firmware = "uboot";
385 loadables = "uboot";
386 fdt = "fdt-0";
387 };
388 };
389 };
390 };
391};
392
393&binman {
394 ti-spl_unsigned {
395 filename = "tispl.bin_unsigned";
396 pad-byte = <0xff>;
397
398 fit {
399 description = "Configuration to load ATF and SPL";
400 #address-cells = <1>;
401
402 images {
403 atf {
404 description = "ARM Trusted Firmware";
405 type = "firmware";
406 arch = "arm64";
407 compression = "none";
408 os = "arm-trusted-firmware";
409 load = <CONFIG_K3_ATF_LOAD_ADDR>;
410 entry = <CONFIG_K3_ATF_LOAD_ADDR>;
411 atf-bl31 {
412 filename = "bl31.bin";
413 };
414 };
415
416 tee {
417 description = "OP-TEE";
418 type = "tee";
419 arch = "arm64";
420 compression = "none";
421 os = "tee";
422 load = <0x9e800000>;
423 entry = <0x9e800000>;
424 tee-os {
425 filename = "tee-raw.bin";
426 };
427 };
428
429 dm {
430 description = "DM binary";
431 type = "firmware";
432 arch = "arm32";
433 compression = "none";
434 os = "DM";
435 load = <0x89000000>;
436 entry = <0x89000000>;
437 blob-ext {
438 filename = "ti-dm.bin";
439 };
440 };
441
442 spl {
443 description = "SPL (64-bit)";
444 type = "standalone";
445 os = "U-Boot";
446 arch = "arm64";
447 compression = "none";
448 load = <CONFIG_SPL_TEXT_BASE>;
449 entry = <CONFIG_SPL_TEXT_BASE>;
450 blob {
451 filename = "spl/u-boot-spl-nodtb.bin";
452 };
453 };
454
455 fdt-0 {
456 description = "k3-am625-verdin-wifi-dev";
457 type = "flat_dt";
458 arch = "arm";
459 compression = "none";
460 blob {
461 filename = SPL_VERDIN_AM62_DTB;
462 };
463 };
464 };
465
466 configurations {
467 default = "conf-0";
468
469 conf-0 {
470 description = "k3-am625-verdin-wifi-dev";
471 firmware = "atf";
472 loadables = "tee", "dm", "spl";
473 fdt = "fdt-0";
474 };
475 };
476 };
477 };
478};
479
480&binman {
481 u-boot_unsigned {
482 filename = "u-boot.img_unsigned";
483 pad-byte = <0xff>;
484
485 fit {
486 description = "FIT image with multiple configurations";
487
488 images {
489 uboot {
490 description = "U-Boot for AM625 board";
491 type = "firmware";
492 os = "u-boot";
493 arch = "arm";
494 compression = "none";
495 load = <CONFIG_TEXT_BASE>;
496 blob {
497 filename = UBOOT_NODTB;
498 };
499 hash {
500 algo = "crc32";
501 };
502 };
503
504 fdt-0 {
505 description = "k3-am625-verdin-wifi-dev";
506 type = "flat_dt";
507 arch = "arm";
508 compression = "none";
509 blob {
510 filename = VERDIN_AM62_DTB;
511 };
512 hash {
513 algo = "crc32";
514 };
515 };
516 };
517
518 configurations {
519 default = "conf-0";
520
521 conf-0 {
522 description = "k3-am625-verdin-wifi-dev";
523 firmware = "uboot";
524 loadables = "uboot";
525 fdt = "fdt-0";
526 };
527 };
528 };
529 };
530};
531
532#endif /* CONFIG_TARGET_VERDIN_AM62_A53 */