blob: 88df2149545c87e57b715e6fba39149dda43a8c0 [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
117#endif
118
119#ifdef CONFIG_TARGET_AM642_A53_EVM
120
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530121#define SPL_AM642_EVM_DTB "spl/dts/k3-am642-evm.dtb"
122#define SPL_AM642_SK_DTB "spl/dts/k3-am642-sk.dtb"
123
Manorit Chawdhry64ebddb2023-07-14 11:22:38 +0530124#define AM642_EVM_DTB "u-boot.dtb"
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530125#define AM642_SK_DTB "arch/arm/dts/k3-am642-sk.dtb"
126
127&binman {
128 ti-spl {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530129 insert-template = <&ti_spl_template>;
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530130
131 fit {
132 description = "Configuration to load ATF and SPL";
133 #address-cells = <1>;
134
135 images {
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530136 dm {
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530137 blob-ext {
138 filename = "/dev/null";
139 };
140 };
141
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530142
143 fdt-0 {
144 description = "k3-am642-evm";
145 type = "flat_dt";
146 arch = "arm";
147 compression = "none";
148 ti-secure {
149 content = <&spl_am64x_evm_dtb>;
150 keyfile = "custMpk.pem";
151 };
152 spl_am64x_evm_dtb: blob-ext {
153 filename = SPL_AM642_EVM_DTB;
154 };
155
156 };
157
158 fdt-1 {
159 description = "k3-am642-sk";
160 type = "flat_dt";
161 arch = "arm";
162 compression = "none";
163 ti-secure {
164 content = <&spl_am64x_sk_dtb>;
165 keyfile = "custMpk.pem";
166 };
167 spl_am64x_sk_dtb: blob-ext {
168 filename = SPL_AM642_SK_DTB;
169 };
170
171 };
172 };
173
174 configurations {
175 default = "conf-0";
176
177 conf-0 {
178 description = "k3-am642-evm";
179 firmware = "atf";
180 loadables = "tee", "dm", "spl";
181 fdt = "fdt-0";
182 };
183
184 conf-1 {
185 description = "k3-am642-sk";
186 firmware = "atf";
187 loadables = "tee", "dm", "spl";
188 fdt = "fdt-1";
189 };
190 };
191 };
192 };
193};
194
195&binman {
196 u-boot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530197 insert-template = <&u_boot_template>;
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530198
199 fit {
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530200 images {
201 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530202 description = "U-Boot for AM64 Board";
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530203 };
204
205 fdt-0 {
206 description = "k3-am642-evm";
207 type = "flat_dt";
208 arch = "arm";
209 compression = "none";
210 ti-secure {
211 content = <&am64x_evm_dtb>;
212 keyfile = "custMpk.pem";
213
214 };
215 am64x_evm_dtb: blob-ext {
216 filename = AM642_EVM_DTB;
217 };
218 hash {
219 algo = "crc32";
220 };
221 };
222
223 fdt-1 {
224 description = "k3-am642-sk";
225 type = "flat_dt";
226 arch = "arm";
227 compression = "none";
228 ti-secure {
229 content = <&am64x_sk_dtb>;
230 keyfile = "custMpk.pem";
231
232 };
233 am64x_sk_dtb: blob-ext {
234 filename = AM642_SK_DTB;
235 };
236 hash {
237 algo = "crc32";
238 };
239 };
240
241 };
242
243 configurations {
244 default = "conf-0";
245
246 conf-0 {
247 description = "k3-am642-evm";
248 firmware = "uboot";
249 loadables = "uboot";
250 fdt = "fdt-0";
251 };
252
253 conf-1 {
254 description = "k3-am642-sk";
255 firmware = "uboot";
256 loadables = "uboot";
257 fdt = "fdt-1";
258 };
259 };
260 };
261 };
262};
263
264&binman {
265 ti-spl_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530266 insert-template = <&ti_spl_unsigned_template>;
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530267
268 fit {
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530269 images {
270
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530271 dm {
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530272 blob-ext {
273 filename = "/dev/null";
274 };
275 };
276
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530277 fdt-0 {
278 description = "k3-am642-evm";
279 type = "flat_dt";
280 arch = "arm";
281 compression = "none";
282 blob {
283 filename = SPL_AM642_EVM_DTB;
284 };
285 };
286
287 fdt-1 {
288 description = "k3-am642-sk";
289 type = "flat_dt";
290 arch = "arm";
291 compression = "none";
292 blob {
293 filename = SPL_AM642_SK_DTB;
294 };
295 };
296 };
297
298 configurations {
299 default = "conf-0";
300
301 conf-0 {
302 description = "k3-am642-evm";
303 firmware = "atf";
304 loadables = "tee", "dm", "spl";
305 fdt = "fdt-0";
306 };
307
308 conf-1 {
309 description = "k3-am642-sk";
310 firmware = "atf";
311 loadables = "tee", "dm", "spl";
312 fdt = "fdt-1";
313 };
314 };
315 };
316 };
317};
318
319&binman {
320 u-boot_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530321 insert-template = <&u_boot_unsigned_template>;
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530322
323 fit {
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530324 images {
325 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530326 description = "U-Boot for AM64 Board";
Neha Malcom Francis9a1b2712023-07-22 00:14:34 +0530327 };
328
329 fdt-0 {
330 description = "k3-am642-evm";
331 type = "flat_dt";
332 arch = "arm";
333 compression = "none";
334 blob {
335 filename = AM642_EVM_DTB;
336 };
337 hash {
338 algo = "crc32";
339 };
340 };
341
342 fdt-1 {
343 description = "k3-am642-sk";
344 type = "flat_dt";
345 arch = "arm";
346 compression = "none";
347 blob {
348 filename = AM642_SK_DTB;
349 };
350 hash {
351 algo = "crc32";
352 };
353 };
354 };
355
356 configurations {
357 default = "conf-0";
358
359 conf-0 {
360 description = "k3-am642-evm";
361 firmware = "uboot";
362 loadables = "uboot";
363 fdt = "fdt-0";
364 };
365
366 conf-1 {
367 description = "k3-am642-sk";
368 firmware = "uboot";
369 loadables = "uboot";
370 fdt = "fdt-1";
371 };
372 };
373 };
374 };
375};
376#endif