blob: 640361e0fd17b176667ae280d67b1c4c3fa28da9 [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};
145#endif
146
147#ifdef CONFIG_TARGET_PHYCORE_AM62AX_A53
148
149#define SPL_AM62A7_PHYBOARD_LYRA_DTB "spl/dts/ti/k3-am62a7-phyboard-lyra-rdk.dtb"
150#define AM62A7_PHYBOARD_LYRA_DTB "u-boot.dtb"
151
152&binman {
153 ti-dm {
154 filename = "ti-dm.bin";
155 blob-ext {
156 filename = "ti-dm/am62axx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
157 optional;
158 };
159 };
160
161 tifsstub-hs {
162 filename = "tifsstub.bin_hs";
163 ti-secure-rom {
164 content = <&tifsstub_hs_cert>;
165 core = "secure";
166 load = <0x60000>;
167 sw-rev = <CONFIG_K3_X509_SWRV>;
168 keyfile = "custMpk.pem";
169 countersign;
170 tifsstub;
171 };
172 tifsstub_hs_cert: tifsstub-hs-cert.bin {
173 filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-cert.bin";
174 type = "blob-ext";
175 optional;
176 };
177 tifsstub_hs_enc: tifsstub-hs-enc.bin {
178 filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-enc.bin";
179 type = "blob-ext";
180 optional;
181 };
182 };
183
184 tifsstub-fs {
185 filename = "tifsstub.bin_fs";
186 tifsstub_fs_cert: tifsstub-fs-cert.bin {
187 filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-cert.bin";
188 type = "blob-ext";
189 optional;
190 };
191 tifsstub_fs_enc: tifsstub-fs-enc.bin {
192 filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-enc.bin";
193 type = "blob-ext";
194 optional;
195 };
196
197 };
198
199 tifsstub-gp {
200 filename = "tifsstub.bin_gp";
201 ti-secure-rom {
202 content = <&tifsstub_gp>;
203 core = "secure";
204 load = <0x60000>;
205 sw-rev = <CONFIG_K3_X509_SWRV>;
206 keyfile = "ti-degenerate-key.pem";
207 tifsstub;
208 };
209 tifsstub_gp: tifsstub-gp.bin {
210 filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-gp.bin";
211 type = "blob-ext";
212 optional;
213 };
214 };
215
216 ti-spl {
217 insert-template = <&ti_spl_template>;
218
219 fit {
220 images {
221 tifsstub-hs {
222 description = "TIFSSTUB";
223 type = "firmware";
224 arch = "arm32";
225 compression = "none";
226 os = "tifsstub-hs";
227 load = <0x9ca00000>;
228 entry = <0x9ca00000>;
229 blob-ext {
230 filename = "tifsstub.bin_hs";
231 };
232 };
233
234 tifsstub-fs {
235 description = "TIFSSTUB";
236 type = "firmware";
237 arch = "arm32";
238 compression = "none";
239 os = "tifsstub-fs";
240 load = <0x9ca00000>;
241 entry = <0x9ca00000>;
242 blob-ext {
243 filename = "tifsstub.bin_fs";
244 };
245 };
246
247 tifsstub-gp {
248 description = "TIFSSTUB";
249 type = "firmware";
250 arch = "arm32";
251 compression = "none";
252 os = "tifsstub-gp";
253 load = <0x9ca00000>;
254 entry = <0x9ca00000>;
255 blob-ext {
256 filename = "tifsstub.bin_gp";
257 };
258 };
259 dm {
260 ti-secure {
261 content = <&dm>;
262 keyfile = "custMpk.pem";
263 };
264 dm: ti-dm {
265 filename = "ti-dm.bin";
266 };
267 };
268
269 fdt-0 {
270 description = "k3-am62a7-phyboard-lyra-rdk";
271 type = "flat_dt";
272 arch = "arm";
273 compression = "none";
274 ti-secure {
275 content = <&spl_am62a7_phyboard_lyra_dtb>;
276 keyfile = "custMpk.pem";
277 };
278 spl_am62a7_phyboard_lyra_dtb: blob-ext {
279 filename = SPL_AM62A7_PHYBOARD_LYRA_DTB;
280 };
281 };
282 };
283
284 configurations {
285 default = "conf-0";
286
287 conf-0 {
288 description = "k3-am62a7-phyboard-lyra-rdk";
289 firmware = "atf";
290 loadables = "tee", "dm", "spl",
291 "tifsstub-hs", "tifsstub-fs", "tifsstub-gp";
292 fdt = "fdt-0";
293 };
294 };
295 };
296 };
297};
298
299&binman {
300 u-boot {
301 insert-template = <&u_boot_template>;
302
303 fit {
304 images {
305 uboot {
306 description = "U-Boot for AM62Ax board";
307 };
308
309 fdt-0 {
310 description = "k3-am62a7-phyboard-lyra-rdk";
311 type = "flat_dt";
312 arch = "arm";
313 compression = "none";
314 ti-secure {
315 content = <&am62a7_phyboard_lyra_dtb>;
316 keyfile = "custMpk.pem";
317 };
318 am62a7_phyboard_lyra_dtb: blob-ext {
319 filename = AM62A7_PHYBOARD_LYRA_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-phyboard-lyra-rdk";
332 firmware = "uboot";
333 loadables = "uboot";
334 fdt = "fdt-0";
335 };
336 };
337 };
338 };
339};
340
341&binman {
342 ti-spl_unsigned {
343 insert-template = <&ti_spl_unsigned_template>;
344
345 fit {
346 images {
347 tifsstub-hs {
348 description = "tifsstub";
349 type = "firmware";
350 arch = "arm32";
351 compression = "none";
352 os = "tifsstub-hs";
353 load = <0x9ca00000>;
354 entry = <0x9ca00000>;
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 = <0x9ca00000>;
367 entry = <0x9ca00000>;
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 = <0x9ca00000>;
380 entry = <0x9ca00000>;
381 blob-ext {
382 filename = "tifsstub.bin_gp";
383 };
384 };
385 dm {
386 ti-dm {
387 filename = "ti-dm.bin";
388 };
389 };
390
391 fdt-0 {
392 description = "k3-am62a7-phyboard-lyra-rdk";
393 type = "flat_dt";
394 arch = "arm";
395 compression = "none";
396 spl_am62a7_phyboard_lyra_dtb_unsigned: blob {
397 filename = SPL_AM62A7_PHYBOARD_LYRA_DTB;
398 };
399 };
400 };
401
402 configurations {
403 default = "conf-0";
404
405 conf-0 {
406 description = "k3-am62a7-phyboard-lyra-rdk";
407 firmware = "atf";
408 loadables = "tee", "dm", "spl",
409 "tifsstub-hs", "tifsstub-fs", "tifsstub-gp";
410 fdt = "fdt-0";
411 };
412 };
413 };
414 };
415};
416
417&binman {
418 u-boot_unsigned {
419 insert-template = <&u_boot_unsigned_template>;
420
421 fit {
422 images {
423 uboot {
424 description = "U-Boot for AM62Ax board";
425 };
426
427 fdt-0 {
428 description = "k3-am62a7-phyboard-lyra-rdk";
429 type = "flat_dt";
430 arch = "arm";
431 compression = "none";
432 blob {
433 filename = AM62A7_PHYBOARD_LYRA_DTB;
434 };
435 hash {
436 algo = "crc32";
437 };
438 };
439 };
440
441 configurations {
442 default = "conf-0";
443
444 conf-0 {
445 description = "k3-am62a7-phyboard-lyra-rdk";
446 firmware = "uboot";
447 loadables = "uboot";
448 fdt = "fdt-0";
449 };
450 };
451 };
452 };
453};
454#endif