]>
Commit | Line | Data |
---|---|---|
17717868 NMF |
1 | // SPDX-License-Identifier: GPL-2.0 |
2 | /* | |
d678a59d | 3 | * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ |
17717868 NMF |
4 | */ |
5 | ||
6 | #include "k3-binman.dtsi" | |
7 | ||
8 | #ifdef CONFIG_TARGET_J721E_R5_EVM | |
9 | ||
10 | &binman { | |
11 | tiboot3-j721e_sr1_1-hs-evm.bin { | |
12 | filename = "tiboot3-j721e_sr1_1-hs-evm.bin"; | |
13 | ti-secure-rom { | |
14 | content = <&u_boot_spl>; | |
15 | core = "public"; | |
16 | load = <CONFIG_SPL_TEXT_BASE>; | |
17 | keyfile = "custMpk.pem"; | |
18 | }; | |
19 | u_boot_spl: u-boot-spl { | |
20 | no-expanded; | |
21 | }; | |
22 | }; | |
481ffca4 NMF |
23 | |
24 | tiboot3-j721e_sr2-hs-evm.bin { | |
25 | filename = "tiboot3-j721e_sr2-hs-evm.bin"; | |
26 | ti-secure-rom { | |
27 | content = <&u_boot_spl_sr2>; | |
28 | core = "public"; | |
29 | load = <CONFIG_SPL_TEXT_BASE>; | |
30 | keyfile = "custMpk.pem"; | |
31 | }; | |
32 | u_boot_spl_sr2: u-boot-spl { | |
33 | no-expanded; | |
34 | }; | |
35 | }; | |
36 | ||
17717868 NMF |
37 | sysfw { |
38 | filename = "sysfw.bin"; | |
39 | ti-secure-rom { | |
40 | content = <&ti_fs_cert>; | |
41 | core = "secure"; | |
42 | load = <0x40000>; | |
43 | keyfile = "custMpk.pem"; | |
44 | countersign; | |
45 | }; | |
46 | ti_fs_cert: ti-fs-cert.bin { | |
47 | filename = "ti-sysfw/ti-fs-firmware-j721e_sr1_1-hs-cert.bin"; | |
48 | type = "blob-ext"; | |
49 | optional; | |
50 | }; | |
51 | ti-fs-firmware-j721e_sr1_1-hs-enc.bin { | |
52 | filename = "ti-sysfw/ti-fs-firmware-j721e_sr1_1-hs-enc.bin"; | |
53 | type = "blob-ext"; | |
54 | optional; | |
55 | }; | |
56 | }; | |
481ffca4 NMF |
57 | |
58 | sysfw_sr2 { | |
59 | filename = "sysfw.bin_sr2"; | |
60 | ti-secure-rom { | |
61 | content = <&ti_fs_cert_sr2>; | |
62 | core = "secure"; | |
63 | load = <0x40000>; | |
64 | keyfile = "custMpk.pem"; | |
65 | countersign; | |
66 | }; | |
67 | ti_fs_cert_sr2: ti-fs-cert.bin { | |
68 | filename = "ti-sysfw/ti-fs-firmware-j721e_sr2-hs-cert.bin"; | |
69 | type = "blob-ext"; | |
70 | optional; | |
71 | }; | |
72 | ti-fs-firmware-j721e_sr2-hs-enc.bin { | |
73 | filename = "ti-sysfw/ti-fs-firmware-j721e_sr2-hs-enc.bin"; | |
74 | type = "blob-ext"; | |
75 | optional; | |
76 | }; | |
77 | }; | |
78 | ||
17717868 NMF |
79 | itb { |
80 | filename = "sysfw-j721e_sr1_1-hs-evm.itb"; | |
4509b9ff | 81 | insert-template = <&itb_template>; |
17717868 | 82 | }; |
481ffca4 NMF |
83 | |
84 | itb_sr2 { | |
85 | filename = "sysfw-j721e_sr2-hs-evm.itb"; | |
86 | insert-template = <&itb_template>; | |
87 | fit { | |
88 | images { | |
89 | sysfw.bin { | |
90 | blob-ext { | |
91 | filename = "sysfw.bin_sr2"; | |
92 | }; | |
93 | }; | |
94 | board-cfg.bin { | |
95 | ti-secure { | |
96 | content = <&board_cfg_sr2>; | |
97 | }; | |
98 | board_cfg_sr2: board-cfg { | |
99 | filename = "board-cfg.bin"; | |
100 | }; | |
101 | }; | |
102 | pm-cfg.bin { | |
103 | ti-secure { | |
104 | content = <&pm_cfg_sr2>; | |
105 | }; | |
106 | pm_cfg_sr2: pm-cfg { | |
107 | filename = "pm-cfg.bin"; | |
108 | }; | |
109 | }; | |
110 | rm-cfg.bin { | |
111 | ti-secure { | |
112 | content = <&rm_cfg_sr2>; | |
113 | }; | |
114 | rm_cfg_sr2: rm-cfg { | |
115 | filename = "rm-cfg.bin"; | |
116 | }; | |
117 | }; | |
118 | sec-cfg.bin { | |
119 | ti-secure { | |
120 | content = <&sec_cfg_sr2>; | |
121 | }; | |
122 | sec_cfg_sr2: sec-cfg { | |
123 | filename = "sec-cfg.bin"; | |
124 | }; | |
125 | }; | |
126 | ||
127 | }; | |
128 | }; | |
129 | }; | |
17717868 NMF |
130 | }; |
131 | ||
132 | &binman { | |
133 | tiboot3-j721e_sr2-hs-fs-evm.bin { | |
134 | filename = "tiboot3-j721e_sr2-hs-fs-evm.bin"; | |
135 | ti-secure-rom { | |
136 | content = <&u_boot_spl_fs>; | |
137 | core = "public"; | |
138 | load = <CONFIG_SPL_TEXT_BASE>; | |
139 | keyfile = "custMpk.pem"; | |
140 | }; | |
141 | u_boot_spl_fs: u-boot-spl { | |
142 | no-expanded; | |
143 | }; | |
144 | }; | |
145 | sysfw_fs { | |
146 | filename = "sysfw.bin_fs"; | |
147 | ti-fs-cert-fs.bin { | |
148 | filename = "ti-sysfw/ti-fs-firmware-j721e_sr2-hs-fs-cert.bin"; | |
149 | type = "blob-ext"; | |
150 | optional; | |
151 | }; | |
152 | ti-fs-firmware-j721e-hs-fs-enc.bin { | |
153 | filename = "ti-sysfw/ti-fs-firmware-j721e_sr2-hs-fs-enc.bin"; | |
154 | type = "blob-ext"; | |
155 | optional; | |
156 | }; | |
157 | }; | |
158 | itb_fs { | |
159 | filename = "sysfw-j721e_sr2-hs-fs-evm.itb"; | |
4509b9ff | 160 | insert-template = <&itb_unsigned_template>; |
17717868 NMF |
161 | }; |
162 | }; | |
163 | ||
164 | &binman { | |
165 | tiboot3-j721e-gp-evm.bin { | |
166 | filename = "tiboot3-j721e-gp-evm.bin"; | |
167 | symlink = "tiboot3.bin"; | |
168 | ti-secure-rom { | |
169 | content = <&u_boot_spl_unsigned>; | |
170 | core = "public"; | |
171 | load = <CONFIG_SPL_TEXT_BASE>; | |
172 | sw-rev = <CONFIG_K3_X509_SWRV>; | |
173 | keyfile = "ti-degenerate-key.pem"; | |
174 | }; | |
175 | u_boot_spl_unsigned: u-boot-spl { | |
176 | no-expanded; | |
177 | }; | |
178 | }; | |
179 | sysfw_gp { | |
180 | filename = "sysfw.bin_gp"; | |
181 | ti-secure-rom { | |
182 | content = <&ti_fs>; | |
183 | core = "secure"; | |
184 | load = <0x40000>; | |
185 | sw-rev = <CONFIG_K3_X509_SWRV>; | |
186 | keyfile = "ti-degenerate-key.pem"; | |
187 | }; | |
188 | ti_fs: ti-fs.bin { | |
189 | filename = "ti-sysfw/ti-fs-firmware-j721e-gp.bin"; | |
190 | type = "blob-ext"; | |
191 | optional; | |
192 | }; | |
193 | }; | |
194 | itb_gp { | |
195 | filename = "sysfw-j721e-gp-evm.itb"; | |
196 | symlink = "sysfw.itb"; | |
4509b9ff NMF |
197 | insert-template = <&itb_unsigned_template>; |
198 | ||
17717868 | 199 | fit { |
17717868 NMF |
200 | images { |
201 | sysfw.bin { | |
17717868 NMF |
202 | blob-ext { |
203 | filename = "sysfw.bin_gp"; | |
204 | }; | |
205 | }; | |
17717868 NMF |
206 | }; |
207 | }; | |
208 | }; | |
209 | }; | |
210 | #endif | |
211 | ||
212 | #ifdef CONFIG_TARGET_J721E_A72_EVM | |
213 | ||
17717868 NMF |
214 | #define SPL_J721E_EVM_DTB "spl/dts/k3-j721e-common-proc-board.dtb" |
215 | #define SPL_J721E_SK_DTB "spl/dts/k3-j721e-sk.dtb" | |
216 | ||
17553575 | 217 | #define J721E_EVM_DTB "u-boot.dtb" |
17717868 NMF |
218 | #define J721E_SK_DTB "arch/arm/dts/k3-j721e-sk.dtb" |
219 | ||
220 | &binman { | |
221 | ti-dm { | |
222 | filename = "ti-dm.bin"; | |
223 | blob-ext { | |
224 | filename = "ti-dm/j721e/ipc_echo_testb_mcu1_0_release_strip.xer5f"; | |
225 | }; | |
226 | }; | |
227 | ti-spl { | |
4509b9ff | 228 | insert-template = <&ti_spl_template>; |
17717868 NMF |
229 | |
230 | fit { | |
17717868 | 231 | images { |
c485567e MC |
232 | atf { |
233 | ti-secure { | |
234 | auth-in-place = <0xa02>; | |
235 | ||
236 | firewall-257-0 { | |
237 | /* cpu_0_cpu_0_msmc Background Firewall */ | |
238 | insert-template = <&firewall_bg_1>; | |
239 | id = <257>; | |
240 | region = <0>; | |
241 | }; | |
242 | ||
243 | firewall-257-1 { | |
244 | /* cpu_0_cpu_0_msmc Foreground Firewall */ | |
245 | insert-template = <&firewall_armv8_atf_fg>; | |
246 | id = <257>; | |
247 | region = <1>; | |
248 | }; | |
249 | ||
250 | firewall-284-0 { | |
251 | /* dru_0_msmc Background Firewall */ | |
252 | insert-template = <&firewall_bg_3>; | |
253 | id = <284>; | |
254 | region = <0>; | |
255 | }; | |
256 | ||
257 | firewall-284-1 { | |
258 | /* dru_0_msmc Foreground Firewall */ | |
259 | insert-template = <&firewall_armv8_atf_fg>; | |
260 | id = <284>; | |
261 | region = <1>; | |
262 | }; | |
263 | ||
264 | /* firewall-4760-0 { | |
265 | * nb_slv0__mem0 Background Firewall | |
266 | * Already configured by the secure entity | |
267 | * }; | |
268 | */ | |
269 | ||
270 | firewall-4760-1 { | |
271 | /* nb_slv0__mem0 Foreground Firewall */ | |
272 | insert-template = <&firewall_armv8_atf_fg>; | |
273 | id = <4760>; | |
274 | region = <1>; | |
275 | }; | |
276 | ||
277 | /* firewall-4761-0 { | |
278 | * nb_slv1__mem0 Background Firewall | |
279 | * Already configured by the secure entity | |
280 | * }; | |
281 | */ | |
282 | ||
283 | firewall-4761-1 { | |
284 | /* nb_slv1__mem0 Foreground Firewall */ | |
285 | insert-template = <&firewall_armv8_atf_fg>; | |
286 | id = <4761>; | |
287 | region = <1>; | |
288 | }; | |
289 | ||
290 | }; | |
291 | }; | |
292 | ||
293 | tee { | |
294 | ti-secure { | |
295 | auth-in-place = <0xa02>; | |
296 | ||
297 | /* cpu_0_cpu_0_msmc region 0 and 1 configured | |
298 | * during ATF Firewalling | |
299 | */ | |
300 | ||
301 | firewall-257-2 { | |
302 | /* cpu_0_cpu_0_msmc Foreground Firewall */ | |
303 | insert-template = <&firewall_armv8_optee_fg>; | |
304 | id = <257>; | |
305 | region = <2>; | |
306 | }; | |
307 | ||
308 | /* dru_0_msmc region 0 and 1 configured | |
309 | * during ATF Firewalling | |
310 | */ | |
311 | ||
312 | firewall-284-2 { | |
313 | /* dru_0_msmc Foreground Firewall */ | |
314 | insert-template = <&firewall_armv8_optee_fg>; | |
315 | id = <284>; | |
316 | region = <2>; | |
317 | }; | |
318 | ||
319 | firewall-4762-0 { | |
320 | /* nb_slv2__mem0 Background Firewall */ | |
321 | insert-template = <&firewall_bg_3>; | |
322 | id = <4762>; | |
323 | region = <0>; | |
324 | }; | |
325 | ||
326 | firewall-4762-1 { | |
327 | /* nb_slv2__mem0 Foreground Firewall */ | |
328 | insert-template = <&firewall_armv8_optee_fg>; | |
329 | id = <4762>; | |
330 | region = <1>; | |
331 | }; | |
332 | ||
333 | firewall-4763-0 { | |
334 | /* nb_slv3__mem0 Background Firewall */ | |
335 | insert-template = <&firewall_bg_3>; | |
336 | id = <4763>; | |
337 | region = <0>; | |
338 | }; | |
339 | ||
340 | firewall-4763-1 { | |
341 | /* nb_slv3__mem0 Foreground Firewall */ | |
342 | insert-template = <&firewall_armv8_optee_fg>; | |
343 | id = <4763>; | |
344 | region = <1>; | |
345 | }; | |
346 | }; | |
347 | }; | |
17717868 | 348 | dm { |
17717868 NMF |
349 | ti-secure { |
350 | content = <&dm>; | |
351 | keyfile = "custMpk.pem"; | |
352 | }; | |
3ef977e0 | 353 | dm: ti-dm { |
17717868 NMF |
354 | filename = "ti-dm.bin"; |
355 | }; | |
356 | }; | |
357 | ||
17717868 NMF |
358 | fdt-0 { |
359 | description = "k3-j721e-common-proc-board"; | |
360 | type = "flat_dt"; | |
361 | arch = "arm"; | |
362 | compression = "none"; | |
363 | ti-secure { | |
364 | content = <&spl_j721e_evm_dtb>; | |
365 | keyfile = "custMpk.pem"; | |
366 | }; | |
367 | spl_j721e_evm_dtb: blob-ext { | |
368 | filename = SPL_J721E_EVM_DTB; | |
369 | }; | |
370 | }; | |
371 | ||
372 | fdt-1 { | |
373 | description = "k3-j721e-sk"; | |
374 | type = "flat_dt"; | |
375 | arch = "arm"; | |
376 | compression = "none"; | |
377 | ti-secure { | |
378 | content = <&spl_j721e_sk_dtb>; | |
379 | keyfile = "custMpk.pem"; | |
380 | ||
381 | }; | |
382 | spl_j721e_sk_dtb: blob-ext { | |
383 | filename = SPL_J721E_SK_DTB; | |
384 | }; | |
385 | }; | |
386 | }; | |
387 | ||
388 | configurations { | |
389 | default = "conf-0"; | |
390 | ||
391 | conf-0 { | |
392 | description = "k3-j721e-common-proc-board"; | |
393 | firmware = "atf"; | |
394 | loadables = "tee", "dm", "spl"; | |
395 | fdt = "fdt-0"; | |
396 | }; | |
397 | ||
398 | conf-1 { | |
399 | description = "k3-j721e-sk"; | |
400 | firmware = "atf"; | |
401 | loadables = "tee", "dm", "spl"; | |
402 | fdt = "fdt-1"; | |
403 | }; | |
404 | }; | |
405 | }; | |
406 | }; | |
407 | }; | |
408 | ||
409 | &binman { | |
410 | u-boot { | |
4509b9ff | 411 | insert-template = <&u_boot_template>; |
17717868 | 412 | fit { |
17717868 NMF |
413 | |
414 | images { | |
415 | uboot { | |
4509b9ff | 416 | description = "U-Boot for J721E Board"; |
17717868 NMF |
417 | }; |
418 | ||
419 | fdt-0 { | |
420 | description = "k3-j721e-common-proc-board"; | |
421 | type = "flat_dt"; | |
422 | arch = "arm"; | |
423 | compression = "none"; | |
424 | ti-secure { | |
425 | content = <&j721e_evm_dtb>; | |
426 | keyfile = "custMpk.pem"; | |
427 | ||
428 | }; | |
429 | j721e_evm_dtb: blob-ext { | |
430 | filename = J721E_EVM_DTB; | |
431 | }; | |
432 | hash { | |
433 | algo = "crc32"; | |
434 | }; | |
435 | }; | |
436 | ||
437 | fdt-1 { | |
438 | description = "k3-j721e-sk"; | |
439 | type = "flat_dt"; | |
440 | arch = "arm"; | |
441 | compression = "none"; | |
442 | ti-secure { | |
443 | content = <&j721e_sk_dtb>; | |
444 | keyfile = "custMpk.pem"; | |
445 | ||
446 | }; | |
447 | j721e_sk_dtb: blob-ext { | |
448 | filename = J721E_SK_DTB; | |
449 | }; | |
450 | hash { | |
451 | algo = "crc32"; | |
452 | }; | |
453 | }; | |
454 | }; | |
455 | ||
456 | configurations { | |
457 | default = "conf-0"; | |
458 | ||
459 | conf-0 { | |
460 | description = "k3-j721e-common-proc-board"; | |
461 | firmware = "uboot"; | |
462 | loadables = "uboot"; | |
463 | fdt = "fdt-0"; | |
464 | }; | |
465 | ||
466 | conf-1 { | |
467 | description = "k3-j721e-sk"; | |
468 | firmware = "uboot"; | |
469 | loadables = "uboot"; | |
470 | fdt = "fdt-1"; | |
471 | }; | |
472 | }; | |
473 | }; | |
474 | }; | |
475 | }; | |
476 | ||
477 | &binman { | |
478 | ti-spl_unsigned { | |
4509b9ff | 479 | insert-template = <&ti_spl_unsigned_template>; |
17717868 NMF |
480 | |
481 | fit { | |
17717868 | 482 | images { |
17717868 | 483 | dm { |
3ef977e0 | 484 | ti-dm { |
17717868 NMF |
485 | filename = "ti-dm.bin"; |
486 | }; | |
487 | }; | |
488 | ||
17717868 NMF |
489 | fdt-0 { |
490 | description = "k3-j721e-common-proc-board"; | |
491 | type = "flat_dt"; | |
492 | arch = "arm"; | |
493 | compression = "none"; | |
494 | blob { | |
495 | filename = SPL_J721E_EVM_DTB; | |
496 | }; | |
497 | }; | |
498 | ||
499 | fdt-1 { | |
500 | description = "k3-j721e-sk"; | |
501 | type = "flat_dt"; | |
502 | arch = "arm"; | |
503 | compression = "none"; | |
504 | blob { | |
505 | filename = SPL_J721E_SK_DTB; | |
506 | }; | |
507 | }; | |
508 | }; | |
509 | ||
510 | configurations { | |
511 | default = "conf-0"; | |
512 | ||
513 | conf-0 { | |
514 | description = "k3-j721e-common-proc-board"; | |
515 | firmware = "atf"; | |
516 | loadables = "tee", "dm", "spl"; | |
517 | fdt = "fdt-0"; | |
518 | }; | |
519 | ||
520 | conf-1 { | |
521 | description = "k3-j721e-sk"; | |
522 | firmware = "atf"; | |
523 | loadables = "tee", "dm", "spl"; | |
524 | fdt = "fdt-1"; | |
525 | }; | |
526 | }; | |
527 | }; | |
528 | }; | |
529 | }; | |
530 | ||
531 | &binman { | |
532 | u-boot_unsigned { | |
4509b9ff | 533 | insert-template = <&u_boot_unsigned_template>; |
17717868 NMF |
534 | |
535 | fit { | |
17717868 NMF |
536 | images { |
537 | uboot { | |
4509b9ff | 538 | description = "U-Boot for J721E Board"; |
17717868 NMF |
539 | }; |
540 | ||
541 | fdt-0 { | |
542 | description = "k3-j721e-common-proc-board"; | |
543 | type = "flat_dt"; | |
544 | arch = "arm"; | |
545 | compression = "none"; | |
546 | blob { | |
547 | filename = J721E_EVM_DTB; | |
548 | }; | |
549 | hash { | |
550 | algo = "crc32"; | |
551 | }; | |
552 | }; | |
553 | ||
554 | fdt-1 { | |
555 | description = "k3-j721e-sk"; | |
556 | type = "flat_dt"; | |
557 | arch = "arm"; | |
558 | compression = "none"; | |
559 | blob { | |
560 | filename = J721E_SK_DTB; | |
561 | }; | |
562 | hash { | |
563 | algo = "crc32"; | |
564 | }; | |
565 | }; | |
566 | }; | |
567 | ||
568 | configurations { | |
569 | default = "conf-0"; | |
570 | ||
571 | conf-0 { | |
572 | description = "k3-j721e-common-proc-board"; | |
573 | firmware = "uboot"; | |
574 | loadables = "uboot"; | |
575 | fdt = "fdt-0"; | |
576 | }; | |
577 | ||
578 | conf-1 { | |
579 | description = "k3-j721e-sk"; | |
580 | firmware = "uboot"; | |
581 | loadables = "uboot"; | |
582 | fdt = "fdt-1"; | |
583 | }; | |
584 | }; | |
585 | }; | |
586 | }; | |
587 | }; | |
588 | #endif |