]> git.ipfire.org Git - thirdparty/u-boot.git/blob - arch/arm/dts/k3-am625-sk-binman.dtsi
arm: dts: k3: binman: am625: add support for signing TIFSSTUB Images
[thirdparty/u-boot.git] / arch / arm / dts / k3-am625-sk-binman.dtsi
1 // 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_AM625_R5_EVM
9
10 &binman {
11 tiboot3-am62x-hs-evm.bin {
12 filename = "tiboot3-am62x-hs-evm.bin";
13 ti-secure-rom {
14 content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>,
15 <&combined_dm_cfg>, <&sysfw_inner_cert>;
16 combined;
17 dm-data;
18 sysfw-inner-cert;
19 keyfile = "custMpk.pem";
20 sw-rev = <1>;
21 content-sbl = <&u_boot_spl>;
22 content-sysfw = <&ti_fs_enc>;
23 content-sysfw-data = <&combined_tifs_cfg>;
24 content-sysfw-inner-cert = <&sysfw_inner_cert>;
25 content-dm-data = <&combined_dm_cfg>;
26 load = <0x43c00000>;
27 load-sysfw = <0x40000>;
28 load-sysfw-data = <0x67000>;
29 load-dm-data = <0x43c3a800>;
30 };
31 u_boot_spl: u-boot-spl {
32 no-expanded;
33 };
34 ti_fs_enc: ti-fs-enc.bin {
35 filename = "ti-sysfw/ti-fs-firmware-am62x-hs-enc.bin";
36 type = "blob-ext";
37 optional;
38 };
39 combined_tifs_cfg: combined-tifs-cfg.bin {
40 filename = "combined-tifs-cfg.bin";
41 type = "blob-ext";
42 };
43 sysfw_inner_cert: sysfw-inner-cert {
44 filename = "ti-sysfw/ti-fs-firmware-am62x-hs-cert.bin";
45 type = "blob-ext";
46 optional;
47 };
48 combined_dm_cfg: combined-dm-cfg.bin {
49 filename = "combined-dm-cfg.bin";
50 type = "blob-ext";
51 };
52 };
53 };
54
55 &binman {
56 tiboot3-am62x-hs-fs-evm.bin {
57 filename = "tiboot3-am62x-hs-fs-evm.bin";
58 symlink = "tiboot3.bin";
59 ti-secure-rom {
60 content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>,
61 <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>;
62 combined;
63 dm-data;
64 sysfw-inner-cert;
65 keyfile = "custMpk.pem";
66 sw-rev = <1>;
67 content-sbl = <&u_boot_spl_fs>;
68 content-sysfw = <&ti_fs_enc_fs>;
69 content-sysfw-data = <&combined_tifs_cfg_fs>;
70 content-sysfw-inner-cert = <&sysfw_inner_cert_fs>;
71 content-dm-data = <&combined_dm_cfg_fs>;
72 load = <0x43c00000>;
73 load-sysfw = <0x40000>;
74 load-sysfw-data = <0x67000>;
75 load-dm-data = <0x43c3a800>;
76 };
77 u_boot_spl_fs: u-boot-spl {
78 no-expanded;
79 };
80 ti_fs_enc_fs: ti-fs-enc.bin {
81 filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-enc.bin";
82 type = "blob-ext";
83 optional;
84 };
85 combined_tifs_cfg_fs: combined-tifs-cfg.bin {
86 filename = "combined-tifs-cfg.bin";
87 type = "blob-ext";
88 };
89 sysfw_inner_cert_fs: sysfw-inner-cert {
90 filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-cert.bin";
91 type = "blob-ext";
92 optional;
93 };
94 combined_dm_cfg_fs: combined-dm-cfg.bin {
95 filename = "combined-dm-cfg.bin";
96 type = "blob-ext";
97 };
98 };
99 };
100
101 &binman {
102 tiboot3-am62x-gp-evm.bin {
103 filename = "tiboot3-am62x-gp-evm.bin";
104 ti-secure-rom {
105 content = <&u_boot_spl_unsigned>, <&ti_fs_gp>,
106 <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>;
107 combined;
108 dm-data;
109 content-sbl = <&u_boot_spl_unsigned>;
110 load = <0x43c00000>;
111 content-sysfw = <&ti_fs_gp>;
112 load-sysfw = <0x40000>;
113 content-sysfw-data = <&combined_tifs_cfg_gp>;
114 load-sysfw-data = <0x67000>;
115 content-dm-data = <&combined_dm_cfg_gp>;
116 load-dm-data = <0x43c3a800>;
117 sw-rev = <1>;
118 keyfile = "ti-degenerate-key.pem";
119 };
120 u_boot_spl_unsigned: u-boot-spl {
121 no-expanded;
122 };
123 ti_fs_gp: ti-fs-gp.bin {
124 filename = "ti-sysfw/ti-fs-firmware-am62x-gp.bin";
125 type = "blob-ext";
126 optional;
127 };
128 combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin {
129 filename = "combined-tifs-cfg.bin";
130 type = "blob-ext";
131 };
132 combined_dm_cfg_gp: combined-dm-cfg-gp.bin {
133 filename = "combined-dm-cfg.bin";
134 type = "blob-ext";
135 };
136
137 };
138 };
139
140 #endif
141
142 #ifdef CONFIG_TARGET_AM625_A53_EVM
143
144 #define SPL_AM625_SK_DTB "spl/dts/k3-am625-sk.dtb"
145 #define AM625_SK_DTB "u-boot.dtb"
146
147 &binman {
148 ti-dm {
149 filename = "ti-dm.bin";
150 blob-ext {
151 filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
152 };
153 };
154
155 tifsstub-hs {
156 filename = "tifsstub.bin_hs";
157 ti-secure-rom {
158 content = <&tifsstub_hs_cert>;
159 core = "secure";
160 load = <0x40000>;
161 sw-rev = <CONFIG_K3_X509_SWRV>;
162 keyfile = "custMpk.pem";
163 countersign;
164 tifsstub;
165 };
166 tifsstub_hs_cert: tifsstub-hs-cert.bin {
167 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin";
168 type = "blob-ext";
169 optional;
170 };
171 tifsstub_hs_enc: tifsstub-hs-enc.bin {
172 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin";
173 type = "blob-ext";
174 optional;
175 };
176 };
177
178 tifsstub-fs {
179 filename = "tifsstub.bin_fs";
180 tifsstub_fs_cert: tifsstub-fs-cert.bin {
181 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin";
182 type = "blob-ext";
183 optional;
184 };
185 tifsstub_fs_enc: tifsstub-fs-enc.bin {
186 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin";
187 type = "blob-ext";
188 optional;
189 };
190
191 };
192
193 tifsstub-gp {
194 filename = "tifsstub.bin_gp";
195 ti-secure-rom {
196 content = <&tifsstub_gp>;
197 core = "secure";
198 load = <0x60000>;
199 sw-rev = <CONFIG_K3_X509_SWRV>;
200 keyfile = "ti-degenerate-key.pem";
201 tifsstub;
202 };
203 tifsstub_gp: tifsstub-gp.bin {
204 filename = "ti-sysfw/ti-fs-stub-firmware-am62x-gp.bin";
205 type = "blob-ext";
206 optional;
207 };
208 };
209
210 ti-spl {
211 insert-template = <&ti_spl_template>;
212
213 fit {
214 images {
215
216 tifsstub-hs {
217 description = "TIFSSTUB";
218 type = "firmware";
219 arch = "arm32";
220 compression = "none";
221 os = "tifsstub-hs";
222 load = <0x9dc00000>;
223 entry = <0x9dc00000>;
224 blob-ext {
225 filename = "tifsstub.bin_hs";
226 };
227 };
228
229 tifsstub-fs {
230 description = "TIFSSTUB";
231 type = "firmware";
232 arch = "arm32";
233 compression = "none";
234 os = "tifsstub-fs";
235 load = <0x9dc00000>;
236 entry = <0x9dc00000>;
237 blob-ext {
238 filename = "tifsstub.bin_fs";
239 };
240 };
241
242 tifsstub-gp {
243 description = "TIFSSTUB";
244 type = "firmware";
245 arch = "arm32";
246 compression = "none";
247 os = "tifsstub-gp";
248 load = <0x9dc00000>;
249 entry = <0x9dc00000>;
250 blob-ext {
251 filename = "tifsstub.bin_gp";
252 };
253 };
254
255 dm {
256 ti-secure {
257 content = <&dm>;
258 keyfile = "custMpk.pem";
259 };
260 dm: ti-dm {
261 filename = "ti-dm.bin";
262 };
263 };
264
265 fdt-0 {
266 description = "k3-am625-sk";
267 type = "flat_dt";
268 arch = "arm";
269 compression = "none";
270 ti-secure {
271 content = <&spl_am625_sk_dtb>;
272 keyfile = "custMpk.pem";
273 };
274 spl_am625_sk_dtb: blob-ext {
275 filename = SPL_AM625_SK_DTB;
276 };
277
278 };
279
280 };
281
282 configurations {
283 default = "conf-0";
284
285 conf-0 {
286 description = "k3-am625-sk";
287 firmware = "atf";
288 loadables = "tee", "tifsstub-hs", "tifsstub-fs",
289 "tifsstub-gp", "dm", "spl";
290 fdt = "fdt-0";
291 };
292 };
293 };
294 };
295 };
296
297 &binman {
298 u-boot {
299 insert-template = <&u_boot_template>;
300
301 fit {
302 images {
303 uboot {
304 description = "U-Boot for AM625 Board";
305 };
306
307 fdt-0 {
308 description = "k3-am625-sk";
309 type = "flat_dt";
310 arch = "arm";
311 compression = "none";
312 ti-secure {
313 content = <&am625_sk_dtb>;
314 keyfile = "custMpk.pem";
315 };
316 am625_sk_dtb: blob-ext {
317 filename = AM625_SK_DTB;
318 };
319 hash {
320 algo = "crc32";
321 };
322 };
323 };
324
325 configurations {
326 default = "conf-0";
327
328 conf-0 {
329 description = "k3-am625-sk";
330 firmware = "uboot";
331 loadables = "uboot";
332 fdt = "fdt-0";
333 };
334
335 };
336 };
337 };
338 };
339
340 &binman {
341 ti-spl_unsigned {
342 insert-template = <&ti_spl_unsigned_template>;
343
344 fit {
345 images {
346
347 tifsstub-hs {
348 description = "tifsstub";
349 type = "firmware";
350 arch = "arm32";
351 compression = "none";
352 os = "tifsstub-hs";
353 load = <0x9dc00000>;
354 entry = <0x9dc00000>;
355 blob-ext {
356 filename = "tifsstub.bin_hs";
357 };
358 };
359
360 tifsstub-fs {
361 description = "tifsstub";
362 type = "firmware";
363 arch = "arm32";
364 compression = "none";
365 os = "tifsstub-fs";
366 load = <0x9dc00000>;
367 entry = <0x9dc00000>;
368 blob-ext {
369 filename = "tifsstub.bin_fs";
370 };
371 };
372
373 tifsstub-gp {
374 description = "tifsstub";
375 type = "firmware";
376 arch = "arm32";
377 compression = "none";
378 os = "tifsstub-gp";
379 load = <0x9dc00000>;
380 entry = <0x9dc00000>;
381 blob-ext {
382 filename = "tifsstub.bin_gp";
383 };
384 };
385
386 dm {
387 ti-dm {
388 filename = "ti-dm.bin";
389 };
390 };
391
392 fdt-0 {
393 description = "k3-am625-sk";
394 type = "flat_dt";
395 arch = "arm";
396 compression = "none";
397 spl_am625_sk_dtb_unsigned: blob {
398 filename = SPL_AM625_SK_DTB;
399 };
400 };
401 };
402
403 configurations {
404 default = "conf-0";
405
406 conf-0 {
407 description = "k3-am625-sk";
408 firmware = "atf";
409 loadables = "tee", "tifsstub-hs", "tifsstub-fs",
410 "tifsstub-gp", "dm", "spl";
411 fdt = "fdt-0";
412 };
413 };
414 };
415 };
416 };
417
418 &binman {
419 u-boot_unsigned {
420 insert-template = <&u_boot_unsigned_template>;
421
422 fit {
423 images {
424 uboot {
425 description = "U-Boot for AM625 Board";
426 };
427
428 fdt-0 {
429 description = "k3-am625-sk";
430 type = "flat_dt";
431 arch = "arm";
432 compression = "none";
433 am625_sk_dtb_unsigned: blob {
434 filename = AM625_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-am625-sk";
447 firmware = "uboot";
448 loadables = "uboot";
449 fdt = "fdt-0";
450 };
451 };
452 };
453 };
454 };
455 #endif