blob: c7513e1a5dd7096618898ee39d9be7af32d3ee30 [file] [log] [blame]
Neha Malcom Francis45140f02023-07-22 00:14:26 +05301// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
4 */
5
6/ {
7 binman: binman {
8 multiple-images;
9 };
10};
11
12&binman {
13 custMpk {
14 filename = "custMpk.pem";
Marcel Ziswiler060d30f2023-08-04 12:08:07 +020015 custmpk_pem: blob-ext {
Nishanth Menon150e41d2023-11-03 21:45:11 -050016 filename = "arch/arm/mach-k3/keys/custMpk.pem";
Neha Malcom Francis45140f02023-07-22 00:14:26 +053017 };
18 };
19
20 ti-degenerate-key {
21 filename = "ti-degenerate-key.pem";
Marcel Ziswiler060d30f2023-08-04 12:08:07 +020022 dkey_pem: blob-ext {
Nishanth Menon6725ec72023-11-03 21:45:10 -050023 filename = "arch/arm/mach-k3/keys/ti-degenerate-key.pem";
Neha Malcom Francis45140f02023-07-22 00:14:26 +053024 };
25 };
26};
27
28#ifndef CONFIG_ARM64
29
30&binman {
31 board-cfg {
32 filename = "board-cfg.bin";
33 bcfg_yaml: ti-board-config {
34 config = "board-cfg.yaml";
Nishanth Menon9dd6bdc2023-11-04 03:01:35 -050035 schema = "board/ti/common/schema.yaml";
Neha Malcom Francis45140f02023-07-22 00:14:26 +053036 };
37 };
38 pm-cfg {
39 filename = "pm-cfg.bin";
Marcel Ziswiler060d30f2023-08-04 12:08:07 +020040 pcfg_yaml: ti-board-config {
Neha Malcom Francis45140f02023-07-22 00:14:26 +053041 config = "pm-cfg.yaml";
Nishanth Menon9dd6bdc2023-11-04 03:01:35 -050042 schema = "board/ti/common/schema.yaml";
Neha Malcom Francis45140f02023-07-22 00:14:26 +053043 };
44 };
45 rm-cfg {
46 filename = "rm-cfg.bin";
Marcel Ziswiler060d30f2023-08-04 12:08:07 +020047 rcfg_yaml: ti-board-config {
Neha Malcom Francis45140f02023-07-22 00:14:26 +053048 config = "rm-cfg.yaml";
Nishanth Menon9dd6bdc2023-11-04 03:01:35 -050049 schema = "board/ti/common/schema.yaml";
Neha Malcom Francis45140f02023-07-22 00:14:26 +053050 };
51 };
52 sec-cfg {
53 filename = "sec-cfg.bin";
54 scfg_yaml: ti-board-config {
55 config = "sec-cfg.yaml";
Nishanth Menon9dd6bdc2023-11-04 03:01:35 -050056 schema = "board/ti/common/schema.yaml";
Neha Malcom Francis45140f02023-07-22 00:14:26 +053057 };
58 };
59 combined-tifs-cfg {
60 filename = "combined-tifs-cfg.bin";
61 ti-board-config {
62 bcfg_yaml_tifs: board-cfg {
63 config = "board-cfg.yaml";
Nishanth Menon9dd6bdc2023-11-04 03:01:35 -050064 schema = "board/ti/common/schema.yaml";
Neha Malcom Francis45140f02023-07-22 00:14:26 +053065 };
66 scfg_yaml_tifs: sec-cfg {
67 config = "sec-cfg.yaml";
Nishanth Menon9dd6bdc2023-11-04 03:01:35 -050068 schema = "board/ti/common/schema.yaml";
Neha Malcom Francis45140f02023-07-22 00:14:26 +053069 };
70 pcfg_yaml_tifs: pm-cfg {
71 config = "pm-cfg.yaml";
Nishanth Menon9dd6bdc2023-11-04 03:01:35 -050072 schema = "board/ti/common/schema.yaml";
Neha Malcom Francis45140f02023-07-22 00:14:26 +053073 };
74 rcfg_yaml_tifs: rm-cfg {
75 config = "rm-cfg.yaml";
Nishanth Menon9dd6bdc2023-11-04 03:01:35 -050076 schema = "board/ti/common/schema.yaml";
Neha Malcom Francis45140f02023-07-22 00:14:26 +053077 };
78 };
79 };
80 combined-dm-cfg {
81 filename = "combined-dm-cfg.bin";
82 ti-board-config {
83 pcfg_yaml_dm: pm-cfg {
84 config = "pm-cfg.yaml";
Nishanth Menon9dd6bdc2023-11-04 03:01:35 -050085 schema = "board/ti/common/schema.yaml";
Neha Malcom Francis45140f02023-07-22 00:14:26 +053086 };
87 rcfg_yaml_dm: rm-cfg {
88 config = "rm-cfg.yaml";
Nishanth Menon9dd6bdc2023-11-04 03:01:35 -050089 schema = "board/ti/common/schema.yaml";
Neha Malcom Francis45140f02023-07-22 00:14:26 +053090 };
91 };
92 };
93 combined-sysfw-cfg {
94 filename = "combined-sysfw-cfg.bin";
95 ti-board-config {
Marcel Ziswiler060d30f2023-08-04 12:08:07 +020096 bcfg_yaml_sysfw: board-cfg {
Neha Malcom Francis45140f02023-07-22 00:14:26 +053097 config = "board-cfg.yaml";
Nishanth Menon9dd6bdc2023-11-04 03:01:35 -050098 schema = "board/ti/common/schema.yaml";
Neha Malcom Francis45140f02023-07-22 00:14:26 +053099 };
Marcel Ziswiler060d30f2023-08-04 12:08:07 +0200100 scfg_yaml_sysfw: sec-cfg {
Neha Malcom Francis45140f02023-07-22 00:14:26 +0530101 config = "sec-cfg.yaml";
Nishanth Menon9dd6bdc2023-11-04 03:01:35 -0500102 schema = "board/ti/common/schema.yaml";
Neha Malcom Francis45140f02023-07-22 00:14:26 +0530103 };
Marcel Ziswiler060d30f2023-08-04 12:08:07 +0200104 pcfg_yaml_sysfw: pm-cfg {
Neha Malcom Francis45140f02023-07-22 00:14:26 +0530105 config = "pm-cfg.yaml";
Nishanth Menon9dd6bdc2023-11-04 03:01:35 -0500106 schema = "board/ti/common/schema.yaml";
Neha Malcom Francis45140f02023-07-22 00:14:26 +0530107 };
Marcel Ziswiler060d30f2023-08-04 12:08:07 +0200108 rcfg_yaml_sysfw: rm-cfg {
Neha Malcom Francis45140f02023-07-22 00:14:26 +0530109 config = "rm-cfg.yaml";
Nishanth Menon9dd6bdc2023-11-04 03:01:35 -0500110 schema = "board/ti/common/schema.yaml";
Neha Malcom Francis45140f02023-07-22 00:14:26 +0530111 };
112 };
113 };
114};
115
Neha Malcom Francis86b363d2023-11-15 15:40:23 +0530116&binman {
117 itb_template: template-5 {
118 fit {
119 description = "SYSFW and Config fragments";
120 #address-cells = <1>;
121 images {
122 sysfw.bin {
123 description = "sysfw";
124 type = "firmware";
125 arch = "arm";
126 compression = "none";
127 blob-ext {
128 filename = "sysfw.bin";
129 };
130 };
131 board-cfg.bin {
132 description = "board-cfg";
133 type = "firmware";
134 arch = "arm";
135 compression = "none";
136 ti-secure {
137 content = <&board_cfg>;
138 keyfile = "custMpk.pem";
139 };
140 board_cfg: board-cfg {
141 filename = "board-cfg.bin";
142 type = "blob-ext";
143 };
144
145 };
146 pm-cfg.bin {
147 description = "pm-cfg";
148 type = "firmware";
149 arch = "arm";
150 compression = "none";
151 ti-secure {
152 content = <&pm_cfg>;
153 keyfile = "custMpk.pem";
154 };
155 pm_cfg: pm-cfg {
156 filename = "pm-cfg.bin";
157 type = "blob-ext";
158 };
159 };
160 rm-cfg.bin {
161 description = "rm-cfg";
162 type = "firmware";
163 arch = "arm";
164 compression = "none";
165 ti-secure {
166 content = <&rm_cfg>;
167 keyfile = "custMpk.pem";
168 };
169 rm_cfg: rm-cfg {
170 filename = "rm-cfg.bin";
171 type = "blob-ext";
172 };
173 };
174 sec-cfg.bin {
175 description = "sec-cfg";
176 type = "firmware";
177 arch = "arm";
178 compression = "none";
179 ti-secure {
180 content = <&sec_cfg>;
181 keyfile = "custMpk.pem";
182 };
183 sec_cfg: sec-cfg {
184 filename = "sec-cfg.bin";
185 type = "blob-ext";
186 };
187 };
188 };
189 };
190 };
191
192 itb_unsigned_template: template-6 {
193 fit {
194 description = "SYSFW and Config fragments";
195 #address-cells = <1>;
196 images {
197 sysfw.bin {
198 description = "sysfw";
199 type = "firmware";
200 arch = "arm";
201 compression = "none";
202 blob-ext {
203 filename = "sysfw.bin_fs";
204 };
205 };
206 board-cfg.bin {
207 description = "board-cfg";
208 type = "firmware";
209 arch = "arm";
210 compression = "none";
211 board-cfg {
212 filename = "board-cfg.bin";
213 type = "blob-ext";
214 };
215
216 };
217 pm-cfg.bin {
218 description = "pm-cfg";
219 type = "firmware";
220 arch = "arm";
221 compression = "none";
222 pm-cfg {
223 filename = "pm-cfg.bin";
224 type = "blob-ext";
225 };
226 };
227 rm-cfg.bin {
228 description = "rm-cfg";
229 type = "firmware";
230 arch = "arm";
231 compression = "none";
232 rm-cfg {
233 filename = "rm-cfg.bin";
234 type = "blob-ext";
235 };
236 };
237 sec-cfg.bin {
238 description = "sec-cfg";
239 type = "firmware";
240 arch = "arm";
241 compression = "none";
242 sec-cfg {
243 filename = "sec-cfg.bin";
244 type = "blob-ext";
245 };
246 };
247 };
248 };
249 };
250};
251
252#else
253
254&binman {
255 ti_spl_template: template-1 {
256 filename = "tispl.bin";
257 pad-byte = <0xff>;
258
259 fit {
260 description = "Configuration to load ATF and SPL";
261 #address-cells = <1>;
262
263 images {
264
265 atf {
266 description = "ARM Trusted Firmware";
267 type = "firmware";
268 arch = "arm64";
269 compression = "none";
270 os = "arm-trusted-firmware";
271 load = <CONFIG_K3_ATF_LOAD_ADDR>;
272 entry = <CONFIG_K3_ATF_LOAD_ADDR>;
273 ti-secure {
274 content = <&atf>;
275 keyfile = "custMpk.pem";
276 };
277 atf: atf-bl31 {
278 };
279 };
280
281 tee {
282 description = "OP-TEE";
283 type = "tee";
284 arch = "arm64";
285 compression = "none";
286 os = "tee";
287 load = <0x9e800000>;
288 entry = <0x9e800000>;
289 ti-secure {
290 content = <&tee>;
291 keyfile = "custMpk.pem";
292 };
293 tee: tee-os {
294 };
295 };
296
297 dm {
298 description = "DM binary";
299 type = "firmware";
300 arch = "arm32";
301 compression = "none";
302 os = "DM";
303 load = <0x89000000>;
304 entry = <0x89000000>;
305 };
306
307 spl {
308 description = "SPL (64-bit)";
309 type = "standalone";
310 os = "U-Boot";
311 arch = "arm64";
312 compression = "none";
313 load = <CONFIG_SPL_TEXT_BASE>;
314 entry = <CONFIG_SPL_TEXT_BASE>;
315 ti-secure {
316 content = <&u_boot_spl_nodtb>;
317 keyfile = "custMpk.pem";
318
319 };
320 u_boot_spl_nodtb: blob-ext {
321 filename = "spl/u-boot-spl-nodtb.bin";
322 };
323 };
324
325 };
326 };
327 };
328 ti_spl_unsigned_template: template-2 {
329 filename = "tispl.bin_unsigned";
330 pad-byte = <0xff>;
331
332 fit {
333 description = "Configuration to load ATF and SPL";
334 #address-cells = <1>;
335
336 images {
337
338 atf {
339 description = "ARM Trusted Firmware";
340 type = "firmware";
341 arch = "arm64";
342 compression = "none";
343 os = "arm-trusted-firmware";
344 load = <CONFIG_K3_ATF_LOAD_ADDR>;
345 entry = <CONFIG_K3_ATF_LOAD_ADDR>;
346 atf-bl31 {
347 filename = "bl31.bin";
348 };
349 };
350
351 tee {
352 description = "OP-TEE";
353 type = "tee";
354 arch = "arm64";
355 compression = "none";
356 os = "tee";
357 load = <0x9e800000>;
358 entry = <0x9e800000>;
359 tee-os {
360 filename = "tee-raw.bin";
361 };
362 };
363
364 dm {
365 description = "DM binary";
366 type = "firmware";
367 arch = "arm32";
368 compression = "none";
369 os = "DM";
370 load = <0x89000000>;
371 entry = <0x89000000>;
372 };
373
374 spl {
375 description = "SPL (64-bit)";
376 type = "standalone";
377 os = "U-Boot";
378 arch = "arm64";
379 compression = "none";
380 load = <CONFIG_SPL_TEXT_BASE>;
381 entry = <CONFIG_SPL_TEXT_BASE>;
382 blob-ext {
383 filename = "spl/u-boot-spl-nodtb.bin";
384 };
385 };
386 };
387 };
388 };
389 u_boot_template: template-3 {
390 filename = "u-boot.img";
391 pad-byte = <0xff>;
392
393 fit {
394 description = "FIT image with multiple configurations";
395
396 images {
397 uboot {
398 type = "firmware";
399 os = "u-boot";
400 arch = "arm";
401 compression = "none";
402 load = <CONFIG_TEXT_BASE>;
403 ti-secure {
404 content = <&u_boot_nodtb>;
405 keyfile = "custMpk.pem";
406 };
407 u_boot_nodtb: u-boot-nodtb {
408 };
409 hash {
410 algo = "crc32";
411 };
412 };
413 };
414 };
415 };
416 u_boot_unsigned_template: template-4 {
417 filename = "u-boot.img_unsigned";
418 pad-byte = <0xff>;
419
420 fit {
421 description = "FIT image with multiple configurations";
422
423 images {
424 uboot {
425 type = "firmware";
426 os = "u-boot";
427 arch = "arm";
428 compression = "none";
429 load = <CONFIG_TEXT_BASE>;
430 blob {
431 filename = "u-boot-nodtb.bin";
432 };
433 hash {
434 algo = "crc32";
435 };
436 };
437 };
438 };
439 };
440
441};
442
Neha Malcom Francis45140f02023-07-22 00:14:26 +0530443#endif