blob: f768c4d946d4703298ad257a5e74516632418d3b [file] [log] [blame]
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +05301// SPDX-License-Identifier: GPL-2.0+
2// Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
3
4#include "k3-binman.dtsi"
5
6#ifdef CONFIG_TARGET_AM642_R5_EVM
7
8&binman {
9 tiboot3-am64x_sr2-hs-evm.bin {
10 filename = "tiboot3-am64x_sr2-hs-evm.bin";
11 ti-secure-rom {
12 content = <&u_boot_spl>, <&ti_sci_enc>,
13 <&combined_sysfw_cfg>, <&sysfw_inner_cert>;
14 combined;
15 sysfw-inner-cert;
16 keyfile = "custMpk.pem";
17 sw-rev = <1>;
18 content-sbl = <&u_boot_spl>;
19 content-sysfw = <&ti_sci_enc>;
20 content-sysfw-data = <&combined_sysfw_cfg>;
21 content-sysfw-inner-cert = <&sysfw_inner_cert>;
22 load = <0x70000000>;
23 load-sysfw = <0x44000>;
24 load-sysfw-data = <0x7b000>;
25 };
26 u_boot_spl: u-boot-spl {
27 no-expanded;
28 };
29 ti_sci_enc: ti-fs-enc.bin {
30 filename = "ti-sysfw/ti-sci-firmware-am64x_sr2-hs-enc.bin";
31 type = "blob-ext";
32 optional;
33 };
34 combined_sysfw_cfg: combined-sysfw-cfg.bin {
35 filename = "combined-sysfw-cfg.bin";
36 type = "blob-ext";
37 };
38 sysfw_inner_cert: sysfw-inner-cert {
39 filename = "ti-sysfw/ti-sci-firmware-am64x_sr2-hs-cert.bin";
40 type = "blob-ext";
41 optional;
42 };
43
44 };
45};
46
47&binman {
48 tiboot3-am64x_sr2-hs-fs-evm.bin {
49 filename = "tiboot3-am64x_sr2-hs-fs-evm.bin";
50 symlink = "tiboot3.bin";
51 ti-secure-rom {
52 content = <&u_boot_spl_fs>, <&ti_sci_enc_fs>,
53 <&combined_sysfw_cfg_fs>, <&sysfw_inner_cert_fs>;
54 combined;
55 sysfw-inner-cert;
56 keyfile = "custMpk.pem";
57 sw-rev = <1>;
58 content-sbl = <&u_boot_spl_fs>;
59 content-sysfw = <&ti_sci_enc_fs>;
60 content-sysfw-data = <&combined_sysfw_cfg_fs>;
61 content-sysfw-inner-cert = <&sysfw_inner_cert_fs>;
62 load = <0x70000000>;
63 load-sysfw = <0x44000>;
64 load-sysfw-data = <0x7b000>;
65 };
66 u_boot_spl_fs: u-boot-spl {
67 no-expanded;
68 };
69 ti_sci_enc_fs: ti-fs-enc.bin {
70 filename = "ti-sysfw/ti-sci-firmware-am64x_sr2-hs-fs-enc.bin";
71 type = "blob-ext";
72 optional;
73 };
74 combined_sysfw_cfg_fs: combined-sysfw-cfg.bin {
75 filename = "combined-sysfw-cfg.bin";
76 type = "blob-ext";
77 };
78 sysfw_inner_cert_fs: sysfw-inner-cert {
79 filename = "ti-sysfw/ti-sci-firmware-am64x_sr2-hs-fs-cert.bin";
80 type = "blob-ext";
81 optional;
82 };
83
84 };
85};
86
87&binman {
88 tiboot3-am64x-gp-evm.bin {
89 filename = "tiboot3-am64x-gp-evm.bin";
90 ti-secure-rom {
91 content = <&u_boot_spl_unsigned>, <&ti_sci_gp>, <&combined_sysfw_cfg_gp>;
92 combined;
93 content-sbl = <&u_boot_spl_unsigned>;
94 load = <0x70000000>;
95 content-sysfw = <&ti_sci_gp>;
96 load-sysfw = <0x44000>;
97 content-sysfw-data = <&combined_sysfw_cfg_gp>;
98 load-sysfw-data = <0x7b000>;
99 sw-rev = <1>;
100 keyfile = "ti-degenerate-key.pem";
101 };
102 u_boot_spl_unsigned: u-boot-spl {
103 no-expanded;
104 };
105 ti_sci_gp: ti-sci-gp.bin {
106 filename = "ti-sysfw/ti-sci-firmware-am64x-gp.bin";
107 type = "blob-ext";
108 optional;
109 };
110 combined_sysfw_cfg_gp: combined-sysfw-cfg-gp.bin {
111 filename = "combined-sysfw-cfg.bin";
112 type = "blob-ext";
113 };
114 };
115};
116
Jonathan Humphreys87fffb02024-05-31 17:51:04 -0500117#include "k3-binman-capsule-r5.dtsi"
118
119// Capsule update GUIDs in string form. See am64x_evm.h
120#define AM64X_SK_TIBOOT3_IMAGE_GUID_STR "ede0a0d5-9116-4bfb-aa54-09e97b5afe1a"
121
122&capsule_tiboot3 {
123 efi-capsule {
124 image-guid = AM64X_SK_TIBOOT3_IMAGE_GUID_STR;
125 };
126};
127
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530128#endif
129
130#ifdef CONFIG_TARGET_AM642_A53_EVM
131
Andrew Davisf5164c02024-03-05 10:19:37 -0600132#define SPL_AM642_EVM_DTB "spl/dts/ti/k3-am642-evm.dtb"
133#define SPL_AM642_SK_DTB "spl/dts/ti/k3-am642-sk.dtb"
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530134
Manorit Chawdhry64ebddb2023-07-14 11:22:38 +0530135#define AM642_EVM_DTB "u-boot.dtb"
Andrew Davisf5164c02024-03-05 10:19:37 -0600136#define AM642_SK_DTB "dts/upstream/src/arm64/ti/k3-am642-sk.dtb"
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530137
138&binman {
139 ti-spl {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530140 insert-template = <&ti_spl_template>;
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530141
142 fit {
143 description = "Configuration to load ATF and SPL";
144 #address-cells = <1>;
145
146 images {
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530147 dm {
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530148 blob-ext {
149 filename = "/dev/null";
150 };
151 };
152
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530153
154 fdt-0 {
155 description = "k3-am642-evm";
156 type = "flat_dt";
157 arch = "arm";
158 compression = "none";
159 ti-secure {
160 content = <&spl_am64x_evm_dtb>;
161 keyfile = "custMpk.pem";
162 };
163 spl_am64x_evm_dtb: blob-ext {
164 filename = SPL_AM642_EVM_DTB;
165 };
166
167 };
168
169 fdt-1 {
170 description = "k3-am642-sk";
171 type = "flat_dt";
172 arch = "arm";
173 compression = "none";
174 ti-secure {
175 content = <&spl_am64x_sk_dtb>;
176 keyfile = "custMpk.pem";
177 };
178 spl_am64x_sk_dtb: blob-ext {
179 filename = SPL_AM642_SK_DTB;
180 };
181
182 };
183 };
184
185 configurations {
186 default = "conf-0";
187
188 conf-0 {
189 description = "k3-am642-evm";
190 firmware = "atf";
191 loadables = "tee", "dm", "spl";
192 fdt = "fdt-0";
193 };
194
195 conf-1 {
196 description = "k3-am642-sk";
197 firmware = "atf";
198 loadables = "tee", "dm", "spl";
199 fdt = "fdt-1";
200 };
201 };
202 };
203 };
204};
205
206&binman {
207 u-boot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530208 insert-template = <&u_boot_template>;
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530209
210 fit {
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530211 images {
212 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530213 description = "U-Boot for AM64 Board";
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530214 };
215
216 fdt-0 {
217 description = "k3-am642-evm";
218 type = "flat_dt";
219 arch = "arm";
220 compression = "none";
221 ti-secure {
222 content = <&am64x_evm_dtb>;
223 keyfile = "custMpk.pem";
224
225 };
226 am64x_evm_dtb: blob-ext {
227 filename = AM642_EVM_DTB;
228 };
229 hash {
230 algo = "crc32";
231 };
232 };
233
234 fdt-1 {
235 description = "k3-am642-sk";
236 type = "flat_dt";
237 arch = "arm";
238 compression = "none";
239 ti-secure {
240 content = <&am64x_sk_dtb>;
241 keyfile = "custMpk.pem";
242
243 };
244 am64x_sk_dtb: blob-ext {
245 filename = AM642_SK_DTB;
246 };
247 hash {
248 algo = "crc32";
249 };
250 };
251
252 };
253
254 configurations {
255 default = "conf-0";
256
257 conf-0 {
258 description = "k3-am642-evm";
259 firmware = "uboot";
260 loadables = "uboot";
261 fdt = "fdt-0";
262 };
263
264 conf-1 {
265 description = "k3-am642-sk";
266 firmware = "uboot";
267 loadables = "uboot";
268 fdt = "fdt-1";
269 };
270 };
271 };
272 };
273};
274
275&binman {
276 ti-spl_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530277 insert-template = <&ti_spl_unsigned_template>;
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530278
279 fit {
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530280 images {
281
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530282 dm {
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530283 blob-ext {
284 filename = "/dev/null";
285 };
286 };
287
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530288 fdt-0 {
289 description = "k3-am642-evm";
290 type = "flat_dt";
291 arch = "arm";
292 compression = "none";
293 blob {
294 filename = SPL_AM642_EVM_DTB;
295 };
296 };
297
298 fdt-1 {
299 description = "k3-am642-sk";
300 type = "flat_dt";
301 arch = "arm";
302 compression = "none";
303 blob {
304 filename = SPL_AM642_SK_DTB;
305 };
306 };
307 };
308
309 configurations {
310 default = "conf-0";
311
312 conf-0 {
313 description = "k3-am642-evm";
314 firmware = "atf";
315 loadables = "tee", "dm", "spl";
316 fdt = "fdt-0";
317 };
318
319 conf-1 {
320 description = "k3-am642-sk";
321 firmware = "atf";
322 loadables = "tee", "dm", "spl";
323 fdt = "fdt-1";
324 };
325 };
326 };
327 };
328};
329
330&binman {
331 u-boot_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530332 insert-template = <&u_boot_unsigned_template>;
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530333
334 fit {
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530335 images {
336 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530337 description = "U-Boot for AM64 Board";
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530338 };
339
340 fdt-0 {
341 description = "k3-am642-evm";
342 type = "flat_dt";
343 arch = "arm";
344 compression = "none";
345 blob {
346 filename = AM642_EVM_DTB;
347 };
348 hash {
349 algo = "crc32";
350 };
351 };
352
353 fdt-1 {
354 description = "k3-am642-sk";
355 type = "flat_dt";
356 arch = "arm";
357 compression = "none";
358 blob {
359 filename = AM642_SK_DTB;
360 };
361 hash {
362 algo = "crc32";
363 };
364 };
365 };
366
367 configurations {
368 default = "conf-0";
369
370 conf-0 {
371 description = "k3-am642-evm";
372 firmware = "uboot";
373 loadables = "uboot";
374 fdt = "fdt-0";
375 };
376
377 conf-1 {
378 description = "k3-am642-sk";
379 firmware = "uboot";
380 loadables = "uboot";
381 fdt = "fdt-1";
382 };
383 };
384 };
385 };
386};
Jonathan Humphreys87fffb02024-05-31 17:51:04 -0500387
388#include "k3-binman-capsule.dtsi"
389
390// Capsule update GUIDs in string form. See am64x_evm.h
391#define AM64X_SK_SPL_IMAGE_GUID_STR "77678f5c-64d4-4910-ad75-52c9d95cdb1d"
392#define AM64X_SK_UBOOT_IMAGE_GUID_STR "c6ad43a9-7d31-4f5d-83e9-b8efecae05bf"
393
394&capsule_tispl {
395 efi-capsule {
396 image-guid = AM64X_SK_SPL_IMAGE_GUID_STR;
397 };
398};
399
400&capsule_uboot {
401 efi-capsule {
402 image-guid = AM64X_SK_UBOOT_IMAGE_GUID_STR;
403 };
404};
405
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530406#endif