blob: 0e6188907e474bf704663e4e7e8f48468695169b [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 {
147 ti-dm {
148 filename = "ti-dm.bin";
149 blob-ext {
150 filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
151 };
152 };
Parth Pancholi5fa78e02024-04-15 09:54:58 +0200153
154 tifsstub-hs {
155 filename = "tifsstub.bin_hs";
156 ti-secure-rom {
157 content = <&tifsstub_hs_cert>;
158 core = "secure";
159 load = <0x40000>;
160 sw-rev = <CONFIG_K3_X509_SWRV>;
161 keyfile = "custMpk.pem";
162 countersign;
163 tifsstub;
164 };
165 tifsstub_hs_cert: tifsstub-hs-cert.bin {
166 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin";
167 type = "blob-ext";
168 optional;
169 };
170 tifsstub_hs_enc: tifsstub-hs-enc.bin {
171 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin";
172 type = "blob-ext";
173 optional;
174 };
175 };
176
177 tifsstub-fs {
178 filename = "tifsstub.bin_fs";
179 tifsstub_fs_cert: tifsstub-fs-cert.bin {
180 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin";
181 type = "blob-ext";
182 optional;
183 };
184 tifsstub_fs_enc: tifsstub-fs-enc.bin {
185 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin";
186 type = "blob-ext";
187 optional;
188 };
189
190 };
191
192 tifsstub-gp {
193 filename = "tifsstub.bin_gp";
194 ti-secure-rom {
195 content = <&tifsstub_gp>;
196 core = "secure";
197 load = <0x60000>;
198 sw-rev = <CONFIG_K3_X509_SWRV>;
199 keyfile = "ti-degenerate-key.pem";
200 tifsstub;
201 };
202 tifsstub_gp: tifsstub-gp.bin {
203 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-gp.bin";
204 type = "blob-ext";
205 optional;
206 };
207 };
208
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200209 ti-spl {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530210 insert-template = <&ti_spl_template>;
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200211
212 fit {
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200213
214 images {
Parth Pancholi5fa78e02024-04-15 09:54:58 +0200215 tifsstub-hs {
216 description = "TIFSSTUB";
217 type = "firmware";
218 arch = "arm32";
219 compression = "none";
220 os = "tifsstub-hs";
221 load = <0x9dc00000>;
222 entry = <0x9dc00000>;
223 blob-ext {
224 filename = "tifsstub.bin_hs";
225 };
226 };
227
228 tifsstub-fs {
229 description = "TIFSSTUB";
230 type = "firmware";
231 arch = "arm32";
232 compression = "none";
233 os = "tifsstub-fs";
234 load = <0x9dc00000>;
235 entry = <0x9dc00000>;
236 blob-ext {
237 filename = "tifsstub.bin_fs";
238 };
239 };
240
241 tifsstub-gp {
242 description = "TIFSSTUB";
243 type = "firmware";
244 arch = "arm32";
245 compression = "none";
246 os = "tifsstub-gp";
247 load = <0x9dc00000>;
248 entry = <0x9dc00000>;
249 blob-ext {
250 filename = "tifsstub.bin_gp";
251 };
252 };
253
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200254 dm {
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200255 ti-secure {
256 content = <&dm>;
257 keyfile = "custMpk.pem";
258 };
Neha Malcom Francis82378212023-12-05 15:12:19 +0530259 dm: ti-dm {
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200260 filename = "ti-dm.bin";
261 };
262 };
263
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200264 fdt-0 {
265 description = "k3-am625-verdin-wifi-dev";
266 type = "flat_dt";
267 arch = "arm";
268 compression = "none";
269 ti-secure {
270 content = <&spl_verdin_am62_dtb>;
271 keyfile = "custMpk.pem";
272 };
273 spl_verdin_am62_dtb: blob-ext {
274 filename = SPL_VERDIN_AM62_DTB;
275 };
276 };
277 };
278
279 configurations {
280 default = "conf-0";
281
282 conf-0 {
283 description = "k3-am625-verdin-wifi-dev";
284 firmware = "atf";
Parth Pancholi5fa78e02024-04-15 09:54:58 +0200285 loadables = "tee", "tifsstub-hs", "tifsstub-fs",
286 "tifsstub-gp", "dm", "spl";
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200287 fdt = "fdt-0";
288 };
289 };
290 };
291 };
292};
293
294&binman {
295 u-boot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530296 insert-template = <&u_boot_template>;
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200297
298 fit {
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200299 images {
300 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530301 description = "U-Boot fot AM625 Verdin Board";
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200302 };
303
304 fdt-0 {
305 description = "k3-am625-verdin-wifi-dev";
306 type = "flat_dt";
307 arch = "arm";
308 compression = "none";
309 ti-secure {
310 content = <&verdin_am62_dtb>;
311 keyfile = "custMpk.pem";
312 };
313 verdin_am62_dtb: blob-ext {
314 filename = VERDIN_AM62_DTB;
315 };
316 hash {
317 algo = "crc32";
318 };
319 };
320 };
321
322 configurations {
323 default = "conf-0";
324
325 conf-0 {
326 description = "k3-am625-verdin-wifi-dev";
327 firmware = "uboot";
328 loadables = "uboot";
329 fdt = "fdt-0";
330 };
331 };
332 };
333 };
334};
335
336&binman {
337 ti-spl_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530338 insert-template = <&ti_spl_unsigned_template>;
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200339
340 fit {
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200341 images {
Parth Pancholi5fa78e02024-04-15 09:54:58 +0200342 tifsstub-hs {
343 description = "tifsstub";
344 type = "firmware";
345 arch = "arm32";
346 compression = "none";
347 os = "tifsstub-hs";
348 load = <0x9dc00000>;
349 entry = <0x9dc00000>;
350 blob-ext {
351 filename = "tifsstub.bin_hs";
352 };
353 };
354
355 tifsstub-fs {
356 description = "tifsstub";
357 type = "firmware";
358 arch = "arm32";
359 compression = "none";
360 os = "tifsstub-fs";
361 load = <0x9dc00000>;
362 entry = <0x9dc00000>;
363 blob-ext {
364 filename = "tifsstub.bin_fs";
365 };
366 };
367
368 tifsstub-gp {
369 description = "tifsstub";
370 type = "firmware";
371 arch = "arm32";
372 compression = "none";
373 os = "tifsstub-gp";
374 load = <0x9dc00000>;
375 entry = <0x9dc00000>;
376 blob-ext {
377 filename = "tifsstub.bin_gp";
378 };
379 };
380
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200381 dm {
Neha Malcom Francis82378212023-12-05 15:12:19 +0530382 ti-dm {
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200383 filename = "ti-dm.bin";
384 };
385 };
386
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200387 fdt-0 {
388 description = "k3-am625-verdin-wifi-dev";
389 type = "flat_dt";
390 arch = "arm";
391 compression = "none";
392 blob {
393 filename = SPL_VERDIN_AM62_DTB;
394 };
395 };
396 };
397
398 configurations {
399 default = "conf-0";
400
401 conf-0 {
402 description = "k3-am625-verdin-wifi-dev";
403 firmware = "atf";
Parth Pancholi5fa78e02024-04-15 09:54:58 +0200404 loadables = "tee", "tifsstub-hs", "tifsstub-fs",
405 "tifsstub-gp", "dm", "spl";
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200406 fdt = "fdt-0";
407 };
408 };
409 };
410 };
411};
412
413&binman {
414 u-boot_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530415 insert-template = <&u_boot_unsigned_template>;
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200416
417 fit {
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200418 images {
419 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530420 description = "U-Boot for AM625 Verdin Board";
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200421 };
422
423 fdt-0 {
424 description = "k3-am625-verdin-wifi-dev";
425 type = "flat_dt";
426 arch = "arm";
427 compression = "none";
428 blob {
429 filename = VERDIN_AM62_DTB;
430 };
431 hash {
432 algo = "crc32";
433 };
434 };
435 };
436
437 configurations {
438 default = "conf-0";
439
440 conf-0 {
441 description = "k3-am625-verdin-wifi-dev";
442 firmware = "uboot";
443 loadables = "uboot";
444 fdt = "fdt-0";
445 };
446 };
447 };
448 };
449};
450
Andrejs Cainikovs34344092024-06-05 11:10:57 +0200451&binman {
452 firmware-verdin-am62-gp.bin {
453 filename = "firmware-verdin-am62-gp.bin";
454
455 blob-ext@1 {
456 filename = "tiboot3-am62x-gp-verdin.bin";
457 };
458
459 blob-ext@2 {
460 filename = "tispl.bin_unsigned";
461 /*
462 * This value matches CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
463 * from R5 SPL config.
464 */
465 offset = <0x80000>;
466 };
467
468 blob-ext@3 {
469 filename = "u-boot.img_unsigned";
470 offset = <(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)>;
471 };
472 };
473
474 firmware-verdin-am62-hs.bin {
475 filename = "firmware-verdin-am62-hs.bin";
476
477 blob-ext@1 {
478 filename = "tiboot3-am62x-hs-verdin.bin";
479 };
480
481 blob-ext@2 {
482 filename = "tispl.bin";
483 /*
484 * This value matches CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
485 * from R5 SPL config.
486 */
487 offset = <0x80000>;
488 };
489
490 blob-ext@3 {
491 filename = "u-boot.img";
492 offset = <(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)>;
493 };
494 };
495
496 firmware-verdin-am62-hs-fs.bin {
497 filename = "firmware-verdin-am62-hs-fs.bin";
498
499 blob-ext@1 {
500 filename = "tiboot3-am62x-hs-fs-verdin.bin";
501 };
502
503 blob-ext@2 {
504 filename = "tispl.bin";
505 /*
506 * This value matches CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR
507 * from R5 SPL config.
508 */
509 offset = <0x80000>;
510 };
511
512 blob-ext@3 {
513 filename = "u-boot.img";
514 offset = <(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)>;
515 };
516 };
517};
518
Marcel Ziswiler315deb32023-08-04 12:08:08 +0200519#endif /* CONFIG_TARGET_VERDIN_AM62_A53 */