blob: ed973541ffffc5709e403b1ea756267730a8d061 [file] [log] [blame]
Neha Malcom Francise4824452023-07-22 00:14:40 +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_AM62A7_R5_EVM
9
10&rcfg_yaml_tifs {
11 config = "tifs-rm-cfg.yaml";
12};
13
14&binman {
15 tiboot3-am62ax-hs-evm.bin {
16 filename = "tiboot3-am62ax-hs-evm.bin";
17 ti-secure-rom {
18 content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>,
19 <&combined_dm_cfg>, <&sysfw_inner_cert>;
20 combined;
21 dm-data;
22 sysfw-inner-cert;
23 keyfile = "custMpk.pem";
24 sw-rev = <1>;
25 content-sbl = <&u_boot_spl>;
26 content-sysfw = <&ti_fs_enc>;
27 content-sysfw-data = <&combined_tifs_cfg>;
28 content-sysfw-inner-cert = <&sysfw_inner_cert>;
29 content-dm-data = <&combined_dm_cfg>;
30 load = <0x43c00000>;
31 load-sysfw = <0x40000>;
32 load-sysfw-data = <0x67000>;
33 load-dm-data = <0x43c3a800>;
34 };
35 u_boot_spl: u-boot-spl {
36 no-expanded;
37 };
38 ti_fs_enc: ti-fs-enc.bin {
39 filename = "ti-sysfw/ti-fs-firmware-am62ax-hs-enc.bin";
40 type = "blob-ext";
41 optional;
42 };
43 combined_tifs_cfg: combined-tifs-cfg.bin {
44 filename = "combined-tifs-cfg.bin";
45 type = "blob-ext";
46 };
47 sysfw_inner_cert: sysfw-inner-cert {
48 filename = "ti-sysfw/ti-fs-firmware-am62ax-hs-cert.bin";
49 type = "blob-ext";
50 optional;
51 };
52 combined_dm_cfg: combined-dm-cfg.bin {
53 filename = "combined-dm-cfg.bin";
54 type = "blob-ext";
55 };
56 };
57};
58
59&binman {
60 tiboot3-am62ax-hs-fs-evm.bin {
61 filename = "tiboot3-am62ax-hs-fs-evm.bin";
62 symlink = "tiboot3.bin";
63 ti-secure-rom {
64 content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>,
65 <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>;
66 combined;
67 dm-data;
68 sysfw-inner-cert;
69 keyfile = "custMpk.pem";
70 sw-rev = <1>;
71 content-sbl = <&u_boot_spl_fs>;
72 content-sysfw = <&ti_fs_enc_fs>;
73 content-sysfw-data = <&combined_tifs_cfg_fs>;
74 content-sysfw-inner-cert = <&sysfw_inner_cert_fs>;
75 content-dm-data = <&combined_dm_cfg_fs>;
76 load = <0x43c00000>;
77 load-sysfw = <0x40000>;
78 load-sysfw-data = <0x67000>;
79 load-dm-data = <0x43c3a800>;
80 };
81 u_boot_spl_fs: u-boot-spl {
82 no-expanded;
83 };
84 ti_fs_enc_fs: ti-fs-enc.bin {
85 filename = "ti-sysfw/ti-fs-firmware-am62ax-hs-fs-enc.bin";
86 type = "blob-ext";
87 optional;
88 };
89 combined_tifs_cfg_fs: combined-tifs-cfg.bin {
90 filename = "combined-tifs-cfg.bin";
91 type = "blob-ext";
92 };
93 sysfw_inner_cert_fs: sysfw-inner-cert {
94 filename = "ti-sysfw/ti-fs-firmware-am62ax-hs-fs-cert.bin";
95 type = "blob-ext";
96 optional;
97 };
98 combined_dm_cfg_fs: combined-dm-cfg.bin {
99 filename = "combined-dm-cfg.bin";
100 type = "blob-ext";
101 };
102 };
103};
104
105&binman {
106 tiboot3-am62ax-gp-evm.bin {
107 filename = "tiboot3-am62ax-gp-evm.bin";
108 ti-secure-rom {
109 content = <&u_boot_spl_unsigned>, <&ti_fs_gp>,
110 <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>;
111 combined;
112 dm-data;
113 content-sbl = <&u_boot_spl_unsigned>;
114 load = <0x43c00000>;
115 content-sysfw = <&ti_fs_gp>;
116 load-sysfw = <0x40000>;
117 content-sysfw-data = <&combined_tifs_cfg_gp>;
118 load-sysfw-data = <0x67000>;
119 content-dm-data = <&combined_dm_cfg_gp>;
120 load-dm-data = <0x43c3a800>;
121 sw-rev = <1>;
122 keyfile = "ti-degenerate-key.pem";
123 };
124 u_boot_spl_unsigned: u-boot-spl {
125 no-expanded;
126 };
127 ti_fs_gp: ti-fs-gp.bin {
128 filename = "ti-sysfw/ti-fs-firmware-am62ax-gp.bin";
129 type = "blob-ext";
130 optional;
131 };
132 combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin {
133 filename = "combined-tifs-cfg.bin";
134 type = "blob-ext";
135 };
136 combined_dm_cfg_gp: combined-dm-cfg-gp.bin {
137 filename = "combined-dm-cfg.bin";
138 type = "blob-ext";
139 };
140 };
141};
142
143#endif
144
145#ifdef CONFIG_TARGET_AM62A7_A53_EVM
146
Nishanth Menon53cc5b02024-06-05 10:27:52 -0500147#define SPL_AM62A7_SK_DTB "spl/dts/ti/k3-am62a7-sk.dtb"
Manorit Chawdhry64ebddb2023-07-14 11:22:38 +0530148#define AM62A7_SK_DTB "u-boot.dtb"
Neha Malcom Francise4824452023-07-22 00:14:40 +0530149
150&binman {
Dhruva Goled980cb22024-06-07 14:26:40 +0530151 tifsstub-hs {
152 filename = "tifsstub.bin_hs";
153 ti-secure-rom {
154 content = <&tifsstub_hs_cert>;
155 core = "secure";
156 load = <0x60000>;
157 sw-rev = <CONFIG_K3_X509_SWRV>;
158 keyfile = "custMpk.pem";
159 countersign;
160 tifsstub;
161 };
162 tifsstub_hs_cert: tifsstub-hs-cert.bin {
163 filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-cert.bin";
164 type = "blob-ext";
165 optional;
166 };
167 tifsstub_hs_enc: tifsstub-hs-enc.bin {
168 filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-enc.bin";
169 type = "blob-ext";
170 optional;
171 };
172 };
173
174 tifsstub-fs {
175 filename = "tifsstub.bin_fs";
176 tifsstub_fs_cert: tifsstub-fs-cert.bin {
177 filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-cert.bin";
178 type = "blob-ext";
179 optional;
180 };
181 tifsstub_fs_enc: tifsstub-fs-enc.bin {
182 filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-enc.bin";
183 type = "blob-ext";
184 optional;
185 };
186
187 };
188
189 tifsstub-gp {
190 filename = "tifsstub.bin_gp";
191 ti-secure-rom {
192 content = <&tifsstub_gp>;
193 core = "secure";
194 load = <0x60000>;
195 sw-rev = <CONFIG_K3_X509_SWRV>;
196 keyfile = "ti-degenerate-key.pem";
197 tifsstub;
198 };
199 tifsstub_gp: tifsstub-gp.bin {
200 filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-gp.bin";
201 type = "blob-ext";
202 optional;
203 };
204 };
205
Neha Malcom Francise4824452023-07-22 00:14:40 +0530206 ti-spl {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530207 insert-template = <&ti_spl_template>;
Neha Malcom Francise4824452023-07-22 00:14:40 +0530208
209 fit {
Neha Malcom Francise4824452023-07-22 00:14:40 +0530210 images {
Dhruva Goled980cb22024-06-07 14:26:40 +0530211 tifsstub-hs {
212 description = "TIFSSTUB";
213 type = "firmware";
214 arch = "arm32";
215 compression = "none";
216 os = "tifsstub-hs";
217 load = <0x9ca00000>;
218 entry = <0x9ca00000>;
219 blob-ext {
220 filename = "tifsstub.bin_hs";
221 };
222 };
223
224 tifsstub-fs {
225 description = "TIFSSTUB";
226 type = "firmware";
227 arch = "arm32";
228 compression = "none";
229 os = "tifsstub-fs";
230 load = <0x9ca00000>;
231 entry = <0x9ca00000>;
232 blob-ext {
233 filename = "tifsstub.bin_fs";
234 };
235 };
236
237 tifsstub-gp {
238 description = "TIFSSTUB";
239 type = "firmware";
240 arch = "arm32";
241 compression = "none";
242 os = "tifsstub-gp";
243 load = <0x9ca00000>;
244 entry = <0x9ca00000>;
245 blob-ext {
246 filename = "tifsstub.bin_gp";
247 };
248 };
Neha Malcom Francise4824452023-07-22 00:14:40 +0530249 dm {
Neha Malcom Francise4824452023-07-22 00:14:40 +0530250 ti-secure {
251 content = <&dm>;
252 keyfile = "custMpk.pem";
253 };
Neha Malcom Francis82378212023-12-05 15:12:19 +0530254 dm: ti-dm {
Andrew Davis7ed4a852025-04-25 17:54:03 -0500255 filename = "ti-dm/am62axx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
256 optional;
Neha Malcom Francise4824452023-07-22 00:14:40 +0530257 };
258 };
259
Neha Malcom Francise4824452023-07-22 00:14:40 +0530260 fdt-0 {
261 description = "k3-am62a7-sk";
262 type = "flat_dt";
263 arch = "arm";
264 compression = "none";
265 ti-secure {
266 content = <&spl_am62a7_sk_dtb>;
267 keyfile = "custMpk.pem";
268 };
269 spl_am62a7_sk_dtb: blob-ext {
270 filename = SPL_AM62A7_SK_DTB;
271 };
272
273 };
274
275 };
276
277 configurations {
278 default = "conf-0";
279
280 conf-0 {
281 description = "k3-am62a7-sk";
282 firmware = "atf";
Dhruva Goled980cb22024-06-07 14:26:40 +0530283 loadables = "tee", "dm", "spl",
284 "tifsstub-hs", "tifsstub-fs", "tifsstub-gp";
Neha Malcom Francise4824452023-07-22 00:14:40 +0530285 fdt = "fdt-0";
286 };
287 };
288 };
289 };
290};
291
292&binman {
293 u-boot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530294 insert-template = <&u_boot_template>;
Neha Malcom Francise4824452023-07-22 00:14:40 +0530295
296 fit {
Neha Malcom Francise4824452023-07-22 00:14:40 +0530297 images {
298 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530299 description = "U-Boot for AM62Ax Board";
Neha Malcom Francise4824452023-07-22 00:14:40 +0530300 };
301
302 fdt-0 {
303 description = "k3-am62a7-sk";
304 type = "flat_dt";
305 arch = "arm";
306 compression = "none";
307 ti-secure {
308 content = <&am62a7_sk_dtb>;
309 keyfile = "custMpk.pem";
310 };
311 am62a7_sk_dtb: blob-ext {
312 filename = AM62A7_SK_DTB;
313 };
314 hash {
315 algo = "crc32";
316 };
317 };
318 };
319
320 configurations {
321 default = "conf-0";
322
323 conf-0 {
324 description = "k3-am62a7-sk";
325 firmware = "uboot";
326 loadables = "uboot";
327 fdt = "fdt-0";
328 };
329
330 };
331 };
332 };
333};
334
335&binman {
336 ti-spl_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530337 insert-template = <&ti_spl_unsigned_template>;
Neha Malcom Francise4824452023-07-22 00:14:40 +0530338
339 fit {
Neha Malcom Francise4824452023-07-22 00:14:40 +0530340 images {
Dhruva Goled980cb22024-06-07 14:26:40 +0530341 tifsstub-hs {
342 description = "tifsstub";
343 type = "firmware";
344 arch = "arm32";
345 compression = "none";
346 os = "tifsstub-hs";
347 load = <0x9ca00000>;
348 entry = <0x9ca00000>;
349 blob-ext {
350 filename = "tifsstub.bin_hs";
351 };
352 };
353
354 tifsstub-fs {
355 description = "tifsstub";
356 type = "firmware";
357 arch = "arm32";
358 compression = "none";
359 os = "tifsstub-fs";
360 load = <0x9ca00000>;
361 entry = <0x9ca00000>;
362 blob-ext {
363 filename = "tifsstub.bin_fs";
364 };
365 };
366
367 tifsstub-gp {
368 description = "tifsstub";
369 type = "firmware";
370 arch = "arm32";
371 compression = "none";
372 os = "tifsstub-gp";
373 load = <0x9ca00000>;
374 entry = <0x9ca00000>;
375 blob-ext {
376 filename = "tifsstub.bin_gp";
377 };
378 };
Neha Malcom Francise4824452023-07-22 00:14:40 +0530379 dm {
Neha Malcom Francis82378212023-12-05 15:12:19 +0530380 ti-dm {
Andrew Davis7ed4a852025-04-25 17:54:03 -0500381 filename = "ti-dm/am62axx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
382 optional;
Neha Malcom Francise4824452023-07-22 00:14:40 +0530383 };
384 };
385
Neha Malcom Francise4824452023-07-22 00:14:40 +0530386 fdt-0 {
387 description = "k3-am62a7-sk";
388 type = "flat_dt";
389 arch = "arm";
390 compression = "none";
391 blob {
392 filename = SPL_AM62A7_SK_DTB;
393 };
394 };
395 };
396
397 configurations {
398 default = "conf-0";
399
400 conf-0 {
401 description = "k3-am62a7-sk";
402 firmware = "atf";
Dhruva Goled980cb22024-06-07 14:26:40 +0530403 loadables = "tee", "dm", "spl",
404 "tifsstub-hs", "tifsstub-fs", "tifsstub-gp";
Neha Malcom Francise4824452023-07-22 00:14:40 +0530405 fdt = "fdt-0";
406 };
407 };
408 };
409 };
410};
411
412&binman {
413 u-boot_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530414 insert-template = <&u_boot_unsigned_template>;
Neha Malcom Francise4824452023-07-22 00:14:40 +0530415
416 fit {
Neha Malcom Francise4824452023-07-22 00:14:40 +0530417 images {
418 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530419 description = "U-Boot for AM62Ax Board";
Neha Malcom Francise4824452023-07-22 00:14:40 +0530420 };
421
422 fdt-0 {
423 description = "k3-am62a7-sk";
424 type = "flat_dt";
425 arch = "arm";
426 compression = "none";
427 blob {
428 filename = AM62A7_SK_DTB;
429 };
430 hash {
431 algo = "crc32";
432 };
433 };
434 };
435
436 configurations {
437 default = "conf-0";
438
439 conf-0 {
440 description = "k3-am62a7-sk";
441 firmware = "uboot";
442 loadables = "uboot";
443 fdt = "fdt-0";
444 };
445 };
446 };
447 };
448};
449#endif