blob: 47a4cde6b8544e7363e01fd3db775948474797de [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 {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530240 ti-spl {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530241 insert-template = <&ti_spl_template>;
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530242
243 fit {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530244 images {
Manorit Chawdhryebea8982023-12-29 16:16:31 +0530245 atf {
246 ti-secure {
247 auth-in-place = <0xa02>;
248
249 firewall-257-0 {
250 /* cpu_0_cpu_0_msmc Background Firewall */
251 insert-template = <&firewall_bg_1>;
252 id = <257>;
253 region = <0>;
254 };
255
256 firewall-257-1 {
257 /* cpu_0_cpu_0_msmc Foreground Firewall */
258 insert-template = <&firewall_armv8_atf_fg>;
259 id = <257>;
260 region = <1>;
261 };
262
263 /* firewall-4760-0 {
264 * nb_slv0__mem0 Background Firewall
265 * Already configured by the secure entity
266 * };
267 */
268
269 firewall-4760-1 {
270 /* nb_slv0__mem0 Foreground Firewall */
271 insert-template = <&firewall_armv8_atf_fg>;
272 id = <4760>;
273 region = <1>;
274 };
275
276 /* firewall-4761-0 {
277 * nb_slv1__mem0 Background Firewall
278 * Already configured by the secure entity
279 * };
280 */
281
282 firewall-4761-1 {
283 /* nb_slv1__mem0 Foreground Firewall */
284 insert-template = <&firewall_armv8_atf_fg>;
285 id = <4761>;
286 region = <1>;
287 };
288 };
289 };
290
291 tee {
292 ti-secure {
293 auth-in-place = <0xa02>;
294
295 /* cpu_0_cpu_0_msmc region 0 and 1 configured
296 * during ATF Firewalling
297 */
298
299 firewall-257-2 {
300 /* cpu_0_cpu_0_msmc Foreground Firewall */
301 insert-template = <&firewall_armv8_optee_fg>;
302 id = <257>;
303 region = <2>;
304 };
305
306 firewall-4762-0 {
307 /* nb_slv2__mem0 Background Firewall - 0 */
308 insert-template = <&firewall_bg_3>;
309 id = <4762>;
310 region = <0>;
311 };
312
313 firewall-4762-1 {
314 /* nb_slv2__mem0 Foreground Firewall */
315 insert-template = <&firewall_armv8_optee_fg>;
316 id = <4762>;
317 region = <1>;
318 };
319
320 firewall-4763-0 {
321 /* nb_slv3__mem0 Background Firewall - 0 */
322 insert-template = <&firewall_bg_3>;
323 id = <4763>;
324 region = <0>;
325 };
326
327 firewall-4763-1 {
328 /* nb_slv3__mem0 Foreground Firewall */
329 insert-template = <&firewall_armv8_optee_fg>;
330 id = <4763>;
331 region = <1>;
332 };
333 };
334 };
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530335 dm {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530336 ti-secure {
337 content = <&dm>;
338 keyfile = "custMpk.pem";
339 };
Neha Malcom Francis82378212023-12-05 15:12:19 +0530340 dm: ti-dm {
Andrew Davis7ed4a852025-04-25 17:54:03 -0500341 filename = "ti-dm/j7200/ipc_echo_testb_mcu1_0_release_strip.xer5f";
342 optional;
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530343 };
344 };
345
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530346 fdt-0 {
347 description = "k3-j7200-common-proc-board";
348 type = "flat_dt";
349 arch = "arm";
350 compression = "none";
351 ti-secure {
352 content = <&spl_j7200_evm_dtb>;
353 keyfile = "custMpk.pem";
354 };
355 spl_j7200_evm_dtb: blob-ext {
356 filename = SPL_J7200_EVM_DTB;
357 };
358 };
359
360 };
361
362 configurations {
363 default = "conf-0";
364
365 conf-0 {
366 description = "k3-j7200-common-proc-board";
367 firmware = "atf";
368 loadables = "tee", "dm", "spl";
369 fdt = "fdt-0";
370 };
371 };
372 };
373 };
374};
375
376&binman {
377 u-boot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530378 insert-template = <&u_boot_template>;
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530379
380 fit {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530381 images {
382 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530383 description = "U-Boot for J7200 Board";
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530384 };
385
386 fdt-0 {
387 description = "k3-j7200-common-proc-board";
388 type = "flat_dt";
389 arch = "arm";
390 compression = "none";
391 ti-secure {
392 content = <&j7200_evm_dtb>;
393 keyfile = "custMpk.pem";
394 };
395 j7200_evm_dtb: blob-ext {
396 filename = J7200_EVM_DTB;
397 };
398 hash {
399 algo = "crc32";
400 };
401 };
402 };
403
404 configurations {
405 default = "conf-0";
406
407 conf-0 {
408 description = "k3-j7200-common-proc-board";
409 firmware = "uboot";
410 loadables = "uboot";
411 fdt = "fdt-0";
412 };
413
414 };
415 };
416 };
417};
418
419&binman {
420 ti-spl_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530421 insert-template = <&ti_spl_unsigned_template>;
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530422
423 fit {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530424 images {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530425 dm {
Neha Malcom Francis82378212023-12-05 15:12:19 +0530426 ti-dm {
Andrew Davis7ed4a852025-04-25 17:54:03 -0500427 filename = "ti-dm/j7200/ipc_echo_testb_mcu1_0_release_strip.xer5f";
428 optional;
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530429 };
430 };
431
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530432 fdt-1 {
433 description = "k3-j7200-common-proc-board";
434 type = "flat_dt";
435 arch = "arm";
436 compression = "none";
437 blob {
438 filename = SPL_J7200_EVM_DTB;
439 };
440 };
441 };
442
443 configurations {
444 default = "conf-1";
445
446 conf-1 {
447 description = "k3-j7200-common-proc-board";
448 firmware = "atf";
449 loadables = "tee", "dm", "spl";
450 fdt = "fdt-1";
451 };
452 };
453 };
454 };
455};
456
457&binman {
458 u-boot_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530459 insert-template = <&u_boot_unsigned_template>;
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530460
461 fit {
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530462 images {
463 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530464 description = "U-Boot for J7200 Board";
Neha Malcom Francis30dcda22023-07-22 00:14:30 +0530465 };
466
467 fdt-1 {
468 description = "k3-j7200-common-proc-board";
469 type = "flat_dt";
470 arch = "arm";
471 compression = "none";
472 blob {
473 filename = J7200_EVM_DTB;
474 };
475 hash {
476 algo = "crc32";
477 };
478 };
479 };
480
481 configurations {
482 default = "conf-1";
483
484 conf-1 {
485 description = "k3-j7200-common-proc-board";
486 firmware = "uboot";
487 loadables = "uboot";
488 fdt = "fdt-1";
489 };
490 };
491 };
492 };
493};
494#endif