blob: 7a5b14da7198b74811d402d8a9b0848ffb5b3c34 [file] [log] [blame]
Garrett Giordanoe1b8c392024-11-18 15:16:05 -08001// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Based on k3-am62a-sk-binman.dtsi
4 *
5 * Copyright (C) 2024 PHYTEC America LLC
6 * Author: Garrett Giordano <ggiordano@phytec.com>
7 */
8
9#include "k3-binman.dtsi"
10
11#ifdef CONFIG_TARGET_PHYCORE_AM62AX_R5
12
13&rcfg_yaml_tifs {
14 config = "tifs-rm-cfg.yaml";
15};
16
17&binman {
18 tiboot3-am62ax-hs-phycore-som.bin {
19 filename = "tiboot3-am62ax-hs-phycore-som.bin";
20 ti-secure-rom {
21 content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>,
22 <&combined_dm_cfg>, <&sysfw_inner_cert>;
23 combined;
24 dm-data;
25 sysfw-inner-cert;
26 keyfile = "custMpk.pem";
27 sw-rev = <1>;
28 content-sbl = <&u_boot_spl>;
29 content-sysfw = <&ti_fs_enc>;
30 content-sysfw-data = <&combined_tifs_cfg>;
31 content-sysfw-inner-cert = <&sysfw_inner_cert>;
32 content-dm-data = <&combined_dm_cfg>;
33 load = <0x43c00000>;
34 load-sysfw = <0x40000>;
35 load-sysfw-data = <0x67000>;
36 load-dm-data = <0x43c3a800>;
37 };
38 u_boot_spl: u-boot-spl {
39 no-expanded;
40 };
41 ti_fs_enc: ti-fs-enc.bin {
42 filename = "ti-sysfw/ti-fs-firmware-am62ax-hs-enc.bin";
43 type = "blob-ext";
44 optional;
45 };
46 combined_tifs_cfg: combined-tifs-cfg.bin {
47 filename = "combined-tifs-cfg.bin";
48 type = "blob-ext";
49 };
50 sysfw_inner_cert: sysfw-inner-cert {
51 filename = "ti-sysfw/ti-fs-firmware-am62ax-hs-cert.bin";
52 type = "blob-ext";
53 optional;
54 };
55 combined_dm_cfg: combined-dm-cfg.bin {
56 filename = "combined-dm-cfg.bin";
57 type = "blob-ext";
58 };
59 };
60};
61
62&binman {
63 tiboot3-am62ax-hs-fs-phycore-som.bin {
64 filename = "tiboot3-am62ax-hs-fs-phycore-som.bin";
65 symlink = "tiboot3.bin";
66 ti-secure-rom {
67 content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>,
68 <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>;
69 combined;
70 dm-data;
71 sysfw-inner-cert;
72 keyfile = "custMpk.pem";
73 sw-rev = <1>;
74 content-sbl = <&u_boot_spl_fs>;
75 content-sysfw = <&ti_fs_enc_fs>;
76 content-sysfw-data = <&combined_tifs_cfg_fs>;
77 content-sysfw-inner-cert = <&sysfw_inner_cert_fs>;
78 content-dm-data = <&combined_dm_cfg_fs>;
79 load = <0x43c00000>;
80 load-sysfw = <0x40000>;
81 load-sysfw-data = <0x67000>;
82 load-dm-data = <0x43c3a800>;
83 };
84 u_boot_spl_fs: u-boot-spl {
85 no-expanded;
86 };
87 ti_fs_enc_fs: ti-fs-enc.bin {
88 filename = "ti-sysfw/ti-fs-firmware-am62ax-hs-fs-enc.bin";
89 type = "blob-ext";
90 optional;
91 };
92 combined_tifs_cfg_fs: combined-tifs-cfg.bin {
93 filename = "combined-tifs-cfg.bin";
94 type = "blob-ext";
95 };
96 sysfw_inner_cert_fs: sysfw-inner-cert {
97 filename = "ti-sysfw/ti-fs-firmware-am62ax-hs-fs-cert.bin";
98 type = "blob-ext";
99 optional;
100 };
101 combined_dm_cfg_fs: combined-dm-cfg.bin {
102 filename = "combined-dm-cfg.bin";
103 type = "blob-ext";
104 };
105 };
106};
107
108&binman {
109 tiboot3-am62ax-gp-phycore-som.bin {
110 filename = "tiboot3-am62ax-gp-phycore-som.bin";
111 ti-secure-rom {
112 content = <&u_boot_spl_unsigned>, <&ti_fs_gp>,
113 <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>;
114 combined;
115 dm-data;
116 content-sbl = <&u_boot_spl_unsigned>;
117 load = <0x43c00000>;
118 content-sysfw = <&ti_fs_gp>;
119 load-sysfw = <0x40000>;
120 content-sysfw-data = <&combined_tifs_cfg_gp>;
121 load-sysfw-data = <0x67000>;
122 content-dm-data = <&combined_dm_cfg_gp>;
123 load-dm-data = <0x43c3a800>;
124 sw-rev = <1>;
125 keyfile = "ti-degenerate-key.pem";
126 };
127 u_boot_spl_unsigned: u-boot-spl {
128 no-expanded;
129 };
130 ti_fs_gp: ti-fs-gp.bin {
131 filename = "ti-sysfw/ti-fs-firmware-am62ax-gp.bin";
132 type = "blob-ext";
133 optional;
134 };
135 combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin {
136 filename = "combined-tifs-cfg.bin";
137 type = "blob-ext";
138 };
139 combined_dm_cfg_gp: combined-dm-cfg-gp.bin {
140 filename = "combined-dm-cfg.bin";
141 type = "blob-ext";
142 };
143 };
144};
Wadim Egorovf7ca81e2025-03-05 05:58:26 +0100145
146#include "k3-binman-capsule-r5.dtsi"
147
148&capsule_tiboot3 {
149 efi-capsule {
150 /*
151 * The GUID is generated dynamically by taking a namespace UUID and hashing
152 * it with the board compatible and fw_image name:
153 * mkeficapsule guidgen k3-am62a7-r5-phycore-som-2gb.dtb PHYCORE_AM62AX_TIBOOT3
154 */
155 image-guid = "07CA7DD0-85FF-597E-A485-B2423D3AE6C1";
156 };
157};
158
159#endif /* CONFIG_TARGET_PHYCORE_AM62AX_R5 */
Garrett Giordanoe1b8c392024-11-18 15:16:05 -0800160
161#ifdef CONFIG_TARGET_PHYCORE_AM62AX_A53
162
163#define SPL_AM62A7_PHYBOARD_LYRA_DTB "spl/dts/ti/k3-am62a7-phyboard-lyra-rdk.dtb"
164#define AM62A7_PHYBOARD_LYRA_DTB "u-boot.dtb"
165
166&binman {
167 ti-dm {
168 filename = "ti-dm.bin";
169 blob-ext {
170 filename = "ti-dm/am62axx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
171 optional;
172 };
173 };
174
175 tifsstub-hs {
176 filename = "tifsstub.bin_hs";
177 ti-secure-rom {
178 content = <&tifsstub_hs_cert>;
179 core = "secure";
180 load = <0x60000>;
181 sw-rev = <CONFIG_K3_X509_SWRV>;
182 keyfile = "custMpk.pem";
183 countersign;
184 tifsstub;
185 };
186 tifsstub_hs_cert: tifsstub-hs-cert.bin {
187 filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-cert.bin";
188 type = "blob-ext";
189 optional;
190 };
191 tifsstub_hs_enc: tifsstub-hs-enc.bin {
192 filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-enc.bin";
193 type = "blob-ext";
194 optional;
195 };
196 };
197
198 tifsstub-fs {
199 filename = "tifsstub.bin_fs";
200 tifsstub_fs_cert: tifsstub-fs-cert.bin {
201 filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-cert.bin";
202 type = "blob-ext";
203 optional;
204 };
205 tifsstub_fs_enc: tifsstub-fs-enc.bin {
206 filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-enc.bin";
207 type = "blob-ext";
208 optional;
209 };
210
211 };
212
213 tifsstub-gp {
214 filename = "tifsstub.bin_gp";
215 ti-secure-rom {
216 content = <&tifsstub_gp>;
217 core = "secure";
218 load = <0x60000>;
219 sw-rev = <CONFIG_K3_X509_SWRV>;
220 keyfile = "ti-degenerate-key.pem";
221 tifsstub;
222 };
223 tifsstub_gp: tifsstub-gp.bin {
224 filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-gp.bin";
225 type = "blob-ext";
226 optional;
227 };
228 };
229
230 ti-spl {
231 insert-template = <&ti_spl_template>;
232
233 fit {
234 images {
235 tifsstub-hs {
236 description = "TIFSSTUB";
237 type = "firmware";
238 arch = "arm32";
239 compression = "none";
240 os = "tifsstub-hs";
241 load = <0x9ca00000>;
242 entry = <0x9ca00000>;
243 blob-ext {
244 filename = "tifsstub.bin_hs";
245 };
246 };
247
248 tifsstub-fs {
249 description = "TIFSSTUB";
250 type = "firmware";
251 arch = "arm32";
252 compression = "none";
253 os = "tifsstub-fs";
254 load = <0x9ca00000>;
255 entry = <0x9ca00000>;
256 blob-ext {
257 filename = "tifsstub.bin_fs";
258 };
259 };
260
261 tifsstub-gp {
262 description = "TIFSSTUB";
263 type = "firmware";
264 arch = "arm32";
265 compression = "none";
266 os = "tifsstub-gp";
267 load = <0x9ca00000>;
268 entry = <0x9ca00000>;
269 blob-ext {
270 filename = "tifsstub.bin_gp";
271 };
272 };
273 dm {
274 ti-secure {
275 content = <&dm>;
276 keyfile = "custMpk.pem";
277 };
278 dm: ti-dm {
279 filename = "ti-dm.bin";
280 };
281 };
282
283 fdt-0 {
284 description = "k3-am62a7-phyboard-lyra-rdk";
285 type = "flat_dt";
286 arch = "arm";
287 compression = "none";
288 ti-secure {
289 content = <&spl_am62a7_phyboard_lyra_dtb>;
290 keyfile = "custMpk.pem";
291 };
292 spl_am62a7_phyboard_lyra_dtb: blob-ext {
293 filename = SPL_AM62A7_PHYBOARD_LYRA_DTB;
294 };
295 };
296 };
297
298 configurations {
299 default = "conf-0";
300
301 conf-0 {
302 description = "k3-am62a7-phyboard-lyra-rdk";
303 firmware = "atf";
304 loadables = "tee", "dm", "spl",
305 "tifsstub-hs", "tifsstub-fs", "tifsstub-gp";
306 fdt = "fdt-0";
307 };
308 };
309 };
310 };
311};
312
313&binman {
314 u-boot {
315 insert-template = <&u_boot_template>;
316
317 fit {
318 images {
319 uboot {
320 description = "U-Boot for AM62Ax board";
321 };
322
323 fdt-0 {
324 description = "k3-am62a7-phyboard-lyra-rdk";
325 type = "flat_dt";
326 arch = "arm";
327 compression = "none";
328 ti-secure {
329 content = <&am62a7_phyboard_lyra_dtb>;
330 keyfile = "custMpk.pem";
331 };
332 am62a7_phyboard_lyra_dtb: blob-ext {
333 filename = AM62A7_PHYBOARD_LYRA_DTB;
334 };
335 hash {
336 algo = "crc32";
337 };
338 };
339 };
340
341 configurations {
342 default = "conf-0";
343
344 conf-0 {
345 description = "k3-am62a7-phyboard-lyra-rdk";
346 firmware = "uboot";
347 loadables = "uboot";
348 fdt = "fdt-0";
349 };
350 };
351 };
352 };
353};
354
355&binman {
356 ti-spl_unsigned {
357 insert-template = <&ti_spl_unsigned_template>;
358
359 fit {
360 images {
361 tifsstub-hs {
362 description = "tifsstub";
363 type = "firmware";
364 arch = "arm32";
365 compression = "none";
366 os = "tifsstub-hs";
367 load = <0x9ca00000>;
368 entry = <0x9ca00000>;
369 blob-ext {
370 filename = "tifsstub.bin_hs";
371 };
372 };
373
374 tifsstub-fs {
375 description = "tifsstub";
376 type = "firmware";
377 arch = "arm32";
378 compression = "none";
379 os = "tifsstub-fs";
380 load = <0x9ca00000>;
381 entry = <0x9ca00000>;
382 blob-ext {
383 filename = "tifsstub.bin_fs";
384 };
385 };
386
387 tifsstub-gp {
388 description = "tifsstub";
389 type = "firmware";
390 arch = "arm32";
391 compression = "none";
392 os = "tifsstub-gp";
393 load = <0x9ca00000>;
394 entry = <0x9ca00000>;
395 blob-ext {
396 filename = "tifsstub.bin_gp";
397 };
398 };
399 dm {
400 ti-dm {
401 filename = "ti-dm.bin";
402 };
403 };
404
405 fdt-0 {
406 description = "k3-am62a7-phyboard-lyra-rdk";
407 type = "flat_dt";
408 arch = "arm";
409 compression = "none";
410 spl_am62a7_phyboard_lyra_dtb_unsigned: blob {
411 filename = SPL_AM62A7_PHYBOARD_LYRA_DTB;
412 };
413 };
414 };
415
416 configurations {
417 default = "conf-0";
418
419 conf-0 {
420 description = "k3-am62a7-phyboard-lyra-rdk";
421 firmware = "atf";
422 loadables = "tee", "dm", "spl",
423 "tifsstub-hs", "tifsstub-fs", "tifsstub-gp";
424 fdt = "fdt-0";
425 };
426 };
427 };
428 };
429};
430
431&binman {
432 u-boot_unsigned {
433 insert-template = <&u_boot_unsigned_template>;
434
435 fit {
436 images {
437 uboot {
438 description = "U-Boot for AM62Ax board";
439 };
440
441 fdt-0 {
442 description = "k3-am62a7-phyboard-lyra-rdk";
443 type = "flat_dt";
444 arch = "arm";
445 compression = "none";
446 blob {
447 filename = AM62A7_PHYBOARD_LYRA_DTB;
448 };
449 hash {
450 algo = "crc32";
451 };
452 };
453 };
454
455 configurations {
456 default = "conf-0";
457
458 conf-0 {
459 description = "k3-am62a7-phyboard-lyra-rdk";
460 firmware = "uboot";
461 loadables = "uboot";
462 fdt = "fdt-0";
463 };
464 };
465 };
466 };
467};
Wadim Egorovf7ca81e2025-03-05 05:58:26 +0100468
469#include "k3-binman-capsule.dtsi"
470
471&capsule_tispl {
472 efi-capsule {
473 /*
474 * The GUID is generated dynamically by taking a namespace UUID and hashing
475 * it with the board compatible and fw_image name:
476 * mkeficapsule guidgen k3-am62a7-phyboard-lyra-rdk.dtb PHYCORE_AM62AX_SPL
477 */
478 image-guid = "14F968A2-7C3A-50AD-9356-192F07AD2A9C";
479 };
480};
481
482&capsule_uboot {
483 efi-capsule {
484 /*
485 * The GUID is generated dynamically by taking a namespace UUID and hashing
486 * it with the board compatible and fw_image name:
487 * mkeficapsule guidgen k3-am62a7-phyboard-lyra-rdk.dtb PHYCORE_AM62AX_UBOOT
488 */
489 image-guid = "1F1148C5-2785-5E7C-9C58-C5B1EC0DC80C";
490 };
491};
492
493#endif /* CONFIG_TARGET_PHYCORE_AM62AX_A53 */