blob: 325702ed6e0603ee1d6572d857cf0381c7e99a3a [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
Wadim Egorov42548a92025-03-05 05:58:37 +0100323 som-no-rtc {
324 description = "k3-am6xx-phycore-disable-rtc";
325 type = "flat_dt";
326 compression = "none";
327 load = <0x8F000000>;
328 arch = "arm";
329 ti-secure {
330 content = <&am6xx_phycore_disable_rtc_dtbo>;
331 keyfile = "custMpk.pem";
332 };
333 am6xx_phycore_disable_rtc_dtbo: blob-ext {
334 filename = "dts/upstream/src/arm64/ti/k3-am6xx-phycore-disable-rtc.dtbo";
335 };
336 };
337
338 som-no-spi {
339 description = "k3-am6xx-phycore-disable-spi-nor";
340 type = "flat_dt";
341 compression = "none";
342 load = <0x8F001000>;
343 arch = "arm";
344 ti-secure {
345 content = <&am6xx_phycore_disable_spi_not_dtbo>;
346 keyfile = "custMpk.pem";
347 };
348 am6xx_phycore_disable_spi_not_dtbo: blob-ext {
349 filename = "dts/upstream/src/arm64/ti/k3-am6xx-phycore-disable-spi-nor.dtbo";
350 };
351 };
352
353 som-no-eth {
354 description = "k3-am6xx-phycore-disable-eth-phy";
355 type = "flat_dt";
356 compression = "none";
357 load = <0x8F002000>;
358 arch = "arm";
359 ti-secure {
360 content = <&am6xx_phycore_disable_eth_phy_dtbo>;
361 keyfile = "custMpk.pem";
362 };
363 am6xx_phycore_disable_eth_phy_dtbo: blob-ext {
364 filename = "dts/upstream/src/arm64/ti/k3-am6xx-phycore-disable-eth-phy.dtbo";
365 };
366 };
367
368 som-qspi {
369 description = "k3-am6xx-phycore-qspi-nor";
370 type = "flat_dt";
371 compression = "none";
372 load = <0x8F003000>;
373 arch = "arm";
374 ti-secure {
375 content = <&am6xx_phycore_disable_qspi_nor_dtbo>;
376 keyfile = "custMpk.pem";
377 };
378 am6xx_phycore_disable_qspi_nor_dtbo: blob-ext {
379 filename = "dts/upstream/src/arm64/ti/k3-am6xx-phycore-qspi-nor.dtbo";
380 };
381 };
382
Garrett Giordanoe1b8c392024-11-18 15:16:05 -0800383 fdt-0 {
384 description = "k3-am62a7-phyboard-lyra-rdk";
385 type = "flat_dt";
386 arch = "arm";
387 compression = "none";
388 ti-secure {
389 content = <&am62a7_phyboard_lyra_dtb>;
390 keyfile = "custMpk.pem";
391 };
392 am62a7_phyboard_lyra_dtb: blob-ext {
393 filename = AM62A7_PHYBOARD_LYRA_DTB;
394 };
395 hash {
396 algo = "crc32";
397 };
398 };
399 };
400
401 configurations {
402 default = "conf-0";
403
404 conf-0 {
405 description = "k3-am62a7-phyboard-lyra-rdk";
406 firmware = "uboot";
Wadim Egorov42548a92025-03-05 05:58:37 +0100407 loadables = "uboot",
408 "som-no-rtc",
409 "som-no-spi",
410 "som-no-eth",
411 "som-qspi";
Garrett Giordanoe1b8c392024-11-18 15:16:05 -0800412 fdt = "fdt-0";
413 };
414 };
415 };
416 };
417};
418
419&binman {
420 ti-spl_unsigned {
421 insert-template = <&ti_spl_unsigned_template>;
422
423 fit {
424 images {
425 tifsstub-hs {
426 description = "tifsstub";
427 type = "firmware";
428 arch = "arm32";
429 compression = "none";
430 os = "tifsstub-hs";
431 load = <0x9ca00000>;
432 entry = <0x9ca00000>;
433 blob-ext {
434 filename = "tifsstub.bin_hs";
435 };
436 };
437
438 tifsstub-fs {
439 description = "tifsstub";
440 type = "firmware";
441 arch = "arm32";
442 compression = "none";
443 os = "tifsstub-fs";
444 load = <0x9ca00000>;
445 entry = <0x9ca00000>;
446 blob-ext {
447 filename = "tifsstub.bin_fs";
448 };
449 };
450
451 tifsstub-gp {
452 description = "tifsstub";
453 type = "firmware";
454 arch = "arm32";
455 compression = "none";
456 os = "tifsstub-gp";
457 load = <0x9ca00000>;
458 entry = <0x9ca00000>;
459 blob-ext {
460 filename = "tifsstub.bin_gp";
461 };
462 };
463 dm {
464 ti-dm {
465 filename = "ti-dm.bin";
466 };
467 };
468
469 fdt-0 {
470 description = "k3-am62a7-phyboard-lyra-rdk";
471 type = "flat_dt";
472 arch = "arm";
473 compression = "none";
474 spl_am62a7_phyboard_lyra_dtb_unsigned: blob {
475 filename = SPL_AM62A7_PHYBOARD_LYRA_DTB;
476 };
477 };
478 };
479
480 configurations {
481 default = "conf-0";
482
483 conf-0 {
484 description = "k3-am62a7-phyboard-lyra-rdk";
485 firmware = "atf";
486 loadables = "tee", "dm", "spl",
487 "tifsstub-hs", "tifsstub-fs", "tifsstub-gp";
488 fdt = "fdt-0";
489 };
490 };
491 };
492 };
493};
494
495&binman {
496 u-boot_unsigned {
497 insert-template = <&u_boot_unsigned_template>;
498
499 fit {
500 images {
501 uboot {
502 description = "U-Boot for AM62Ax board";
503 };
504
505 fdt-0 {
506 description = "k3-am62a7-phyboard-lyra-rdk";
507 type = "flat_dt";
508 arch = "arm";
509 compression = "none";
510 blob {
511 filename = AM62A7_PHYBOARD_LYRA_DTB;
512 };
513 hash {
514 algo = "crc32";
515 };
516 };
517 };
518
519 configurations {
520 default = "conf-0";
521
522 conf-0 {
523 description = "k3-am62a7-phyboard-lyra-rdk";
524 firmware = "uboot";
525 loadables = "uboot";
526 fdt = "fdt-0";
527 };
528 };
529 };
530 };
531};
Wadim Egorovf7ca81e2025-03-05 05:58:26 +0100532
533#include "k3-binman-capsule.dtsi"
534
535&capsule_tispl {
536 efi-capsule {
537 /*
538 * The GUID is generated dynamically by taking a namespace UUID and hashing
539 * it with the board compatible and fw_image name:
540 * mkeficapsule guidgen k3-am62a7-phyboard-lyra-rdk.dtb PHYCORE_AM62AX_SPL
541 */
542 image-guid = "14F968A2-7C3A-50AD-9356-192F07AD2A9C";
543 };
544};
545
546&capsule_uboot {
547 efi-capsule {
548 /*
549 * The GUID is generated dynamically by taking a namespace UUID and hashing
550 * it with the board compatible and fw_image name:
551 * mkeficapsule guidgen k3-am62a7-phyboard-lyra-rdk.dtb PHYCORE_AM62AX_UBOOT
552 */
553 image-guid = "1F1148C5-2785-5E7C-9C58-C5B1EC0DC80C";
554 };
555};
556
557#endif /* CONFIG_TARGET_PHYCORE_AM62AX_A53 */