blob: 1871926c207765560a4be644fcd6a46c111b6a7c [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 {
Garrett Giordanoe1b8c392024-11-18 15:16:05 -0800167 tifsstub-hs {
168 filename = "tifsstub.bin_hs";
169 ti-secure-rom {
170 content = <&tifsstub_hs_cert>;
171 core = "secure";
172 load = <0x60000>;
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-am62ax-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-am62ax-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-am62ax-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-am62ax-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-am62ax-gp.bin";
217 type = "blob-ext";
218 optional;
219 };
220 };
221
222 ti-spl {
223 insert-template = <&ti_spl_template>;
224
225 fit {
226 images {
227 tifsstub-hs {
228 description = "TIFSSTUB";
229 type = "firmware";
230 arch = "arm32";
231 compression = "none";
232 os = "tifsstub-hs";
233 load = <0x9ca00000>;
234 entry = <0x9ca00000>;
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 = <0x9ca00000>;
247 entry = <0x9ca00000>;
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 = <0x9ca00000>;
260 entry = <0x9ca00000>;
261 blob-ext {
262 filename = "tifsstub.bin_gp";
263 };
264 };
265 dm {
266 ti-secure {
267 content = <&dm>;
268 keyfile = "custMpk.pem";
269 };
270 dm: ti-dm {
Andrew Davis7ed4a852025-04-25 17:54:03 -0500271 filename = "ti-dm/am62axx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
272 optional;
Garrett Giordanoe1b8c392024-11-18 15:16:05 -0800273 };
274 };
275
276 fdt-0 {
277 description = "k3-am62a7-phyboard-lyra-rdk";
278 type = "flat_dt";
279 arch = "arm";
280 compression = "none";
281 ti-secure {
282 content = <&spl_am62a7_phyboard_lyra_dtb>;
283 keyfile = "custMpk.pem";
284 };
285 spl_am62a7_phyboard_lyra_dtb: blob-ext {
286 filename = SPL_AM62A7_PHYBOARD_LYRA_DTB;
287 };
288 };
289 };
290
291 configurations {
292 default = "conf-0";
293
294 conf-0 {
295 description = "k3-am62a7-phyboard-lyra-rdk";
296 firmware = "atf";
297 loadables = "tee", "dm", "spl",
298 "tifsstub-hs", "tifsstub-fs", "tifsstub-gp";
299 fdt = "fdt-0";
300 };
301 };
302 };
303 };
304};
305
306&binman {
307 u-boot {
308 insert-template = <&u_boot_template>;
309
310 fit {
311 images {
312 uboot {
313 description = "U-Boot for AM62Ax board";
314 };
315
Wadim Egorov42548a92025-03-05 05:58:37 +0100316 som-no-rtc {
317 description = "k3-am6xx-phycore-disable-rtc";
318 type = "flat_dt";
319 compression = "none";
320 load = <0x8F000000>;
321 arch = "arm";
322 ti-secure {
323 content = <&am6xx_phycore_disable_rtc_dtbo>;
324 keyfile = "custMpk.pem";
325 };
326 am6xx_phycore_disable_rtc_dtbo: blob-ext {
327 filename = "dts/upstream/src/arm64/ti/k3-am6xx-phycore-disable-rtc.dtbo";
328 };
329 };
330
331 som-no-spi {
332 description = "k3-am6xx-phycore-disable-spi-nor";
333 type = "flat_dt";
334 compression = "none";
335 load = <0x8F001000>;
336 arch = "arm";
337 ti-secure {
338 content = <&am6xx_phycore_disable_spi_not_dtbo>;
339 keyfile = "custMpk.pem";
340 };
341 am6xx_phycore_disable_spi_not_dtbo: blob-ext {
342 filename = "dts/upstream/src/arm64/ti/k3-am6xx-phycore-disable-spi-nor.dtbo";
343 };
344 };
345
346 som-no-eth {
347 description = "k3-am6xx-phycore-disable-eth-phy";
348 type = "flat_dt";
349 compression = "none";
350 load = <0x8F002000>;
351 arch = "arm";
352 ti-secure {
353 content = <&am6xx_phycore_disable_eth_phy_dtbo>;
354 keyfile = "custMpk.pem";
355 };
356 am6xx_phycore_disable_eth_phy_dtbo: blob-ext {
357 filename = "dts/upstream/src/arm64/ti/k3-am6xx-phycore-disable-eth-phy.dtbo";
358 };
359 };
360
361 som-qspi {
362 description = "k3-am6xx-phycore-qspi-nor";
363 type = "flat_dt";
364 compression = "none";
365 load = <0x8F003000>;
366 arch = "arm";
367 ti-secure {
368 content = <&am6xx_phycore_disable_qspi_nor_dtbo>;
369 keyfile = "custMpk.pem";
370 };
371 am6xx_phycore_disable_qspi_nor_dtbo: blob-ext {
372 filename = "dts/upstream/src/arm64/ti/k3-am6xx-phycore-qspi-nor.dtbo";
373 };
374 };
375
Garrett Giordanoe1b8c392024-11-18 15:16:05 -0800376 fdt-0 {
377 description = "k3-am62a7-phyboard-lyra-rdk";
378 type = "flat_dt";
379 arch = "arm";
380 compression = "none";
381 ti-secure {
382 content = <&am62a7_phyboard_lyra_dtb>;
383 keyfile = "custMpk.pem";
384 };
385 am62a7_phyboard_lyra_dtb: blob-ext {
386 filename = AM62A7_PHYBOARD_LYRA_DTB;
387 };
388 hash {
389 algo = "crc32";
390 };
391 };
392 };
393
394 configurations {
395 default = "conf-0";
396
397 conf-0 {
398 description = "k3-am62a7-phyboard-lyra-rdk";
399 firmware = "uboot";
Wadim Egorov42548a92025-03-05 05:58:37 +0100400 loadables = "uboot",
401 "som-no-rtc",
402 "som-no-spi",
403 "som-no-eth",
404 "som-qspi";
Garrett Giordanoe1b8c392024-11-18 15:16:05 -0800405 fdt = "fdt-0";
406 };
407 };
408 };
409 };
410};
411
412&binman {
413 ti-spl_unsigned {
414 insert-template = <&ti_spl_unsigned_template>;
415
416 fit {
417 images {
418 tifsstub-hs {
419 description = "tifsstub";
420 type = "firmware";
421 arch = "arm32";
422 compression = "none";
423 os = "tifsstub-hs";
424 load = <0x9ca00000>;
425 entry = <0x9ca00000>;
426 blob-ext {
427 filename = "tifsstub.bin_hs";
428 };
429 };
430
431 tifsstub-fs {
432 description = "tifsstub";
433 type = "firmware";
434 arch = "arm32";
435 compression = "none";
436 os = "tifsstub-fs";
437 load = <0x9ca00000>;
438 entry = <0x9ca00000>;
439 blob-ext {
440 filename = "tifsstub.bin_fs";
441 };
442 };
443
444 tifsstub-gp {
445 description = "tifsstub";
446 type = "firmware";
447 arch = "arm32";
448 compression = "none";
449 os = "tifsstub-gp";
450 load = <0x9ca00000>;
451 entry = <0x9ca00000>;
452 blob-ext {
453 filename = "tifsstub.bin_gp";
454 };
455 };
456 dm {
457 ti-dm {
Andrew Davis7ed4a852025-04-25 17:54:03 -0500458 filename = "ti-dm/am62axx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
459 optional;
Garrett Giordanoe1b8c392024-11-18 15:16:05 -0800460 };
461 };
462
463 fdt-0 {
464 description = "k3-am62a7-phyboard-lyra-rdk";
465 type = "flat_dt";
466 arch = "arm";
467 compression = "none";
468 spl_am62a7_phyboard_lyra_dtb_unsigned: blob {
469 filename = SPL_AM62A7_PHYBOARD_LYRA_DTB;
470 };
471 };
472 };
473
474 configurations {
475 default = "conf-0";
476
477 conf-0 {
478 description = "k3-am62a7-phyboard-lyra-rdk";
479 firmware = "atf";
480 loadables = "tee", "dm", "spl",
481 "tifsstub-hs", "tifsstub-fs", "tifsstub-gp";
482 fdt = "fdt-0";
483 };
484 };
485 };
486 };
487};
488
489&binman {
490 u-boot_unsigned {
491 insert-template = <&u_boot_unsigned_template>;
492
493 fit {
494 images {
495 uboot {
496 description = "U-Boot for AM62Ax board";
497 };
498
499 fdt-0 {
500 description = "k3-am62a7-phyboard-lyra-rdk";
501 type = "flat_dt";
502 arch = "arm";
503 compression = "none";
504 blob {
505 filename = AM62A7_PHYBOARD_LYRA_DTB;
506 };
507 hash {
508 algo = "crc32";
509 };
510 };
511 };
512
513 configurations {
514 default = "conf-0";
515
516 conf-0 {
517 description = "k3-am62a7-phyboard-lyra-rdk";
518 firmware = "uboot";
519 loadables = "uboot";
520 fdt = "fdt-0";
521 };
522 };
523 };
524 };
525};
Wadim Egorovf7ca81e2025-03-05 05:58:26 +0100526
527#include "k3-binman-capsule.dtsi"
528
529&capsule_tispl {
530 efi-capsule {
531 /*
532 * The GUID is generated dynamically by taking a namespace UUID and hashing
533 * it with the board compatible and fw_image name:
534 * mkeficapsule guidgen k3-am62a7-phyboard-lyra-rdk.dtb PHYCORE_AM62AX_SPL
535 */
536 image-guid = "14F968A2-7C3A-50AD-9356-192F07AD2A9C";
537 };
538};
539
540&capsule_uboot {
541 efi-capsule {
542 /*
543 * The GUID is generated dynamically by taking a namespace UUID and hashing
544 * it with the board compatible and fw_image name:
545 * mkeficapsule guidgen k3-am62a7-phyboard-lyra-rdk.dtb PHYCORE_AM62AX_UBOOT
546 */
547 image-guid = "1F1148C5-2785-5E7C-9C58-C5B1EC0DC80C";
548 };
549};
550
551#endif /* CONFIG_TARGET_PHYCORE_AM62AX_A53 */