blob: 5a8788b227b12d9f106488e1f89e1c1a49e72bf2 [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
Marcel Ziswiler315deb32023-08-04 12:08:08 +02008#ifdef CONFIG_TARGET_VERDIN_AM62_R5
9
10&binman {
11 tiboot3-am62x-hs-verdin.bin {
12 filename = "tiboot3-am62x-hs-verdin.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 = <0x43c00000>;
27 load-sysfw = <0x40000>;
28 load-sysfw-data = <0x67000>;
29 load-dm-data = <0x43c3a800>;
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-am62x-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-am62x-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-am62x-hs-fs-verdin.bin {
57 filename = "tiboot3-am62x-hs-fs-verdin.bin";
58 symlink = "tiboot3.bin";
59 ti-secure-rom {
60 content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>,
61 <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>;
62 combined;
63 dm-data;
64 sysfw-inner-cert;
65 keyfile = "custMpk.pem";
66 sw-rev = <1>;
67 content-sbl = <&u_boot_spl_fs>;
68 content-sysfw = <&ti_fs_enc_fs>;
69 content-sysfw-data = <&combined_tifs_cfg_fs>;
70 content-sysfw-inner-cert = <&sysfw_inner_cert_fs>;
71 content-dm-data = <&combined_dm_cfg_fs>;
72 load = <0x43c00000>;
73 load-sysfw = <0x40000>;
74 load-sysfw-data = <0x67000>;
75 load-dm-data = <0x43c3a800>;
76 };
77 u_boot_spl_fs: u-boot-spl {
78 no-expanded;
79 };
80 ti_fs_enc_fs: ti-fs-enc.bin {
81 filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-enc.bin";
82 type = "blob-ext";
83 optional;
84 };
85 combined_tifs_cfg_fs: combined-tifs-cfg.bin {
86 filename = "combined-tifs-cfg.bin";
87 type = "blob-ext";
88 };
89 sysfw_inner_cert_fs: sysfw-inner-cert {
90 filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-cert.bin";
91 type = "blob-ext";
92 optional;
93 };
94 combined_dm_cfg_fs: combined-dm-cfg.bin {
95 filename = "combined-dm-cfg.bin";
96 type = "blob-ext";
97 };
98 };
99};
100
101&binman {
102 tiboot3-am62x-gp-verdin.bin {
103 filename = "tiboot3-am62x-gp-verdin.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 = <0x43c00000>;
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 = <0x43c3a800>;
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-am62x-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#endif /* CONFIG_TARGET_VERDIN_AM62_R5 */
140
141#ifdef CONFIG_TARGET_VERDIN_AM62_A53
142
Marcel Ziswiler62a2d3a2024-04-03 09:15:10 +0200143#define SPL_VERDIN_AM62_DTB "spl/dts/ti/k3-am625-verdin-wifi-dev.dtb"
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200144#define VERDIN_AM62_DTB "u-boot.dtb"
145
146&binman {
Parth Pancholi5fa78e02024-04-15 09:54:58 +0200147 tifsstub-hs {
148 filename = "tifsstub.bin_hs";
149 ti-secure-rom {
150 content = <&tifsstub_hs_cert>;
151 core = "secure";
152 load = <0x40000>;
153 sw-rev = <CONFIG_K3_X509_SWRV>;
154 keyfile = "custMpk.pem";
155 countersign;
156 tifsstub;
157 };
158 tifsstub_hs_cert: tifsstub-hs-cert.bin {
159 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin";
160 type = "blob-ext";
161 optional;
162 };
163 tifsstub_hs_enc: tifsstub-hs-enc.bin {
164 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin";
165 type = "blob-ext";
166 optional;
167 };
168 };
169
170 tifsstub-fs {
171 filename = "tifsstub.bin_fs";
172 tifsstub_fs_cert: tifsstub-fs-cert.bin {
173 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin";
174 type = "blob-ext";
175 optional;
176 };
177 tifsstub_fs_enc: tifsstub-fs-enc.bin {
178 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin";
179 type = "blob-ext";
180 optional;
181 };
182
183 };
184
185 tifsstub-gp {
186 filename = "tifsstub.bin_gp";
187 ti-secure-rom {
188 content = <&tifsstub_gp>;
189 core = "secure";
190 load = <0x60000>;
191 sw-rev = <CONFIG_K3_X509_SWRV>;
192 keyfile = "ti-degenerate-key.pem";
193 tifsstub;
194 };
195 tifsstub_gp: tifsstub-gp.bin {
196 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-gp.bin";
197 type = "blob-ext";
198 optional;
199 };
200 };
201
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200202 ti-spl {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530203 insert-template = <&ti_spl_template>;
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200204
205 fit {
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200206
207 images {
Parth Pancholi5fa78e02024-04-15 09:54:58 +0200208 tifsstub-hs {
209 description = "TIFSSTUB";
210 type = "firmware";
211 arch = "arm32";
212 compression = "none";
213 os = "tifsstub-hs";
214 load = <0x9dc00000>;
215 entry = <0x9dc00000>;
216 blob-ext {
217 filename = "tifsstub.bin_hs";
218 };
219 };
220
221 tifsstub-fs {
222 description = "TIFSSTUB";
223 type = "firmware";
224 arch = "arm32";
225 compression = "none";
226 os = "tifsstub-fs";
227 load = <0x9dc00000>;
228 entry = <0x9dc00000>;
229 blob-ext {
230 filename = "tifsstub.bin_fs";
231 };
232 };
233
234 tifsstub-gp {
235 description = "TIFSSTUB";
236 type = "firmware";
237 arch = "arm32";
238 compression = "none";
239 os = "tifsstub-gp";
240 load = <0x9dc00000>;
241 entry = <0x9dc00000>;
242 blob-ext {
243 filename = "tifsstub.bin_gp";
244 };
245 };
246
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200247 dm {
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200248 ti-secure {
249 content = <&dm>;
250 keyfile = "custMpk.pem";
251 };
Neha Malcom Francis82378212023-12-05 15:12:19 +0530252 dm: ti-dm {
Andrew Davis7ed4a852025-04-25 17:54:03 -0500253 filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200254 };
255 };
256
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200257 fdt-0 {
258 description = "k3-am625-verdin-wifi-dev";
259 type = "flat_dt";
260 arch = "arm";
261 compression = "none";
262 ti-secure {
263 content = <&spl_verdin_am62_dtb>;
264 keyfile = "custMpk.pem";
265 };
266 spl_verdin_am62_dtb: blob-ext {
267 filename = SPL_VERDIN_AM62_DTB;
268 };
269 };
270 };
271
272 configurations {
273 default = "conf-0";
274
275 conf-0 {
276 description = "k3-am625-verdin-wifi-dev";
277 firmware = "atf";
Parth Pancholi5fa78e02024-04-15 09:54:58 +0200278 loadables = "tee", "tifsstub-hs", "tifsstub-fs",
279 "tifsstub-gp", "dm", "spl";
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200280 fdt = "fdt-0";
281 };
282 };
283 };
284 };
285};
286
287&binman {
288 u-boot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530289 insert-template = <&u_boot_template>;
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200290
291 fit {
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200292 images {
293 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530294 description = "U-Boot fot AM625 Verdin Board";
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200295 };
296
297 fdt-0 {
298 description = "k3-am625-verdin-wifi-dev";
299 type = "flat_dt";
300 arch = "arm";
301 compression = "none";
302 ti-secure {
303 content = <&verdin_am62_dtb>;
304 keyfile = "custMpk.pem";
305 };
306 verdin_am62_dtb: blob-ext {
307 filename = VERDIN_AM62_DTB;
308 };
309 hash {
310 algo = "crc32";
311 };
312 };
313 };
314
315 configurations {
316 default = "conf-0";
317
318 conf-0 {
319 description = "k3-am625-verdin-wifi-dev";
320 firmware = "uboot";
321 loadables = "uboot";
322 fdt = "fdt-0";
323 };
324 };
325 };
326 };
327};
328
329&binman {
330 ti-spl_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530331 insert-template = <&ti_spl_unsigned_template>;
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200332
333 fit {
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200334 images {
Parth Pancholi5fa78e02024-04-15 09:54:58 +0200335 tifsstub-hs {
336 description = "tifsstub";
337 type = "firmware";
338 arch = "arm32";
339 compression = "none";
340 os = "tifsstub-hs";
341 load = <0x9dc00000>;
342 entry = <0x9dc00000>;
343 blob-ext {
344 filename = "tifsstub.bin_hs";
345 };
346 };
347
348 tifsstub-fs {
349 description = "tifsstub";
350 type = "firmware";
351 arch = "arm32";
352 compression = "none";
353 os = "tifsstub-fs";
354 load = <0x9dc00000>;
355 entry = <0x9dc00000>;
356 blob-ext {
357 filename = "tifsstub.bin_fs";
358 };
359 };
360
361 tifsstub-gp {
362 description = "tifsstub";
363 type = "firmware";
364 arch = "arm32";
365 compression = "none";
366 os = "tifsstub-gp";
367 load = <0x9dc00000>;
368 entry = <0x9dc00000>;
369 blob-ext {
370 filename = "tifsstub.bin_gp";
371 };
372 };
373
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200374 dm {
Neha Malcom Francis82378212023-12-05 15:12:19 +0530375 ti-dm {
Andrew Davis7ed4a852025-04-25 17:54:03 -0500376 filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200377 };
378 };
379
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200380 fdt-0 {
381 description = "k3-am625-verdin-wifi-dev";
382 type = "flat_dt";
383 arch = "arm";
384 compression = "none";
385 blob {
386 filename = SPL_VERDIN_AM62_DTB;
387 };
388 };
389 };
390
391 configurations {
392 default = "conf-0";
393
394 conf-0 {
395 description = "k3-am625-verdin-wifi-dev";
396 firmware = "atf";
Parth Pancholi5fa78e02024-04-15 09:54:58 +0200397 loadables = "tee", "tifsstub-hs", "tifsstub-fs",
398 "tifsstub-gp", "dm", "spl";
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200399 fdt = "fdt-0";
400 };
401 };
402 };
403 };
404};
405
406&binman {
407 u-boot_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530408 insert-template = <&u_boot_unsigned_template>;
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200409
410 fit {
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200411 images {
412 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530413 description = "U-Boot for AM625 Verdin Board";
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200414 };
415
416 fdt-0 {
417 description = "k3-am625-verdin-wifi-dev";
418 type = "flat_dt";
419 arch = "arm";
420 compression = "none";
421 blob {
422 filename = VERDIN_AM62_DTB;
423 };
424 hash {
425 algo = "crc32";
426 };
427 };
428 };
429
430 configurations {
431 default = "conf-0";
432
433 conf-0 {
434 description = "k3-am625-verdin-wifi-dev";
435 firmware = "uboot";
436 loadables = "uboot";
437 fdt = "fdt-0";
438 };
439 };
440 };
441 };
442};
443
Andrejs Cainikovs34344092024-06-05 11:10:57 +0200444&binman {
445 firmware-verdin-am62-gp.bin {
446 filename = "firmware-verdin-am62-gp.bin";
447
448 blob-ext@1 {
449 filename = "tiboot3-am62x-gp-verdin.bin";
450 };
451
452 blob-ext@2 {
453 filename = "tispl.bin_unsigned";
454 /*
455 * This value matches CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
456 * from R5 SPL config.
457 */
458 offset = <0x80000>;
459 };
460
461 blob-ext@3 {
462 filename = "u-boot.img_unsigned";
463 offset = <(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)>;
464 };
465 };
466
467 firmware-verdin-am62-hs.bin {
468 filename = "firmware-verdin-am62-hs.bin";
469
470 blob-ext@1 {
471 filename = "tiboot3-am62x-hs-verdin.bin";
472 };
473
474 blob-ext@2 {
475 filename = "tispl.bin";
476 /*
477 * This value matches CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
478 * from R5 SPL config.
479 */
480 offset = <0x80000>;
481 };
482
483 blob-ext@3 {
484 filename = "u-boot.img";
485 offset = <(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)>;
486 };
487 };
488
489 firmware-verdin-am62-hs-fs.bin {
490 filename = "firmware-verdin-am62-hs-fs.bin";
491
492 blob-ext@1 {
493 filename = "tiboot3-am62x-hs-fs-verdin.bin";
494 };
495
496 blob-ext@2 {
497 filename = "tispl.bin";
498 /*
499 * This value matches CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
500 * from R5 SPL config.
501 */
502 offset = <0x80000>;
503 };
504
505 blob-ext@3 {
506 filename = "u-boot.img";
507 offset = <(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)>;
508 };
509 };
510};
511
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200512#endif /* CONFIG_TARGET_VERDIN_AM62_A53 */