blob: 534eb14795b3dea6d064073a2b797af65b3cc824 [file] [log] [blame]
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +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_AM625_R5_EVM
9
10&binman {
11 tiboot3-am62x-hs-evm.bin {
12 filename = "tiboot3-am62x-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 = <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-evm.bin {
57 filename = "tiboot3-am62x-hs-fs-evm.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-evm.bin {
103 filename = "tiboot3-am62x-gp-evm.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
Jonathan Humphreys9db4cf72024-05-31 17:51:08 -0500140#include "k3-binman-capsule-r5.dtsi"
141
142// Capsule update GUIDs in string form. See am62x_evm.h
143#define AM62X_SK_TIBOOT3_IMAGE_GUID_STR "abcb83d2-9cb6-4351-b8f1-6494bbe3700a"
144
145&capsule_tiboot3 {
146 efi-capsule {
147 image-guid = AM62X_SK_TIBOOT3_IMAGE_GUID_STR;
148 };
149};
150
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530151#endif
152
153#ifdef CONFIG_TARGET_AM625_A53_EVM
154
Nishanth Menon3088f662024-06-05 10:27:51 -0500155#define SPL_AM625_SK_DTB "spl/dts/ti/k3-am625-sk.dtb"
Manorit Chawdhry64ebddb2023-07-14 11:22:38 +0530156#define AM625_SK_DTB "u-boot.dtb"
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530157
158&binman {
159 ti-dm {
160 filename = "ti-dm.bin";
161 blob-ext {
162 filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
Neha Malcom Francisdf41fc62024-05-29 13:18:49 +0530163 optional;
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530164 };
165 };
Kamlesh Gurudasani977c09e2024-04-03 17:33:10 +0530166
167 tifsstub-hs {
168 filename = "tifsstub.bin_hs";
169 ti-secure-rom {
170 content = <&tifsstub_hs_cert>;
171 core = "secure";
172 load = <0x40000>;
173 sw-rev = <CONFIG_K3_X509_SWRV>;
174 keyfile = "custMpk.pem";
175 countersign;
176 tifsstub;
177 };
178 tifsstub_hs_cert: tifsstub-hs-cert.bin {
179 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin";
180 type = "blob-ext";
181 optional;
182 };
183 tifsstub_hs_enc: tifsstub-hs-enc.bin {
184 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin";
185 type = "blob-ext";
186 optional;
187 };
188 };
189
190 tifsstub-fs {
191 filename = "tifsstub.bin_fs";
192 tifsstub_fs_cert: tifsstub-fs-cert.bin {
193 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin";
194 type = "blob-ext";
195 optional;
196 };
197 tifsstub_fs_enc: tifsstub-fs-enc.bin {
198 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin";
199 type = "blob-ext";
200 optional;
201 };
202
203 };
204
205 tifsstub-gp {
206 filename = "tifsstub.bin_gp";
207 ti-secure-rom {
208 content = <&tifsstub_gp>;
209 core = "secure";
210 load = <0x60000>;
211 sw-rev = <CONFIG_K3_X509_SWRV>;
212 keyfile = "ti-degenerate-key.pem";
213 tifsstub;
214 };
215 tifsstub_gp: tifsstub-gp.bin {
216 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-gp.bin";
217 type = "blob-ext";
218 optional;
219 };
220 };
221
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530222 ti-spl {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530223 insert-template = <&ti_spl_template>;
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530224
225 fit {
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530226 images {
Kamlesh Gurudasani977c09e2024-04-03 17:33:10 +0530227
228 tifsstub-hs {
229 description = "TIFSSTUB";
230 type = "firmware";
231 arch = "arm32";
232 compression = "none";
233 os = "tifsstub-hs";
234 load = <0x9dc00000>;
235 entry = <0x9dc00000>;
236 blob-ext {
237 filename = "tifsstub.bin_hs";
238 };
239 };
240
241 tifsstub-fs {
242 description = "TIFSSTUB";
243 type = "firmware";
244 arch = "arm32";
245 compression = "none";
246 os = "tifsstub-fs";
247 load = <0x9dc00000>;
248 entry = <0x9dc00000>;
249 blob-ext {
250 filename = "tifsstub.bin_fs";
251 };
252 };
253
254 tifsstub-gp {
255 description = "TIFSSTUB";
256 type = "firmware";
257 arch = "arm32";
258 compression = "none";
259 os = "tifsstub-gp";
260 load = <0x9dc00000>;
261 entry = <0x9dc00000>;
262 blob-ext {
263 filename = "tifsstub.bin_gp";
264 };
265 };
266
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530267 dm {
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530268 ti-secure {
269 content = <&dm>;
270 keyfile = "custMpk.pem";
271 };
Neha Malcom Francis82378212023-12-05 15:12:19 +0530272 dm: ti-dm {
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530273 filename = "ti-dm.bin";
274 };
275 };
276
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530277 fdt-0 {
278 description = "k3-am625-sk";
279 type = "flat_dt";
280 arch = "arm";
281 compression = "none";
282 ti-secure {
283 content = <&spl_am625_sk_dtb>;
284 keyfile = "custMpk.pem";
285 };
286 spl_am625_sk_dtb: blob-ext {
287 filename = SPL_AM625_SK_DTB;
288 };
289
290 };
291
292 };
293
294 configurations {
295 default = "conf-0";
296
297 conf-0 {
298 description = "k3-am625-sk";
299 firmware = "atf";
Kamlesh Gurudasani977c09e2024-04-03 17:33:10 +0530300 loadables = "tee", "tifsstub-hs", "tifsstub-fs",
301 "tifsstub-gp", "dm", "spl";
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530302 fdt = "fdt-0";
303 };
304 };
305 };
306 };
307};
308
309&binman {
310 u-boot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530311 insert-template = <&u_boot_template>;
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530312
313 fit {
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530314 images {
315 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530316 description = "U-Boot for AM625 Board";
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530317 };
318
319 fdt-0 {
320 description = "k3-am625-sk";
321 type = "flat_dt";
322 arch = "arm";
323 compression = "none";
324 ti-secure {
325 content = <&am625_sk_dtb>;
326 keyfile = "custMpk.pem";
327 };
328 am625_sk_dtb: blob-ext {
329 filename = AM625_SK_DTB;
330 };
331 hash {
332 algo = "crc32";
333 };
334 };
335 };
336
337 configurations {
338 default = "conf-0";
339
340 conf-0 {
341 description = "k3-am625-sk";
342 firmware = "uboot";
343 loadables = "uboot";
344 fdt = "fdt-0";
345 };
346
347 };
348 };
349 };
350};
351
352&binman {
353 ti-spl_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530354 insert-template = <&ti_spl_unsigned_template>;
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530355
356 fit {
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530357 images {
358
Kamlesh Gurudasani977c09e2024-04-03 17:33:10 +0530359 tifsstub-hs {
360 description = "tifsstub";
361 type = "firmware";
362 arch = "arm32";
363 compression = "none";
364 os = "tifsstub-hs";
365 load = <0x9dc00000>;
366 entry = <0x9dc00000>;
367 blob-ext {
368 filename = "tifsstub.bin_hs";
369 };
370 };
371
372 tifsstub-fs {
373 description = "tifsstub";
374 type = "firmware";
375 arch = "arm32";
376 compression = "none";
377 os = "tifsstub-fs";
378 load = <0x9dc00000>;
379 entry = <0x9dc00000>;
380 blob-ext {
381 filename = "tifsstub.bin_fs";
382 };
383 };
384
385 tifsstub-gp {
386 description = "tifsstub";
387 type = "firmware";
388 arch = "arm32";
389 compression = "none";
390 os = "tifsstub-gp";
391 load = <0x9dc00000>;
392 entry = <0x9dc00000>;
393 blob-ext {
394 filename = "tifsstub.bin_gp";
395 };
396 };
397
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530398 dm {
Neha Malcom Francis82378212023-12-05 15:12:19 +0530399 ti-dm {
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530400 filename = "ti-dm.bin";
401 };
402 };
403
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530404 fdt-0 {
405 description = "k3-am625-sk";
406 type = "flat_dt";
407 arch = "arm";
408 compression = "none";
Nishanth Menonc3083d62023-08-25 13:03:02 -0500409 spl_am625_sk_dtb_unsigned: blob {
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530410 filename = SPL_AM625_SK_DTB;
411 };
412 };
413 };
414
415 configurations {
416 default = "conf-0";
417
418 conf-0 {
419 description = "k3-am625-sk";
420 firmware = "atf";
Kamlesh Gurudasani977c09e2024-04-03 17:33:10 +0530421 loadables = "tee", "tifsstub-hs", "tifsstub-fs",
422 "tifsstub-gp", "dm", "spl";
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530423 fdt = "fdt-0";
424 };
425 };
426 };
427 };
428};
429
430&binman {
431 u-boot_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530432 insert-template = <&u_boot_unsigned_template>;
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530433
434 fit {
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530435 images {
436 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530437 description = "U-Boot for AM625 Board";
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530438 };
439
440 fdt-0 {
441 description = "k3-am625-sk";
442 type = "flat_dt";
443 arch = "arm";
444 compression = "none";
Nishanth Menonc3083d62023-08-25 13:03:02 -0500445 am625_sk_dtb_unsigned: blob {
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530446 filename = AM625_SK_DTB;
447 };
448 hash {
449 algo = "crc32";
450 };
451 };
452 };
453
454 configurations {
455 default = "conf-0";
456
457 conf-0 {
458 description = "k3-am625-sk";
459 firmware = "uboot";
460 loadables = "uboot";
461 fdt = "fdt-0";
462 };
463 };
464 };
465 };
466};
Jonathan Humphreys9db4cf72024-05-31 17:51:08 -0500467
468#include "k3-binman-capsule.dtsi"
469
470// Capsule update GUIDs in string form. See am62x_evm.h
471#define AM62X_SK_SPL_IMAGE_GUID_STR "aee355fc-bf97-4264-8c82-437255efdc1d"
472#define AM62X_SK_UBOOT_IMAGE_GUID_STR "28ab8c6c-fca8-41d3-8ea1-5f171b7d2929"
473
474&capsule_tispl {
475 efi-capsule {
476 image-guid = AM62X_SK_SPL_IMAGE_GUID_STR;
477 };
478};
479
480&capsule_uboot {
481 efi-capsule {
482 image-guid = AM62X_SK_UBOOT_IMAGE_GUID_STR;
483 };
484};
485
Neha Malcom Francis8f8f4fc2023-07-22 00:14:38 +0530486#endif