blob: 423badd7cb532fd13a6bfe15b7d49eeea930b500 [file] [log] [blame]
Neha Malcom Francis30dcda22023-07-22 00:14:30 +05301// SPDX-License-Identifier: GPL-2.0
2/*
Tom Rinidec7ea02024-05-20 13:35:03 -06003 * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/
Neha Malcom Francis30dcda22023-07-22 00:14:30 +05304 */
5
6#include "k3-binman.dtsi"
7
8#ifdef CONFIG_TARGET_J7200_R5_EVM
9
Neha Malcom Francis30dcda22023-07-22 00:14:30 +053010&binman {
Tom Rinidec7ea02024-05-20 13:35:03 -060011 tiboot3-j7200-hs-evm.bin {
12 filename = "tiboot3-j7200-hs-evm.bin";
13 ti-secure-rom {
14 content = <&u_boot_spl_sr1>, <&ti_fs_enc_sr1>, <&combined_tifs_cfg_sr1>,
15 <&combined_dm_cfg_sr1>, <&sysfw_inner_cert_sr1>;
16 combined;
17 dm-data;
18 core-opts = <2>;
19 sysfw-inner-cert;
20 keyfile = "custMpk.pem";
21 sw-rev = <1>;
22 content-sbl = <&u_boot_spl_sr1>;
23 content-sysfw = <&ti_fs_enc_sr1>;
24 content-sysfw-data = <&combined_tifs_cfg_sr1>;
25 content-sysfw-inner-cert = <&sysfw_inner_cert_sr1>;
26 content-dm-data = <&combined_dm_cfg_sr1>;
27 load = <0x41c00000>;
28 load-sysfw = <0x40000>;
29 load-sysfw-data = <0x7f000>;
30 load-dm-data = <0x41c80000>;
31 };
32 u_boot_spl_sr1: u-boot-spl {
33 no-expanded;
34 };
35 ti_fs_enc_sr1: ti-fs-enc.bin {
36 filename = "ti-sysfw/ti-fs-firmware-j7200-hs-enc.bin";
37 type = "blob-ext";
38 optional;
39 };
40 combined_tifs_cfg_sr1: combined-tifs-cfg.bin {
41 filename = "combined-tifs-cfg.bin";
42 type = "blob-ext";
43 };
44 sysfw_inner_cert_sr1: sysfw-inner-cert {
45 filename = "ti-sysfw/ti-fs-firmware-j7200-hs-cert.bin";
46 type = "blob-ext";
47 optional;
48 };
49 combined_dm_cfg_sr1: combined-dm-cfg.bin {
50 filename = "combined-dm-cfg.bin";
51 type = "blob-ext";
52 };
53 };
54};
55
56&binman {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +053057 tiboot3-j7200_sr2-hs-evm.bin {
58 filename = "tiboot3-j7200_sr2-hs-evm.bin";
59 ti-secure-rom {
60 content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>,
61 <&combined_dm_cfg>, <&sysfw_inner_cert>;
62 combined;
63 dm-data;
64 sysfw-inner-cert;
65 keyfile = "custMpk.pem";
66 sw-rev = <1>;
67 content-sbl = <&u_boot_spl>;
68 content-sysfw = <&ti_fs_enc>;
69 content-sysfw-data = <&combined_tifs_cfg>;
70 content-sysfw-inner-cert = <&sysfw_inner_cert>;
71 content-dm-data = <&combined_dm_cfg>;
72 load = <0x41c00000>;
73 load-sysfw = <0x40000>;
74 load-sysfw-data = <0x7f000>;
75 load-dm-data = <0x41c80000>;
76 };
77 u_boot_spl: u-boot-spl {
78 no-expanded;
79 };
80 ti_fs_enc: ti-fs-enc.bin {
81 filename = "ti-sysfw/ti-fs-firmware-j7200_sr2-hs-enc.bin";
82 type = "blob-ext";
83 optional;
84 };
85 combined_tifs_cfg: combined-tifs-cfg.bin {
86 filename = "combined-tifs-cfg.bin";
87 type = "blob-ext";
88 };
89 sysfw_inner_cert: sysfw-inner-cert {
90 filename = "ti-sysfw/ti-fs-firmware-j7200_sr2-hs-cert.bin";
91 type = "blob-ext";
92 optional;
93 };
94 combined_dm_cfg: combined-dm-cfg.bin {
95 filename = "combined-dm-cfg.bin";
96 type = "blob-ext";
97 };
98 };
99};
100
101&binman {
Tom Rinidec7ea02024-05-20 13:35:03 -0600102 tiboot3-j7200-hs-fs-evm.bin {
103 filename = "tiboot3-j7200-hs-fs-evm.bin";
104 ti-secure-rom {
105 content = <&u_boot_spl_fs_sr1>, <&ti_fs_enc_fs_sr1>,
106 <&combined_tifs_cfg_fs_sr1>, <&combined_dm_cfg_fs_sr1>,
107 <&sysfw_inner_cert_fs_sr1>;
108 combined;
109 dm-data;
110 core-opts = <2>;
111 sysfw-inner-cert;
112 keyfile = "custMpk.pem";
113 sw-rev = <1>;
114 content-sbl = <&u_boot_spl_fs_sr1>;
115 content-sysfw = <&ti_fs_enc_fs_sr1>;
116 content-sysfw-data = <&combined_tifs_cfg_fs_sr1>;
117 content-sysfw-inner-cert = <&sysfw_inner_cert_fs_sr1>;
118 content-dm-data = <&combined_dm_cfg_fs_sr1>;
119 load = <0x41c00000>;
120 load-sysfw = <0x40000>;
121 load-sysfw-data = <0x7f000>;
122 load-dm-data = <0x41c80000>;
123 };
124 u_boot_spl_fs_sr1: u-boot-spl {
125 no-expanded;
126 };
127 ti_fs_enc_fs_sr1: ti-fs-enc.bin {
128 filename = "ti-sysfw/ti-fs-firmware-j7200-hs-fs-enc.bin";
129 type = "blob-ext";
130 optional;
131 };
132 combined_tifs_cfg_fs_sr1: combined-tifs-cfg.bin {
133 filename = "combined-tifs-cfg.bin";
134 type = "blob-ext";
135 };
136 sysfw_inner_cert_fs_sr1: sysfw-inner-cert {
137 filename = "ti-sysfw/ti-fs-firmware-j7200-hs-fs-cert.bin";
138 type = "blob-ext";
139 optional;
140 };
141 combined_dm_cfg_fs_sr1: combined-dm-cfg.bin {
142 filename = "combined-dm-cfg.bin";
143 type = "blob-ext";
144 };
145 };
146};
147
148&binman {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530149 tiboot3-j7200_sr2-hs-fs-evm.bin {
150 filename = "tiboot3-j7200_sr2-hs-fs-evm.bin";
151 ti-secure-rom {
152 content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>,
153 <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>;
154 combined;
155 dm-data;
156 sysfw-inner-cert;
157 keyfile = "custMpk.pem";
158 sw-rev = <1>;
159 content-sbl = <&u_boot_spl_fs>;
160 content-sysfw = <&ti_fs_enc_fs>;
161 content-sysfw-data = <&combined_tifs_cfg_fs>;
162 content-sysfw-inner-cert = <&sysfw_inner_cert_fs>;
163 content-dm-data = <&combined_dm_cfg_fs>;
164 load = <0x41c00000>;
165 load-sysfw = <0x40000>;
166 load-sysfw-data = <0x7f000>;
167 load-dm-data = <0x41c80000>;
168 };
169 u_boot_spl_fs: u-boot-spl {
170 no-expanded;
171 };
172 ti_fs_enc_fs: ti-fs-enc.bin {
173 filename = "ti-sysfw/ti-fs-firmware-j7200_sr2-hs-fs-enc.bin";
174 type = "blob-ext";
175 optional;
176 };
177 combined_tifs_cfg_fs: combined-tifs-cfg.bin {
178 filename = "combined-tifs-cfg.bin";
179 type = "blob-ext";
180 };
181 sysfw_inner_cert_fs: sysfw-inner-cert {
182 filename = "ti-sysfw/ti-fs-firmware-j7200_sr2-hs-fs-cert.bin";
183 type = "blob-ext";
184 optional;
185 };
186 combined_dm_cfg_fs: combined-dm-cfg.bin {
187 filename = "combined-dm-cfg.bin";
188 type = "blob-ext";
189 };
190 };
191};
192
193&binman {
194 tiboot3-j7200-gp-evm.bin {
195 filename = "tiboot3-j7200-gp-evm.bin";
196 symlink = "tiboot3.bin";
197 ti-secure-rom {
198 content = <&u_boot_spl_unsigned>, <&ti_fs_gp>,
199 <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>;
200 combined;
201 dm-data;
202 content-sbl = <&u_boot_spl_unsigned>;
203 load = <0x41c00000>;
204 content-sysfw = <&ti_fs_gp>;
205 load-sysfw = <0x40000>;
206 content-sysfw-data = <&combined_tifs_cfg_gp>;
207 load-sysfw-data = <0x7f000>;
208 content-dm-data = <&combined_dm_cfg_gp>;
209 load-dm-data = <0x41c80000>;
210 sw-rev = <1>;
211 keyfile = "ti-degenerate-key.pem";
212 };
213 u_boot_spl_unsigned: u-boot-spl {
214 no-expanded;
215 };
216 ti_fs_gp: ti-fs-gp.bin {
217 filename = "ti-sysfw/ti-fs-firmware-j7200-gp.bin";
218 type = "blob-ext";
219 optional;
220 };
221 combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin {
222 filename = "combined-tifs-cfg.bin";
223 type = "blob-ext";
224 };
225 combined_dm_cfg_gp: combined-dm-cfg-gp.bin {
226 filename = "combined-dm-cfg.bin";
227 type = "blob-ext";
228 };
229 };
230};
231
232#endif
233
234#ifdef CONFIG_TARGET_J7200_A72_EVM
235
Aniket Limaye38047902024-05-21 11:18:42 +0530236#define SPL_J7200_EVM_DTB "spl/dts/ti/k3-j7200-common-proc-board.dtb"
Manorit Chawdhry64ebddb2023-07-14 11:22:38 +0530237#define J7200_EVM_DTB "u-boot.dtb"
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530238
239&binman {
240 ti-dm {
241 filename = "ti-dm.bin";
242 blob-ext {
243 filename = "ti-dm/j7200/ipc_echo_testb_mcu1_0_release_strip.xer5f";
Neha Malcom Francisdf41fc62024-05-29 13:18:49 +0530244 optional;
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530245 };
246 };
247 ti-spl {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530248 insert-template = <&ti_spl_template>;
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530249
250 fit {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530251 images {
Manorit Chawdhryebea8982023-12-29 16:16:31 +0530252 atf {
253 ti-secure {
254 auth-in-place = <0xa02>;
255
256 firewall-257-0 {
257 /* cpu_0_cpu_0_msmc Background Firewall */
258 insert-template = <&firewall_bg_1>;
259 id = <257>;
260 region = <0>;
261 };
262
263 firewall-257-1 {
264 /* cpu_0_cpu_0_msmc Foreground Firewall */
265 insert-template = <&firewall_armv8_atf_fg>;
266 id = <257>;
267 region = <1>;
268 };
269
270 /* firewall-4760-0 {
271 * nb_slv0__mem0 Background Firewall
272 * Already configured by the secure entity
273 * };
274 */
275
276 firewall-4760-1 {
277 /* nb_slv0__mem0 Foreground Firewall */
278 insert-template = <&firewall_armv8_atf_fg>;
279 id = <4760>;
280 region = <1>;
281 };
282
283 /* firewall-4761-0 {
284 * nb_slv1__mem0 Background Firewall
285 * Already configured by the secure entity
286 * };
287 */
288
289 firewall-4761-1 {
290 /* nb_slv1__mem0 Foreground Firewall */
291 insert-template = <&firewall_armv8_atf_fg>;
292 id = <4761>;
293 region = <1>;
294 };
295 };
296 };
297
298 tee {
299 ti-secure {
300 auth-in-place = <0xa02>;
301
302 /* cpu_0_cpu_0_msmc region 0 and 1 configured
303 * during ATF Firewalling
304 */
305
306 firewall-257-2 {
307 /* cpu_0_cpu_0_msmc Foreground Firewall */
308 insert-template = <&firewall_armv8_optee_fg>;
309 id = <257>;
310 region = <2>;
311 };
312
313 firewall-4762-0 {
314 /* nb_slv2__mem0 Background Firewall - 0 */
315 insert-template = <&firewall_bg_3>;
316 id = <4762>;
317 region = <0>;
318 };
319
320 firewall-4762-1 {
321 /* nb_slv2__mem0 Foreground Firewall */
322 insert-template = <&firewall_armv8_optee_fg>;
323 id = <4762>;
324 region = <1>;
325 };
326
327 firewall-4763-0 {
328 /* nb_slv3__mem0 Background Firewall - 0 */
329 insert-template = <&firewall_bg_3>;
330 id = <4763>;
331 region = <0>;
332 };
333
334 firewall-4763-1 {
335 /* nb_slv3__mem0 Foreground Firewall */
336 insert-template = <&firewall_armv8_optee_fg>;
337 id = <4763>;
338 region = <1>;
339 };
340 };
341 };
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530342 dm {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530343 ti-secure {
344 content = <&dm>;
345 keyfile = "custMpk.pem";
346 };
Neha Malcom Francis82378212023-12-05 15:12:19 +0530347 dm: ti-dm {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530348 filename = "ti-dm.bin";
349 };
350 };
351
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530352 fdt-0 {
353 description = "k3-j7200-common-proc-board";
354 type = "flat_dt";
355 arch = "arm";
356 compression = "none";
357 ti-secure {
358 content = <&spl_j7200_evm_dtb>;
359 keyfile = "custMpk.pem";
360 };
361 spl_j7200_evm_dtb: blob-ext {
362 filename = SPL_J7200_EVM_DTB;
363 };
364 };
365
366 };
367
368 configurations {
369 default = "conf-0";
370
371 conf-0 {
372 description = "k3-j7200-common-proc-board";
373 firmware = "atf";
374 loadables = "tee", "dm", "spl";
375 fdt = "fdt-0";
376 };
377 };
378 };
379 };
380};
381
382&binman {
383 u-boot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530384 insert-template = <&u_boot_template>;
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530385
386 fit {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530387 images {
388 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530389 description = "U-Boot for J7200 Board";
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530390 };
391
392 fdt-0 {
393 description = "k3-j7200-common-proc-board";
394 type = "flat_dt";
395 arch = "arm";
396 compression = "none";
397 ti-secure {
398 content = <&j7200_evm_dtb>;
399 keyfile = "custMpk.pem";
400 };
401 j7200_evm_dtb: blob-ext {
402 filename = J7200_EVM_DTB;
403 };
404 hash {
405 algo = "crc32";
406 };
407 };
408 };
409
410 configurations {
411 default = "conf-0";
412
413 conf-0 {
414 description = "k3-j7200-common-proc-board";
415 firmware = "uboot";
416 loadables = "uboot";
417 fdt = "fdt-0";
418 };
419
420 };
421 };
422 };
423};
424
425&binman {
426 ti-spl_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530427 insert-template = <&ti_spl_unsigned_template>;
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530428
429 fit {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530430 images {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530431 dm {
Neha Malcom Francis82378212023-12-05 15:12:19 +0530432 ti-dm {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530433 filename = "ti-dm.bin";
434 };
435 };
436
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530437 fdt-1 {
438 description = "k3-j7200-common-proc-board";
439 type = "flat_dt";
440 arch = "arm";
441 compression = "none";
442 blob {
443 filename = SPL_J7200_EVM_DTB;
444 };
445 };
446 };
447
448 configurations {
449 default = "conf-1";
450
451 conf-1 {
452 description = "k3-j7200-common-proc-board";
453 firmware = "atf";
454 loadables = "tee", "dm", "spl";
455 fdt = "fdt-1";
456 };
457 };
458 };
459 };
460};
461
462&binman {
463 u-boot_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530464 insert-template = <&u_boot_unsigned_template>;
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530465
466 fit {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530467 images {
468 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530469 description = "U-Boot for J7200 Board";
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530470 };
471
472 fdt-1 {
473 description = "k3-j7200-common-proc-board";
474 type = "flat_dt";
475 arch = "arm";
476 compression = "none";
477 blob {
478 filename = J7200_EVM_DTB;
479 };
480 hash {
481 algo = "crc32";
482 };
483 };
484 };
485
486 configurations {
487 default = "conf-1";
488
489 conf-1 {
490 description = "k3-j7200-common-proc-board";
491 firmware = "uboot";
492 loadables = "uboot";
493 fdt = "fdt-1";
494 };
495 };
496 };
497 };
498};
499#endif