blob: 14f7dea65ee3e1bccf5fc219fa7d48c3d19c9cd9 [file] [log] [blame]
Neha Malcom Francisca5f1e22023-07-22 00:14:30 +05301// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/
4 */
5
6#include "k3-binman.dtsi"
7
8#ifdef CONFIG_TARGET_J7200_R5_EVM
9
10&bcfg_yaml {
11 config = "board-cfg_j7200.yaml";
12};
13
14&rcfg_yaml {
15 config = "rm-cfg_j7200.yaml";
16};
17
18&pcfg_yaml {
19 config = "pm-cfg_j7200.yaml";
20};
21
22&scfg_yaml {
23 config = "sec-cfg_j7200.yaml";
24};
25
26&bcfg_yaml_tifs {
27 config = "board-cfg_j7200.yaml";
28};
29
30&rcfg_yaml_tifs {
31 config = "rm-cfg_j7200.yaml";
32};
33
34&pcfg_yaml_tifs {
35 config = "pm-cfg_j7200.yaml";
36};
37
38&scfg_yaml_tifs {
39 config = "sec-cfg_j7200.yaml";
40};
41
42&rcfg_yaml_dm {
43 config = "rm-cfg_j7200.yaml";
44};
45
46&pcfg_yaml_dm {
47 config = "pm-cfg_j7200.yaml";
48};
49
50&binman {
51 tiboot3-j7200_sr2-hs-evm.bin {
52 filename = "tiboot3-j7200_sr2-hs-evm.bin";
53 ti-secure-rom {
54 content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>,
55 <&combined_dm_cfg>, <&sysfw_inner_cert>;
56 combined;
57 dm-data;
58 sysfw-inner-cert;
59 keyfile = "custMpk.pem";
60 sw-rev = <1>;
61 content-sbl = <&u_boot_spl>;
62 content-sysfw = <&ti_fs_enc>;
63 content-sysfw-data = <&combined_tifs_cfg>;
64 content-sysfw-inner-cert = <&sysfw_inner_cert>;
65 content-dm-data = <&combined_dm_cfg>;
66 load = <0x41c00000>;
67 load-sysfw = <0x40000>;
68 load-sysfw-data = <0x7f000>;
69 load-dm-data = <0x41c80000>;
70 };
71 u_boot_spl: u-boot-spl {
72 no-expanded;
73 };
74 ti_fs_enc: ti-fs-enc.bin {
75 filename = "ti-sysfw/ti-fs-firmware-j7200_sr2-hs-enc.bin";
76 type = "blob-ext";
77 optional;
78 };
79 combined_tifs_cfg: combined-tifs-cfg.bin {
80 filename = "combined-tifs-cfg.bin";
81 type = "blob-ext";
82 };
83 sysfw_inner_cert: sysfw-inner-cert {
84 filename = "ti-sysfw/ti-fs-firmware-j7200_sr2-hs-cert.bin";
85 type = "blob-ext";
86 optional;
87 };
88 combined_dm_cfg: combined-dm-cfg.bin {
89 filename = "combined-dm-cfg.bin";
90 type = "blob-ext";
91 };
92 };
93};
94
95&binman {
96 tiboot3-j7200_sr2-hs-fs-evm.bin {
97 filename = "tiboot3-j7200_sr2-hs-fs-evm.bin";
98 ti-secure-rom {
99 content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>,
100 <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>;
101 combined;
102 dm-data;
103 sysfw-inner-cert;
104 keyfile = "custMpk.pem";
105 sw-rev = <1>;
106 content-sbl = <&u_boot_spl_fs>;
107 content-sysfw = <&ti_fs_enc_fs>;
108 content-sysfw-data = <&combined_tifs_cfg_fs>;
109 content-sysfw-inner-cert = <&sysfw_inner_cert_fs>;
110 content-dm-data = <&combined_dm_cfg_fs>;
111 load = <0x41c00000>;
112 load-sysfw = <0x40000>;
113 load-sysfw-data = <0x7f000>;
114 load-dm-data = <0x41c80000>;
115 };
116 u_boot_spl_fs: u-boot-spl {
117 no-expanded;
118 };
119 ti_fs_enc_fs: ti-fs-enc.bin {
120 filename = "ti-sysfw/ti-fs-firmware-j7200_sr2-hs-fs-enc.bin";
121 type = "blob-ext";
122 optional;
123 };
124 combined_tifs_cfg_fs: combined-tifs-cfg.bin {
125 filename = "combined-tifs-cfg.bin";
126 type = "blob-ext";
127 };
128 sysfw_inner_cert_fs: sysfw-inner-cert {
129 filename = "ti-sysfw/ti-fs-firmware-j7200_sr2-hs-fs-cert.bin";
130 type = "blob-ext";
131 optional;
132 };
133 combined_dm_cfg_fs: combined-dm-cfg.bin {
134 filename = "combined-dm-cfg.bin";
135 type = "blob-ext";
136 };
137 };
138};
139
140&binman {
141 tiboot3-j7200-gp-evm.bin {
142 filename = "tiboot3-j7200-gp-evm.bin";
143 symlink = "tiboot3.bin";
144 ti-secure-rom {
145 content = <&u_boot_spl_unsigned>, <&ti_fs_gp>,
146 <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>;
147 combined;
148 dm-data;
149 content-sbl = <&u_boot_spl_unsigned>;
150 load = <0x41c00000>;
151 content-sysfw = <&ti_fs_gp>;
152 load-sysfw = <0x40000>;
153 content-sysfw-data = <&combined_tifs_cfg_gp>;
154 load-sysfw-data = <0x7f000>;
155 content-dm-data = <&combined_dm_cfg_gp>;
156 load-dm-data = <0x41c80000>;
157 sw-rev = <1>;
158 keyfile = "ti-degenerate-key.pem";
159 };
160 u_boot_spl_unsigned: u-boot-spl {
161 no-expanded;
162 };
163 ti_fs_gp: ti-fs-gp.bin {
164 filename = "ti-sysfw/ti-fs-firmware-j7200-gp.bin";
165 type = "blob-ext";
166 optional;
167 };
168 combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin {
169 filename = "combined-tifs-cfg.bin";
170 type = "blob-ext";
171 };
172 combined_dm_cfg_gp: combined-dm-cfg-gp.bin {
173 filename = "combined-dm-cfg.bin";
174 type = "blob-ext";
175 };
176 };
177};
178
179#endif
180
181#ifdef CONFIG_TARGET_J7200_A72_EVM
182
183#define SPL_NODTB "spl/u-boot-spl-nodtb.bin"
184#define SPL_J7200_EVM_DTB "spl/dts/k3-j7200-common-proc-board.dtb"
185
186#define UBOOT_NODTB "u-boot-nodtb.bin"
Manorit Chawdhry17553572023-07-14 11:22:38 +0530187#define J7200_EVM_DTB "u-boot.dtb"
Neha Malcom Francisca5f1e22023-07-22 00:14:30 +0530188
189&binman {
190 ti-dm {
191 filename = "ti-dm.bin";
192 blob-ext {
193 filename = "ti-dm/j7200/ipc_echo_testb_mcu1_0_release_strip.xer5f";
194 };
195 };
196 ti-spl {
197 filename = "tispl.bin";
198 pad-byte = <0xff>;
199
200 fit {
201 description = "Configuration to load ATF and SPL";
202 #address-cells = <1>;
203
204 images {
205
206 atf {
207 description = "ARM Trusted Firmware";
208 type = "firmware";
209 arch = "arm64";
210 compression = "none";
211 os = "arm-trusted-firmware";
212 load = <CONFIG_K3_ATF_LOAD_ADDR>;
213 entry = <CONFIG_K3_ATF_LOAD_ADDR>;
214 ti-secure {
215 content = <&atf>;
216 keyfile = "custMpk.pem";
217 };
218 atf: atf-bl31 {
219 };
220 };
221
222 tee {
223 description = "OP-TEE";
224 type = "tee";
225 arch = "arm64";
226 compression = "none";
227 os = "tee";
228 load = <0x9e800000>;
229 entry = <0x9e800000>;
230 ti-secure {
231 content = <&tee>;
232 keyfile = "custMpk.pem";
233 };
234 tee: tee-os {
235 };
236 };
237
238 dm {
239 description = "DM binary";
240 type = "firmware";
241 arch = "arm32";
242 compression = "none";
243 os = "DM";
244 load = <0x89000000>;
245 entry = <0x89000000>;
246 ti-secure {
247 content = <&dm>;
248 keyfile = "custMpk.pem";
249 };
250
251 dm: blob-ext {
252 filename = "ti-dm.bin";
253 };
254 };
255
256 spl {
257 description = "SPL (64-bit)";
258 type = "standalone";
259 os = "U-Boot";
260 arch = "arm64";
261 compression = "none";
262 load = <CONFIG_SPL_TEXT_BASE>;
263 entry = <CONFIG_SPL_TEXT_BASE>;
264 ti-secure {
265 content = <&u_boot_spl_nodtb>;
266 keyfile = "custMpk.pem";
267 };
268 u_boot_spl_nodtb: blob-ext {
269 filename = SPL_NODTB;
270 };
271 };
272
273 fdt-0 {
274 description = "k3-j7200-common-proc-board";
275 type = "flat_dt";
276 arch = "arm";
277 compression = "none";
278 ti-secure {
279 content = <&spl_j7200_evm_dtb>;
280 keyfile = "custMpk.pem";
281 };
282 spl_j7200_evm_dtb: blob-ext {
283 filename = SPL_J7200_EVM_DTB;
284 };
285 };
286
287 };
288
289 configurations {
290 default = "conf-0";
291
292 conf-0 {
293 description = "k3-j7200-common-proc-board";
294 firmware = "atf";
295 loadables = "tee", "dm", "spl";
296 fdt = "fdt-0";
297 };
298 };
299 };
300 };
301};
302
303&binman {
304 u-boot {
305 filename = "u-boot.img";
306 pad-byte = <0xff>;
307
308 fit {
309 description = "FIT image with multiple configurations";
310
311 images {
312 uboot {
313 description = "U-Boot for J7200 board";
314 type = "firmware";
315 os = "u-boot";
316 arch = "arm";
317 compression = "none";
318 load = <CONFIG_TEXT_BASE>;
319 ti-secure {
320 content = <&u_boot_nodtb>;
321 keyfile = "custMpk.pem";
322 };
323 u_boot_nodtb: u-boot-nodtb {
324 };
325 hash {
326 algo = "crc32";
327 };
328 };
329
330 fdt-0 {
331 description = "k3-j7200-common-proc-board";
332 type = "flat_dt";
333 arch = "arm";
334 compression = "none";
335 ti-secure {
336 content = <&j7200_evm_dtb>;
337 keyfile = "custMpk.pem";
338 };
339 j7200_evm_dtb: blob-ext {
340 filename = J7200_EVM_DTB;
341 };
342 hash {
343 algo = "crc32";
344 };
345 };
346 };
347
348 configurations {
349 default = "conf-0";
350
351 conf-0 {
352 description = "k3-j7200-common-proc-board";
353 firmware = "uboot";
354 loadables = "uboot";
355 fdt = "fdt-0";
356 };
357
358 };
359 };
360 };
361};
362
363&binman {
364 ti-spl_unsigned {
365 filename = "tispl.bin_unsigned";
366 pad-byte = <0xff>;
367
368 fit {
369 description = "Configuration to load ATF and SPL";
370 #address-cells = <1>;
371
372 images {
373
374 atf {
375 description = "ARM Trusted Firmware";
376 type = "firmware";
377 arch = "arm64";
378 compression = "none";
379 os = "arm-trusted-firmware";
380 load = <CONFIG_K3_ATF_LOAD_ADDR>;
381 entry = <CONFIG_K3_ATF_LOAD_ADDR>;
382 atf-bl31 {
383 filename = "bl31.bin";
384 };
385 };
386
387 tee {
388 description = "OP-TEE";
389 type = "tee";
390 arch = "arm64";
391 compression = "none";
392 os = "tee";
393 load = <0x9e800000>;
394 entry = <0x9e800000>;
395 tee-os {
396 filename = "tee-raw.bin";
397 };
398 };
399
400 dm {
401 description = "DM binary";
402 type = "firmware";
403 arch = "arm32";
404 compression = "none";
405 os = "DM";
406 load = <0x89000000>;
407 entry = <0x89000000>;
408 blob-ext {
409 filename = "ti-dm.bin";
410 };
411 };
412
413 spl {
414 description = "SPL (64-bit)";
415 type = "standalone";
416 os = "U-Boot";
417 arch = "arm64";
418 compression = "none";
419 load = <CONFIG_SPL_TEXT_BASE>;
420 entry = <CONFIG_SPL_TEXT_BASE>;
421 blob {
422 filename = SPL_NODTB;
423 };
424 };
425
426 fdt-1 {
427 description = "k3-j7200-common-proc-board";
428 type = "flat_dt";
429 arch = "arm";
430 compression = "none";
431 blob {
432 filename = SPL_J7200_EVM_DTB;
433 };
434 };
435 };
436
437 configurations {
438 default = "conf-1";
439
440 conf-1 {
441 description = "k3-j7200-common-proc-board";
442 firmware = "atf";
443 loadables = "tee", "dm", "spl";
444 fdt = "fdt-1";
445 };
446 };
447 };
448 };
449};
450
451&binman {
452 u-boot_unsigned {
453 filename = "u-boot.img_unsigned";
454 pad-byte = <0xff>;
455
456 fit {
457 description = "FIT image with multiple configurations";
458
459 images {
460 uboot {
461 description = "U-Boot for J7200 board";
462 type = "firmware";
463 os = "u-boot";
464 arch = "arm";
465 compression = "none";
466 load = <CONFIG_TEXT_BASE>;
467 blob {
468 filename = UBOOT_NODTB;
469 };
470 hash {
471 algo = "crc32";
472 };
473 };
474
475 fdt-1 {
476 description = "k3-j7200-common-proc-board";
477 type = "flat_dt";
478 arch = "arm";
479 compression = "none";
480 blob {
481 filename = J7200_EVM_DTB;
482 };
483 hash {
484 algo = "crc32";
485 };
486 };
487 };
488
489 configurations {
490 default = "conf-1";
491
492 conf-1 {
493 description = "k3-j7200-common-proc-board";
494 firmware = "uboot";
495 loadables = "uboot";
496 fdt = "fdt-1";
497 };
498 };
499 };
500 };
501};
502#endif