blob: 2a8c260387b2ef79e4c71bc499ed509e3dc2c005 [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 {
151 ti-dm {
152 filename = "ti-dm.bin";
153 blob-ext {
154 filename = "ti-dm/am62axx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
Neha Malcom Francisdf41fc62024-05-29 13:18:49 +0530155 optional;
Neha Malcom Francise4824452023-07-22 00:14:40 +0530156 };
157 };
Dhruva Goled980cb22024-06-07 14:26:40 +0530158
159 tifsstub-hs {
160 filename = "tifsstub.bin_hs";
161 ti-secure-rom {
162 content = <&tifsstub_hs_cert>;
163 core = "secure";
164 load = <0x60000>;
165 sw-rev = <CONFIG_K3_X509_SWRV>;
166 keyfile = "custMpk.pem";
167 countersign;
168 tifsstub;
169 };
170 tifsstub_hs_cert: tifsstub-hs-cert.bin {
171 filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-cert.bin";
172 type = "blob-ext";
173 optional;
174 };
175 tifsstub_hs_enc: tifsstub-hs-enc.bin {
176 filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-enc.bin";
177 type = "blob-ext";
178 optional;
179 };
180 };
181
182 tifsstub-fs {
183 filename = "tifsstub.bin_fs";
184 tifsstub_fs_cert: tifsstub-fs-cert.bin {
185 filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-cert.bin";
186 type = "blob-ext";
187 optional;
188 };
189 tifsstub_fs_enc: tifsstub-fs-enc.bin {
190 filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-enc.bin";
191 type = "blob-ext";
192 optional;
193 };
194
195 };
196
197 tifsstub-gp {
198 filename = "tifsstub.bin_gp";
199 ti-secure-rom {
200 content = <&tifsstub_gp>;
201 core = "secure";
202 load = <0x60000>;
203 sw-rev = <CONFIG_K3_X509_SWRV>;
204 keyfile = "ti-degenerate-key.pem";
205 tifsstub;
206 };
207 tifsstub_gp: tifsstub-gp.bin {
208 filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-gp.bin";
209 type = "blob-ext";
210 optional;
211 };
212 };
213
Neha Malcom Francise4824452023-07-22 00:14:40 +0530214 ti-spl {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530215 insert-template = <&ti_spl_template>;
Neha Malcom Francise4824452023-07-22 00:14:40 +0530216
217 fit {
Neha Malcom Francise4824452023-07-22 00:14:40 +0530218 images {
Dhruva Goled980cb22024-06-07 14:26:40 +0530219 tifsstub-hs {
220 description = "TIFSSTUB";
221 type = "firmware";
222 arch = "arm32";
223 compression = "none";
224 os = "tifsstub-hs";
225 load = <0x9ca00000>;
226 entry = <0x9ca00000>;
227 blob-ext {
228 filename = "tifsstub.bin_hs";
229 };
230 };
231
232 tifsstub-fs {
233 description = "TIFSSTUB";
234 type = "firmware";
235 arch = "arm32";
236 compression = "none";
237 os = "tifsstub-fs";
238 load = <0x9ca00000>;
239 entry = <0x9ca00000>;
240 blob-ext {
241 filename = "tifsstub.bin_fs";
242 };
243 };
244
245 tifsstub-gp {
246 description = "TIFSSTUB";
247 type = "firmware";
248 arch = "arm32";
249 compression = "none";
250 os = "tifsstub-gp";
251 load = <0x9ca00000>;
252 entry = <0x9ca00000>;
253 blob-ext {
254 filename = "tifsstub.bin_gp";
255 };
256 };
Neha Malcom Francise4824452023-07-22 00:14:40 +0530257 dm {
Neha Malcom Francise4824452023-07-22 00:14:40 +0530258 ti-secure {
259 content = <&dm>;
260 keyfile = "custMpk.pem";
261 };
Neha Malcom Francis82378212023-12-05 15:12:19 +0530262 dm: ti-dm {
Neha Malcom Francise4824452023-07-22 00:14:40 +0530263 filename = "ti-dm.bin";
264 };
265 };
266
Neha Malcom Francise4824452023-07-22 00:14:40 +0530267 fdt-0 {
268 description = "k3-am62a7-sk";
269 type = "flat_dt";
270 arch = "arm";
271 compression = "none";
272 ti-secure {
273 content = <&spl_am62a7_sk_dtb>;
274 keyfile = "custMpk.pem";
275 };
276 spl_am62a7_sk_dtb: blob-ext {
277 filename = SPL_AM62A7_SK_DTB;
278 };
279
280 };
281
282 };
283
284 configurations {
285 default = "conf-0";
286
287 conf-0 {
288 description = "k3-am62a7-sk";
289 firmware = "atf";
Dhruva Goled980cb22024-06-07 14:26:40 +0530290 loadables = "tee", "dm", "spl",
291 "tifsstub-hs", "tifsstub-fs", "tifsstub-gp";
Neha Malcom Francise4824452023-07-22 00:14:40 +0530292 fdt = "fdt-0";
293 };
294 };
295 };
296 };
297};
298
299&binman {
300 u-boot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530301 insert-template = <&u_boot_template>;
Neha Malcom Francise4824452023-07-22 00:14:40 +0530302
303 fit {
Neha Malcom Francise4824452023-07-22 00:14:40 +0530304 images {
305 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530306 description = "U-Boot for AM62Ax Board";
Neha Malcom Francise4824452023-07-22 00:14:40 +0530307 };
308
309 fdt-0 {
310 description = "k3-am62a7-sk";
311 type = "flat_dt";
312 arch = "arm";
313 compression = "none";
314 ti-secure {
315 content = <&am62a7_sk_dtb>;
316 keyfile = "custMpk.pem";
317 };
318 am62a7_sk_dtb: blob-ext {
319 filename = AM62A7_SK_DTB;
320 };
321 hash {
322 algo = "crc32";
323 };
324 };
325 };
326
327 configurations {
328 default = "conf-0";
329
330 conf-0 {
331 description = "k3-am62a7-sk";
332 firmware = "uboot";
333 loadables = "uboot";
334 fdt = "fdt-0";
335 };
336
337 };
338 };
339 };
340};
341
342&binman {
343 ti-spl_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530344 insert-template = <&ti_spl_unsigned_template>;
Neha Malcom Francise4824452023-07-22 00:14:40 +0530345
346 fit {
Neha Malcom Francise4824452023-07-22 00:14:40 +0530347 images {
Dhruva Goled980cb22024-06-07 14:26:40 +0530348 tifsstub-hs {
349 description = "tifsstub";
350 type = "firmware";
351 arch = "arm32";
352 compression = "none";
353 os = "tifsstub-hs";
354 load = <0x9ca00000>;
355 entry = <0x9ca00000>;
356 blob-ext {
357 filename = "tifsstub.bin_hs";
358 };
359 };
360
361 tifsstub-fs {
362 description = "tifsstub";
363 type = "firmware";
364 arch = "arm32";
365 compression = "none";
366 os = "tifsstub-fs";
367 load = <0x9ca00000>;
368 entry = <0x9ca00000>;
369 blob-ext {
370 filename = "tifsstub.bin_fs";
371 };
372 };
373
374 tifsstub-gp {
375 description = "tifsstub";
376 type = "firmware";
377 arch = "arm32";
378 compression = "none";
379 os = "tifsstub-gp";
380 load = <0x9ca00000>;
381 entry = <0x9ca00000>;
382 blob-ext {
383 filename = "tifsstub.bin_gp";
384 };
385 };
Neha Malcom Francise4824452023-07-22 00:14:40 +0530386 dm {
Neha Malcom Francis82378212023-12-05 15:12:19 +0530387 ti-dm {
Neha Malcom Francise4824452023-07-22 00:14:40 +0530388 filename = "ti-dm.bin";
389 };
390 };
391
Neha Malcom Francise4824452023-07-22 00:14:40 +0530392 fdt-0 {
393 description = "k3-am62a7-sk";
394 type = "flat_dt";
395 arch = "arm";
396 compression = "none";
397 blob {
398 filename = SPL_AM62A7_SK_DTB;
399 };
400 };
401 };
402
403 configurations {
404 default = "conf-0";
405
406 conf-0 {
407 description = "k3-am62a7-sk";
408 firmware = "atf";
Dhruva Goled980cb22024-06-07 14:26:40 +0530409 loadables = "tee", "dm", "spl",
410 "tifsstub-hs", "tifsstub-fs", "tifsstub-gp";
Neha Malcom Francise4824452023-07-22 00:14:40 +0530411 fdt = "fdt-0";
412 };
413 };
414 };
415 };
416};
417
418&binman {
419 u-boot_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530420 insert-template = <&u_boot_unsigned_template>;
Neha Malcom Francise4824452023-07-22 00:14:40 +0530421
422 fit {
Neha Malcom Francise4824452023-07-22 00:14:40 +0530423 images {
424 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530425 description = "U-Boot for AM62Ax Board";
Neha Malcom Francise4824452023-07-22 00:14:40 +0530426 };
427
428 fdt-0 {
429 description = "k3-am62a7-sk";
430 type = "flat_dt";
431 arch = "arm";
432 compression = "none";
433 blob {
434 filename = AM62A7_SK_DTB;
435 };
436 hash {
437 algo = "crc32";
438 };
439 };
440 };
441
442 configurations {
443 default = "conf-0";
444
445 conf-0 {
446 description = "k3-am62a7-sk";
447 firmware = "uboot";
448 loadables = "uboot";
449 fdt = "fdt-0";
450 };
451 };
452 };
453 };
454};
455#endif