blob: 79783aadbe26b26b4c9c14482d26e4bc7324cc39 [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
124#define SPL_AM642_PHYBOARD_ELECTRA_DTB "spl/dts/k3-am642-phyboard-electra-rdk.dtb"
125#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
292#define SPL_AM642_PHYBOARD_ELECTRA_DTB "spl/dts/k3-am642-phyboard-electra-rdk.dtb"
293
294#define AM642_PHYBOARD_ELECTRA_DTB "u-boot.dtb"
295
296&binman {
297 ti-spl {
298 insert-template = <&ti_spl_template>;
299
300 fit {
301 description = "Configuration to load ATF and SPL";
302 #address-cells = <1>;
303
304 images {
305 dm {
306 blob-ext {
307 filename = "/dev/null";
308 };
309 };
310
311 fdt-0 {
312 description = "k3-am642-phyboard-electra-rdk";
313 type = "flat_dt";
314 arch = "arm";
315 compression = "none";
316 ti-secure {
317 content = <&spl_am642_phyboard_electra_dtb>;
318 keyfile = "custMpk.pem";
319 };
320 spl_am642_phyboard_electra_dtb: blob-ext {
321 filename = SPL_AM642_PHYBOARD_ELECTRA_DTB;
322 };
323
324 };
325 };
326
327 configurations {
328 default = "conf-0";
329
330 conf-0 {
331 description = "k3-am642-phyboard-electra-rdk";
332 firmware = "atf";
333 loadables = "tee", "dm", "spl";
334 fdt = "fdt-0";
335 };
336 };
337 };
338 };
339};
340
341&binman {
342 u-boot {
343 insert-template = <&u_boot_template>;
344
345 fit {
346 images {
347 uboot {
348 description = "U-Boot for AM64 board";
349 };
350
351 fdt-0 {
352 description = "k3-am642-phyboard-electra-rdk";
353 type = "flat_dt";
354 arch = "arm";
355 compression = "none";
356 ti-secure {
357 content = <&am642_phyboard_electra_dtb>;
358 keyfile = "custMpk.pem";
359 };
360 am642_phyboard_electra_dtb: blob-ext {
361 filename = AM642_PHYBOARD_ELECTRA_DTB;
362 };
363 hash {
364 algo = "crc32";
365 };
366 };
367 };
368
369 configurations {
370 default = "conf-0";
371
372 conf-0 {
373 description = "k3-am642-phyboard-electra-rdk";
374 firmware = "uboot";
375 loadables = "uboot";
376 fdt = "fdt-0";
377 };
378 };
379 };
380 };
381};
382
383&binman {
384 ti-spl_unsigned {
385 insert-template = <&ti_spl_unsigned_template>;
386
387 fit {
388 images {
389 dm {
390 blob-ext {
391 filename = "/dev/null";
392 };
393 };
394
395 fdt-0 {
396 description = "k3-am642-phyboard-electra-rdk";
397 type = "flat_dt";
398 arch = "arm";
399 compression = "none";
400 blob {
401 filename = SPL_AM642_PHYBOARD_ELECTRA_DTB;
402 };
403 };
404 };
405
406 configurations {
407 default = "conf-0";
408
409 conf-0 {
410 description = "k3-am642-phyboard-electra-rdk";
411 firmware = "atf";
412 loadables = "tee", "dm", "spl";
413 fdt = "fdt-0";
414 };
415 };
416 };
417 };
418};
419
420&binman {
421 u-boot_unsigned {
422 insert-template = <&u_boot_unsigned_template>;
423
424 fit {
425 images {
426 uboot {
427 description = "U-Boot for AM64 board";
428 };
429
430 fdt-0 {
431 description = "k3-am642-phyboard-electra-rdk";
432 type = "flat_dt";
433 arch = "arm";
434 compression = "none";
435 blob {
436 filename = AM642_PHYBOARD_ELECTRA_DTB;
437 };
438 hash {
439 algo = "crc32";
440 };
441 };
442 };
443
444 configurations {
445 default = "conf-0";
446
447 conf-0 {
448 description = "k3-am642-phyboard-electra-rdk";
449 firmware = "uboot";
450 loadables = "uboot";
451 fdt = "fdt-0";
452 };
453 };
454 };
455 };
456};
457#endif /* CONFIG_TARGET_PHYCORE_AM64X_A53 */