blob: 88d6c40e95c08756a7da704c52a196dd5a092524 [file] [log] [blame]
Wadim Egorov36e26d12024-02-28 09:42:16 +01001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Based on k3-am64x-binman.dtsi
4 *
5 * Copyright (C) 2022 - 2024 PHYTEC Messtechnik GmbH
6 * Author: Wadim Egorov <w.egorov@phytec.de>
7 */
8
9#include "k3-binman.dtsi"
10
11#ifdef CONFIG_TARGET_PHYCORE_AM64X_R5
12&binman {
13 tiboot3-am64x_sr2-hs-phycore-som.bin {
14 filename = "tiboot3-am64x_sr2-hs-phycore-som.bin";
15 ti-secure-rom {
16 content = <&u_boot_spl>, <&ti_sci_enc>,
17 <&combined_sysfw_cfg>, <&sysfw_inner_cert>;
18 combined;
19 sysfw-inner-cert;
20 keyfile = "custMpk.pem";
21 sw-rev = <1>;
22 content-sbl = <&u_boot_spl>;
23 content-sysfw = <&ti_sci_enc>;
24 content-sysfw-data = <&combined_sysfw_cfg>;
25 content-sysfw-inner-cert = <&sysfw_inner_cert>;
26 load = <0x70000000>;
27 load-sysfw = <0x44000>;
28 load-sysfw-data = <0x7b000>;
29 };
30 u_boot_spl: u-boot-spl {
31 no-expanded;
32 };
33 ti_sci_enc: ti-fs-enc.bin {
34 filename = "ti-sysfw/ti-sci-firmware-am64x_sr2-hs-enc.bin";
35 type = "blob-ext";
36 optional;
37 };
38 combined_sysfw_cfg: combined-sysfw-cfg.bin {
39 filename = "combined-sysfw-cfg.bin";
40 type = "blob-ext";
41 };
42 sysfw_inner_cert: sysfw-inner-cert {
43 filename = "ti-sysfw/ti-sci-firmware-am64x_sr2-hs-cert.bin";
44 type = "blob-ext";
45 optional;
46 };
47
48 };
49};
50
51&binman {
52 tiboot3-am64x_sr2-hs-fs-phycore-som.bin {
53 filename = "tiboot3-am64x_sr2-hs-fs-phycore-som.bin";
54 symlink = "tiboot3.bin";
55 ti-secure-rom {
56 content = <&u_boot_spl_fs>, <&ti_sci_enc_fs>,
57 <&combined_sysfw_cfg_fs>, <&sysfw_inner_cert_fs>;
58 combined;
59 sysfw-inner-cert;
60 keyfile = "custMpk.pem";
61 sw-rev = <1>;
62 content-sbl = <&u_boot_spl_fs>;
63 content-sysfw = <&ti_sci_enc_fs>;
64 content-sysfw-data = <&combined_sysfw_cfg_fs>;
65 content-sysfw-inner-cert = <&sysfw_inner_cert_fs>;
66 load = <0x70000000>;
67 load-sysfw = <0x44000>;
68 load-sysfw-data = <0x7b000>;
69 };
70 u_boot_spl_fs: u-boot-spl {
71 no-expanded;
72 };
73 ti_sci_enc_fs: ti-fs-enc.bin {
74 filename = "ti-sysfw/ti-sci-firmware-am64x_sr2-hs-fs-enc.bin";
75 type = "blob-ext";
76 optional;
77 };
78 combined_sysfw_cfg_fs: combined-sysfw-cfg.bin {
79 filename = "combined-sysfw-cfg.bin";
80 type = "blob-ext";
81 };
82 sysfw_inner_cert_fs: sysfw-inner-cert {
83 filename = "ti-sysfw/ti-sci-firmware-am64x_sr2-hs-fs-cert.bin";
84 type = "blob-ext";
85 optional;
86 };
87
88 };
89};
90
91&binman {
92 tiboot3-am64x-gp-phycore-som.bin {
93 filename = "tiboot3-am64x-gp-phycore-som.bin";
94 ti-secure-rom {
95 content = <&u_boot_spl_unsigned>, <&ti_sci_gp>, <&combined_sysfw_cfg_gp>;
96 combined;
97 content-sbl = <&u_boot_spl_unsigned>;
98 load = <0x70000000>;
99 content-sysfw = <&ti_sci_gp>;
100 load-sysfw = <0x44000>;
101 content-sysfw-data = <&combined_sysfw_cfg_gp>;
102 load-sysfw-data = <0x7b000>;
103 sw-rev = <1>;
104 keyfile = "ti-degenerate-key.pem";
105 };
106 u_boot_spl_unsigned: u-boot-spl {
107 no-expanded;
108 };
109 ti_sci_gp: ti-sci-gp.bin {
110 filename = "ti-sysfw/ti-sci-firmware-am64x-gp.bin";
111 type = "blob-ext";
112 optional;
113 };
114 combined_sysfw_cfg_gp: combined-sysfw-cfg-gp.bin {
115 filename = "combined-sysfw-cfg.bin";
116 type = "blob-ext";
117 };
118 };
119};
120
121#endif
122
123#ifdef CONFIG_TARGET_PHYCORE_AM64X_A53
Wadim Egorov48971832024-04-19 08:51:16 +0200124#define SPL_AM642_PHYBOARD_ELECTRA_DTB "spl/dts/ti/k3-am642-phyboard-electra-rdk.dtb"
Wadim Egorov36e26d12024-02-28 09:42:16 +0100125#define AM642_PHYBOARD_ELECTRA_DTB "u-boot.dtb"
126
127&binman {
128 ti-spl {
129 insert-template = <&ti_spl_template>;
130
131 fit {
132 description = "Configuration to load ATF and SPL";
133 #address-cells = <1>;
134
135 images {
136 dm {
137 blob-ext {
138 filename = "/dev/null";
139 };
140 };
141
142 fdt-0 {
143 description = "k3-am642-phyboard-electra-rdk";
144 type = "flat_dt";
145 arch = "arm";
146 compression = "none";
147 ti-secure {
148 content = <&spl_am642_phyboard_electra_dtb>;
149 keyfile = "custMpk.pem";
150 };
151 spl_am642_phyboard_electra_dtb: blob-ext {
152 filename = SPL_AM642_PHYBOARD_ELECTRA_DTB;
153 };
154
155 };
156 };
157
158 configurations {
159 default = "conf-0";
160
161 conf-0 {
162 description = "k3-am642-phyboard-electra-rdk";
163 firmware = "atf";
164 loadables = "tee", "dm", "spl";
165 fdt = "fdt-0";
166 };
167 };
168 };
169 };
170};
171
172&binman {
173 u-boot {
174 insert-template = <&u_boot_template>;
175
176 fit {
177 images {
178 uboot {
179 description = "U-Boot for AM64 board";
180 };
181
182 fdt-0 {
183 description = "k3-am642-phyboard-electra-rdk";
184 type = "flat_dt";
185 arch = "arm";
186 compression = "none";
187 ti-secure {
188 content = <&am642_phyboard_electra_dtb>;
189 keyfile = "custMpk.pem";
190 };
191 am642_phyboard_electra_dtb: blob-ext {
192 filename = AM642_PHYBOARD_ELECTRA_DTB;
193 };
194 hash {
195 algo = "crc32";
196 };
197 };
198 };
199
200 configurations {
201 default = "conf-0";
202
203 conf-0 {
204 description = "k3-am642-phyboard-electra-rdk";
205 firmware = "uboot";
206 loadables = "uboot";
207 fdt = "fdt-0";
208 };
209 };
210 };
211 };
212};
213
214&binman {
215 ti-spl_unsigned {
216 insert-template = <&ti_spl_unsigned_template>;
217
218 fit {
219 images {
220 dm {
221 blob-ext {
222 filename = "/dev/null";
223 };
224 };
225
226 fdt-0 {
227 description = "k3-am642-phyboard-electra-rdk";
228 type = "flat_dt";
229 arch = "arm";
230 compression = "none";
231 blob {
232 filename = SPL_AM642_PHYBOARD_ELECTRA_DTB;
233 };
234 };
235 };
236
237 configurations {
238 default = "conf-0";
239
240 conf-0 {
241 description = "k3-am642-phyboard-electra-rdk";
242 firmware = "atf";
243 loadables = "tee", "dm", "spl";
244 fdt = "fdt-0";
245 };
246 };
247 };
248 };
249};
250
251&binman {
252 u-boot_unsigned {
253 insert-template = <&u_boot_unsigned_template>;
254
255 fit {
256 images {
257 uboot {
258 description = "U-Boot for AM64 board";
259 };
260
261 fdt-0 {
262 description = "k3-am642-phyboard-electra-rdk";
263 type = "flat_dt";
264 arch = "arm";
265 compression = "none";
266 blob {
267 filename = AM642_PHYBOARD_ELECTRA_DTB;
268 };
269 hash {
270 algo = "crc32";
271 };
272 };
273 };
274
275 configurations {
276 default = "conf-0";
277
278 conf-0 {
279 description = "k3-am642-phyboard-electra-rdk";
280 firmware = "uboot";
281 loadables = "uboot";
282 fdt = "fdt-0";
283 };
284 };
285 };
286 };
287};
288#endif
289
290#ifdef CONFIG_TARGET_PHYCORE_AM64X_A53
291
Wadim Egorov36e26d12024-02-28 09:42:16 +0100292&binman {
293 ti-spl {
294 insert-template = <&ti_spl_template>;
295
296 fit {
297 description = "Configuration to load ATF and SPL";
298 #address-cells = <1>;
299
300 images {
301 dm {
302 blob-ext {
303 filename = "/dev/null";
304 };
305 };
306
307 fdt-0 {
308 description = "k3-am642-phyboard-electra-rdk";
309 type = "flat_dt";
310 arch = "arm";
311 compression = "none";
312 ti-secure {
313 content = <&spl_am642_phyboard_electra_dtb>;
314 keyfile = "custMpk.pem";
315 };
316 spl_am642_phyboard_electra_dtb: blob-ext {
317 filename = SPL_AM642_PHYBOARD_ELECTRA_DTB;
318 };
319
320 };
321 };
322
323 configurations {
324 default = "conf-0";
325
326 conf-0 {
327 description = "k3-am642-phyboard-electra-rdk";
328 firmware = "atf";
329 loadables = "tee", "dm", "spl";
330 fdt = "fdt-0";
331 };
332 };
333 };
334 };
335};
336
337&binman {
338 u-boot {
339 insert-template = <&u_boot_template>;
340
341 fit {
342 images {
343 uboot {
344 description = "U-Boot for AM64 board";
345 };
346
Wadim Egorov6310ae92024-10-30 17:48:14 +0100347 som-no-rtc {
348 description = "k3-am6xx-phycore-disable-rtc";
349 type = "flat_dt";
350 compression = "none";
351 load = <0x8F000000>;
352 arch = "arm";
353
354 blob-ext {
355 filename = "dts/upstream/src/arm64/ti/k3-am6xx-phycore-disable-rtc.dtbo";
356 };
357 };
358
359 som-no-spi {
360 description = "k3-am6xx-phycore-disable-spi-nor";
361 type = "flat_dt";
362 compression = "none";
363 load = <0x8F001000>;
364 arch = "arm";
365
366 blob-ext {
367 filename = "dts/upstream/src/arm64/ti/k3-am6xx-phycore-disable-spi-nor.dtbo";
368 };
369 };
370
371 som-no-eth {
372 description = "k3-am6xx-phycore-disable-eth-phy";
373 type = "flat_dt";
374 compression = "none";
375 load = <0x8F002000>;
376 arch = "arm";
377
378 blob-ext {
379 filename = "dts/upstream/src/arm64/ti/k3-am6xx-phycore-disable-eth-phy.dtbo";
380 };
381 };
382
383 som-qspi {
384 description = "k3-am6xx-phycore-qspi-nor";
385 type = "flat_dt";
386 compression = "none";
387 load = <0x8F003000>;
388 arch = "arm";
389
390 blob-ext {
391 filename = "dts/upstream/src/arm64/ti/k3-am6xx-phycore-qspi-nor.dtbo";
392 };
393 };
394
Wadim Egorov36e26d12024-02-28 09:42:16 +0100395 fdt-0 {
396 description = "k3-am642-phyboard-electra-rdk";
397 type = "flat_dt";
398 arch = "arm";
399 compression = "none";
400 ti-secure {
401 content = <&am642_phyboard_electra_dtb>;
402 keyfile = "custMpk.pem";
403 };
404 am642_phyboard_electra_dtb: blob-ext {
405 filename = AM642_PHYBOARD_ELECTRA_DTB;
406 };
407 hash {
408 algo = "crc32";
409 };
410 };
411 };
412
413 configurations {
414 default = "conf-0";
415
416 conf-0 {
417 description = "k3-am642-phyboard-electra-rdk";
418 firmware = "uboot";
Wadim Egorov6310ae92024-10-30 17:48:14 +0100419 loadables = "uboot",
420 "som-no-rtc",
421 "som-no-spi",
422 "som-no-eth",
423 "som-qspi";
Wadim Egorov36e26d12024-02-28 09:42:16 +0100424 fdt = "fdt-0";
425 };
426 };
427 };
428 };
429};
430
431&binman {
432 ti-spl_unsigned {
433 insert-template = <&ti_spl_unsigned_template>;
434
435 fit {
436 images {
437 dm {
438 blob-ext {
439 filename = "/dev/null";
440 };
441 };
442
443 fdt-0 {
444 description = "k3-am642-phyboard-electra-rdk";
445 type = "flat_dt";
446 arch = "arm";
447 compression = "none";
448 blob {
449 filename = SPL_AM642_PHYBOARD_ELECTRA_DTB;
450 };
451 };
452 };
453
454 configurations {
455 default = "conf-0";
456
457 conf-0 {
458 description = "k3-am642-phyboard-electra-rdk";
459 firmware = "atf";
460 loadables = "tee", "dm", "spl";
461 fdt = "fdt-0";
462 };
463 };
464 };
465 };
466};
467
468&binman {
469 u-boot_unsigned {
470 insert-template = <&u_boot_unsigned_template>;
471
472 fit {
473 images {
474 uboot {
475 description = "U-Boot for AM64 board";
476 };
477
478 fdt-0 {
479 description = "k3-am642-phyboard-electra-rdk";
480 type = "flat_dt";
481 arch = "arm";
482 compression = "none";
483 blob {
484 filename = AM642_PHYBOARD_ELECTRA_DTB;
485 };
486 hash {
487 algo = "crc32";
488 };
489 };
490 };
491
492 configurations {
493 default = "conf-0";
494
495 conf-0 {
496 description = "k3-am642-phyboard-electra-rdk";
497 firmware = "uboot";
498 loadables = "uboot";
499 fdt = "fdt-0";
500 };
501 };
502 };
503 };
504};
505#endif /* CONFIG_TARGET_PHYCORE_AM64X_A53 */