blob: eadfa398fa3f5976ef7b582e916874d577abf71d [file] [log] [blame]
Neha Malcom Francisce46f512023-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 Humphreys01fe4cf2024-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 Francisce46f512023-07-22 00:14:38 +0530151#endif
152
153#ifdef CONFIG_TARGET_AM625_A53_EVM
154
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530155#define SPL_AM625_SK_DTB "spl/dts/k3-am625-sk.dtb"
Manorit Chawdhry17553572023-07-14 11:22:38 +0530156#define AM625_SK_DTB "u-boot.dtb"
Neha Malcom Francisce46f512023-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";
163 };
164 };
Kamlesh Gurudasani128f8122024-04-03 17:33:10 +0530165
166 tifsstub-hs {
167 filename = "tifsstub.bin_hs";
168 ti-secure-rom {
169 content = <&tifsstub_hs_cert>;
170 core = "secure";
171 load = <0x40000>;
172 sw-rev = <CONFIG_K3_X509_SWRV>;
173 keyfile = "custMpk.pem";
174 countersign;
175 tifsstub;
176 };
177 tifsstub_hs_cert: tifsstub-hs-cert.bin {
178 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin";
179 type = "blob-ext";
180 optional;
181 };
182 tifsstub_hs_enc: tifsstub-hs-enc.bin {
183 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin";
184 type = "blob-ext";
185 optional;
186 };
187 };
188
189 tifsstub-fs {
190 filename = "tifsstub.bin_fs";
191 tifsstub_fs_cert: tifsstub-fs-cert.bin {
192 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin";
193 type = "blob-ext";
194 optional;
195 };
196 tifsstub_fs_enc: tifsstub-fs-enc.bin {
197 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin";
198 type = "blob-ext";
199 optional;
200 };
201
202 };
203
204 tifsstub-gp {
205 filename = "tifsstub.bin_gp";
206 ti-secure-rom {
207 content = <&tifsstub_gp>;
208 core = "secure";
209 load = <0x60000>;
210 sw-rev = <CONFIG_K3_X509_SWRV>;
211 keyfile = "ti-degenerate-key.pem";
212 tifsstub;
213 };
214 tifsstub_gp: tifsstub-gp.bin {
215 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-gp.bin";
216 type = "blob-ext";
217 optional;
218 };
219 };
220
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530221 ti-spl {
Neha Malcom Francis4509b9f2023-11-15 15:40:24 +0530222 insert-template = <&ti_spl_template>;
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530223
224 fit {
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530225 images {
Kamlesh Gurudasani128f8122024-04-03 17:33:10 +0530226
227 tifsstub-hs {
228 description = "TIFSSTUB";
229 type = "firmware";
230 arch = "arm32";
231 compression = "none";
232 os = "tifsstub-hs";
233 load = <0x9dc00000>;
234 entry = <0x9dc00000>;
235 blob-ext {
236 filename = "tifsstub.bin_hs";
237 };
238 };
239
240 tifsstub-fs {
241 description = "TIFSSTUB";
242 type = "firmware";
243 arch = "arm32";
244 compression = "none";
245 os = "tifsstub-fs";
246 load = <0x9dc00000>;
247 entry = <0x9dc00000>;
248 blob-ext {
249 filename = "tifsstub.bin_fs";
250 };
251 };
252
253 tifsstub-gp {
254 description = "TIFSSTUB";
255 type = "firmware";
256 arch = "arm32";
257 compression = "none";
258 os = "tifsstub-gp";
259 load = <0x9dc00000>;
260 entry = <0x9dc00000>;
261 blob-ext {
262 filename = "tifsstub.bin_gp";
263 };
264 };
265
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530266 dm {
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530267 ti-secure {
268 content = <&dm>;
269 keyfile = "custMpk.pem";
270 };
Neha Malcom Francis3ef977e2023-12-05 15:12:19 +0530271 dm: ti-dm {
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530272 filename = "ti-dm.bin";
273 };
274 };
275
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530276 fdt-0 {
277 description = "k3-am625-sk";
278 type = "flat_dt";
279 arch = "arm";
280 compression = "none";
281 ti-secure {
282 content = <&spl_am625_sk_dtb>;
283 keyfile = "custMpk.pem";
284 };
285 spl_am625_sk_dtb: blob-ext {
286 filename = SPL_AM625_SK_DTB;
287 };
288
289 };
290
291 };
292
293 configurations {
294 default = "conf-0";
295
296 conf-0 {
297 description = "k3-am625-sk";
298 firmware = "atf";
Kamlesh Gurudasani128f8122024-04-03 17:33:10 +0530299 loadables = "tee", "tifsstub-hs", "tifsstub-fs",
300 "tifsstub-gp", "dm", "spl";
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530301 fdt = "fdt-0";
302 };
303 };
304 };
305 };
306};
307
308&binman {
309 u-boot {
Neha Malcom Francis4509b9f2023-11-15 15:40:24 +0530310 insert-template = <&u_boot_template>;
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530311
312 fit {
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530313 images {
314 uboot {
Neha Malcom Francis4509b9f2023-11-15 15:40:24 +0530315 description = "U-Boot for AM625 Board";
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530316 };
317
318 fdt-0 {
319 description = "k3-am625-sk";
320 type = "flat_dt";
321 arch = "arm";
322 compression = "none";
323 ti-secure {
324 content = <&am625_sk_dtb>;
325 keyfile = "custMpk.pem";
326 };
327 am625_sk_dtb: blob-ext {
328 filename = AM625_SK_DTB;
329 };
330 hash {
331 algo = "crc32";
332 };
333 };
334 };
335
336 configurations {
337 default = "conf-0";
338
339 conf-0 {
340 description = "k3-am625-sk";
341 firmware = "uboot";
342 loadables = "uboot";
343 fdt = "fdt-0";
344 };
345
346 };
347 };
348 };
349};
350
351&binman {
352 ti-spl_unsigned {
Neha Malcom Francis4509b9f2023-11-15 15:40:24 +0530353 insert-template = <&ti_spl_unsigned_template>;
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530354
355 fit {
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530356 images {
357
Kamlesh Gurudasani128f8122024-04-03 17:33:10 +0530358 tifsstub-hs {
359 description = "tifsstub";
360 type = "firmware";
361 arch = "arm32";
362 compression = "none";
363 os = "tifsstub-hs";
364 load = <0x9dc00000>;
365 entry = <0x9dc00000>;
366 blob-ext {
367 filename = "tifsstub.bin_hs";
368 };
369 };
370
371 tifsstub-fs {
372 description = "tifsstub";
373 type = "firmware";
374 arch = "arm32";
375 compression = "none";
376 os = "tifsstub-fs";
377 load = <0x9dc00000>;
378 entry = <0x9dc00000>;
379 blob-ext {
380 filename = "tifsstub.bin_fs";
381 };
382 };
383
384 tifsstub-gp {
385 description = "tifsstub";
386 type = "firmware";
387 arch = "arm32";
388 compression = "none";
389 os = "tifsstub-gp";
390 load = <0x9dc00000>;
391 entry = <0x9dc00000>;
392 blob-ext {
393 filename = "tifsstub.bin_gp";
394 };
395 };
396
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530397 dm {
Neha Malcom Francis3ef977e2023-12-05 15:12:19 +0530398 ti-dm {
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530399 filename = "ti-dm.bin";
400 };
401 };
402
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530403 fdt-0 {
404 description = "k3-am625-sk";
405 type = "flat_dt";
406 arch = "arm";
407 compression = "none";
Nishanth Menon24e27132023-08-25 13:03:02 -0500408 spl_am625_sk_dtb_unsigned: blob {
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530409 filename = SPL_AM625_SK_DTB;
410 };
411 };
412 };
413
414 configurations {
415 default = "conf-0";
416
417 conf-0 {
418 description = "k3-am625-sk";
419 firmware = "atf";
Kamlesh Gurudasani128f8122024-04-03 17:33:10 +0530420 loadables = "tee", "tifsstub-hs", "tifsstub-fs",
421 "tifsstub-gp", "dm", "spl";
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530422 fdt = "fdt-0";
423 };
424 };
425 };
426 };
427};
428
429&binman {
430 u-boot_unsigned {
Neha Malcom Francis4509b9f2023-11-15 15:40:24 +0530431 insert-template = <&u_boot_unsigned_template>;
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530432
433 fit {
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530434 images {
435 uboot {
Neha Malcom Francis4509b9f2023-11-15 15:40:24 +0530436 description = "U-Boot for AM625 Board";
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530437 };
438
439 fdt-0 {
440 description = "k3-am625-sk";
441 type = "flat_dt";
442 arch = "arm";
443 compression = "none";
Nishanth Menon24e27132023-08-25 13:03:02 -0500444 am625_sk_dtb_unsigned: blob {
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530445 filename = AM625_SK_DTB;
446 };
447 hash {
448 algo = "crc32";
449 };
450 };
451 };
452
453 configurations {
454 default = "conf-0";
455
456 conf-0 {
457 description = "k3-am625-sk";
458 firmware = "uboot";
459 loadables = "uboot";
460 fdt = "fdt-0";
461 };
462 };
463 };
464 };
465};
Jonathan Humphreys01fe4cf2024-05-31 17:51:08 -0500466
467#include "k3-binman-capsule.dtsi"
468
469// Capsule update GUIDs in string form. See am62x_evm.h
470#define AM62X_SK_SPL_IMAGE_GUID_STR "aee355fc-bf97-4264-8c82-437255efdc1d"
471#define AM62X_SK_UBOOT_IMAGE_GUID_STR "28ab8c6c-fca8-41d3-8ea1-5f171b7d2929"
472
473&capsule_tispl {
474 efi-capsule {
475 image-guid = AM62X_SK_SPL_IMAGE_GUID_STR;
476 };
477};
478
479&capsule_uboot {
480 efi-capsule {
481 image-guid = AM62X_SK_UBOOT_IMAGE_GUID_STR;
482 };
483};
484
Neha Malcom Francisce46f512023-07-22 00:14:38 +0530485#endif