blob: 73af184d27ed4c8c4db6bbddd494f1550c465089 [file] [log] [blame]
Neha Malcom Francis9409fb62023-07-22 00:14:36 +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_J721S2_R5_EVM
9
10&binman {
11 tiboot3-j721s2-hs-evm.bin {
12 filename = "tiboot3-j721s2-hs-evm.bin";
13 ti-secure-rom {
14 content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>,
15 <&combined_dm_cfg>, <&sysfw_inner_cert>;
16 combined;
17 dm-data;
18 sysfw-inner-cert;
19 keyfile = "custMpk.pem";
20 sw-rev = <1>;
21 content-sbl = <&u_boot_spl>;
22 content-sysfw = <&ti_fs_enc>;
23 content-sysfw-data = <&combined_tifs_cfg>;
24 content-sysfw-inner-cert = <&sysfw_inner_cert>;
25 content-dm-data = <&combined_dm_cfg>;
26 load = <0x41c00000>;
27 load-sysfw = <0x40000>;
28 load-sysfw-data = <0x67000>;
29 load-dm-data = <0x41c80000>;
30 };
31 u_boot_spl: u-boot-spl {
32 no-expanded;
33 };
34 ti_fs_enc: ti-fs-enc.bin {
35 filename = "ti-sysfw/ti-fs-firmware-j721s2-hs-enc.bin";
36 type = "blob-ext";
37 optional;
38 };
39 combined_tifs_cfg: combined-tifs-cfg.bin {
40 filename = "combined-tifs-cfg.bin";
41 type = "blob-ext";
42 };
43 sysfw_inner_cert: sysfw-inner-cert {
44 filename = "ti-sysfw/ti-fs-firmware-j721s2-hs-cert.bin";
45 type = "blob-ext";
46 optional;
47 };
48 combined_dm_cfg: combined-dm-cfg.bin {
49 filename = "combined-dm-cfg.bin";
50 type = "blob-ext";
51 };
52 };
53};
54
55&binman {
56 tiboot3-j721s2-hs-fs-evm.bin {
57 filename = "tiboot3-j721s2-hs-fs-evm.bin";
58 ti-secure-rom {
59 content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>,
60 <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>;
61 combined;
62 dm-data;
63 sysfw-inner-cert;
64 keyfile = "custMpk.pem";
65 sw-rev = <1>;
66 content-sbl = <&u_boot_spl_fs>;
67 content-sysfw = <&ti_fs_enc_fs>;
68 content-sysfw-data = <&combined_tifs_cfg_fs>;
69 content-sysfw-inner-cert = <&sysfw_inner_cert_fs>;
70 content-dm-data = <&combined_dm_cfg_fs>;
71 load = <0x41c00000>;
72 load-sysfw = <0x40000>;
73 load-sysfw-data = <0x67000>;
74 load-dm-data = <0x41c80000>;
75 };
76 u_boot_spl_fs: u-boot-spl {
77 no-expanded;
78 };
79 ti_fs_enc_fs: ti-fs-enc.bin {
80 filename = "ti-sysfw/ti-fs-firmware-j721s2-hs-fs-enc.bin";
81 type = "blob-ext";
82 optional;
83 };
84 combined_tifs_cfg_fs: combined-tifs-cfg.bin {
85 filename = "combined-tifs-cfg.bin";
86 type = "blob-ext";
87 };
88 sysfw_inner_cert_fs: sysfw-inner-cert {
89 filename = "ti-sysfw/ti-fs-firmware-j721s2-hs-fs-cert.bin";
90 type = "blob-ext";
91 optional;
92 };
93 combined_dm_cfg_fs: combined-dm-cfg.bin {
94 filename = "combined-dm-cfg.bin";
95 type = "blob-ext";
96 };
97 };
98};
99
100&binman {
101 tiboot3-j721s2-gp-evm.bin {
102 filename = "tiboot3-j721s2-gp-evm.bin";
103 symlink = "tiboot3.bin";
104 ti-secure-rom {
105 content = <&u_boot_spl_unsigned>, <&ti_fs_gp>,
106 <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>;
107 combined;
108 dm-data;
109 content-sbl = <&u_boot_spl_unsigned>;
110 load = <0x41c00000>;
111 content-sysfw = <&ti_fs_gp>;
112 load-sysfw = <0x40000>;
113 content-sysfw-data = <&combined_tifs_cfg_gp>;
114 load-sysfw-data = <0x67000>;
115 content-dm-data = <&combined_dm_cfg_gp>;
116 load-dm-data = <0x41c80000>;
117 sw-rev = <1>;
118 keyfile = "ti-degenerate-key.pem";
119 };
120 u_boot_spl_unsigned: u-boot-spl {
121 no-expanded;
122 };
123 ti_fs_gp: ti-fs-gp.bin {
124 filename = "ti-sysfw/ti-fs-firmware-j721s2-gp.bin";
125 type = "blob-ext";
126 optional;
127 };
128 combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin {
129 filename = "combined-tifs-cfg.bin";
130 type = "blob-ext";
131 };
132 combined_dm_cfg_gp: combined-dm-cfg-gp.bin {
133 filename = "combined-dm-cfg.bin";
134 type = "blob-ext";
135 };
136
137 };
138};
139
140#endif
141
142#ifdef CONFIG_TARGET_J721S2_A72_EVM
143
Manorit Chawdhry000bb0b2024-05-10 10:20:25 +0530144#define SPL_J721S2_EVM_DTB "spl/dts/ti/k3-j721s2-common-proc-board.dtb"
Manorit Chawdhry64ebddb2023-07-14 11:22:38 +0530145#define J721S2_EVM_DTB "u-boot.dtb"
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530146
147&binman {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530148 ti-spl {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530149 insert-template = <&ti_spl_template>;
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530150
151 fit {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530152 images {
Manorit Chawdhrye83a2652023-12-29 16:16:30 +0530153 atf {
154 ti-secure {
155 auth-in-place = <0xa02>;
156
157 firewall-257-0 {
158 /* cpu_0_cpu_0_msmc Background Firewall */
159 insert-template = <&firewall_bg_1>;
160 id = <257>;
161 region = <0>;
162 };
163
164 firewall-257-1 {
165 /* cpu_0_cpu_0_msmc Foreground Firewall */
166 insert-template = <&firewall_armv8_atf_fg>;
167 id = <257>;
168 region = <1>;
169 };
170
171 firewall-284-0 {
172 /* dru_0_msmc Background Firewall */
173 insert-template = <&firewall_bg_3>;
174 id = <284>;
175 region = <0>;
176 };
177
178 firewall-284-1 {
179 /* dru_0_msmc Foreground Firewall */
180 insert-template = <&firewall_armv8_atf_fg>;
181 id = <284>;
182 region = <1>;
183 };
184
185 /* firewall-5140-0 {
186 * nb_slv0__mem0 Background Firewall
187 * Already configured by the secure entity
188 * };
189 */
190
191 firewall-5140-1 {
192 /* nb_slv0__mem0 Foreground Firewall */
193 insert-template = <&firewall_armv8_atf_fg>;
194 id = <5140>;
195 region = <1>;
196 };
197
198 /* firewall-5140-0 {
199 * nb_slv1__mem0 Background Firewall
200 * Already configured by the secure entity
201 * };
202 */
203
204 firewall-5141-1 {
205 /* nb_slv1__mem0 Foreground Firewall */
206 insert-template = <&firewall_armv8_atf_fg>;
207 id = <5141>;
208 region = <1>;
209 };
210
211 };
212 };
213
214 tee {
215 ti-secure {
216 auth-in-place = <0xa02>;
217
218 firewall-257-2 {
219 /* cpu_0_cpu_0_msmc Foreground Firewall */
220 insert-template = <&firewall_armv8_optee_fg>;
221 id = <257>;
222 region = <2>;
223 };
224
225 firewall-284-2 {
226 /* dru_0_msmc Foreground Firewall */
227 insert-template = <&firewall_armv8_optee_fg>;
228 id = <284>;
229 region = <2>;
230 };
231
232 firewall-5142-0 {
233 /* nb_slv2__mem0 Background Firewall - 0 */
234 insert-template = <&firewall_bg_3>;
235 id = <5142>;
236 region = <0>;
237 };
238
239 firewall-5142-1 {
240 /* nb_slv2__mem0 Foreground Firewall */
241 insert-template = <&firewall_armv8_optee_fg>;
242 id = <5142>;
243 region = <1>;
244 };
245
246 firewall-5143-0 {
247 /* nb_slv3__mem0 Background Firewall - 0 */
248 insert-template = <&firewall_bg_3>;
249 id = <5143>;
250 region = <0>;
251 };
252
253 firewall-5143-1 {
254 /* nb_slv3__mem0 Foreground Firewall */
255 insert-template = <&firewall_armv8_optee_fg>;
256 id = <5143>;
257 region = <1>;
258 };
259
260 firewall-5144-0 {
261 /* nb_slv4__mem0 Background Firewall - 0 */
262 insert-template = <&firewall_bg_3>;
263 id = <5144>;
264 region = <0>;
265 };
266
267 firewall-5144-1 {
268 /* nb_slv4__mem0 Foreground Firewall */
269 insert-template = <&firewall_armv8_optee_fg>;
270 id = <5144>;
271 region = <1>;
272 };
273
274 };
275 };
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530276 dm {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530277 ti-secure {
278 content = <&dm>;
279 keyfile = "custMpk.pem";
280 };
Neha Malcom Francis82378212023-12-05 15:12:19 +0530281 dm: ti-dm {
Andrew Davis7ed4a852025-04-25 17:54:03 -0500282 filename = "ti-dm/j721s2/ipc_echo_testb_mcu1_0_release_strip.xer5f";
283 optional;
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530284 };
285 };
286
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530287 fdt-0 {
288 description = "k3-j721s2-common-proc-board";
289 type = "flat_dt";
290 arch = "arm";
291 compression = "none";
292 ti-secure {
293 content = <&spl_j721s2_evm_dtb>;
294 keyfile = "custMpk.pem";
295 };
296 spl_j721s2_evm_dtb: blob-ext {
297 filename = SPL_J721S2_EVM_DTB;
298 };
299
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530300 };
301 };
302
303 configurations {
304 default = "conf-0";
305
306 conf-0 {
307 description = "k3-j721s2-common-proc-board";
308 firmware = "atf";
309 loadables = "tee", "dm", "spl";
310 fdt = "fdt-0";
311 };
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530312 };
313 };
314 };
315};
316
317&binman {
318 u-boot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530319 insert-template = <&u_boot_template>;
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530320
321 fit {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530322 images {
323 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530324 description = "U-Boot for J721S2 Board";
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530325 };
326
327 fdt-0 {
328 description = "k3-j721s2-common-proc-board";
329 type = "flat_dt";
330 arch = "arm";
331 compression = "none";
332 ti-secure {
333 content = <&j721s2_evm_dtb>;
334 keyfile = "custMpk.pem";
335 };
336 j721s2_evm_dtb: blob-ext {
337 filename = J721S2_EVM_DTB;
338 };
339
340 hash {
341 algo = "crc32";
342 };
343 };
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530344 };
345
346 configurations {
347 default = "conf-0";
348
349 conf-0 {
350 description = "k3-j721s2-common-proc-board";
351 firmware = "uboot";
352 loadables = "uboot";
353 fdt = "fdt-0";
354 };
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530355 };
356 };
357 };
358};
359
360&binman {
361 ti-spl_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530362 insert-template = <&ti_spl_unsigned_template>;
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530363
364 fit {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530365 images {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530366 dm {
Neha Malcom Francis82378212023-12-05 15:12:19 +0530367 ti-dm {
Andrew Davis7ed4a852025-04-25 17:54:03 -0500368 filename = "ti-dm/j721s2/ipc_echo_testb_mcu1_0_release_strip.xer5f";
369 optional;
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530370 };
371 };
372
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530373 fdt-0 {
374 description = "k3-j721s2-common-proc-board";
375 type = "flat_dt";
376 arch = "arm";
377 compression = "none";
Manorit Chawdhry6a91e282024-05-10 10:20:24 +0530378 spl_j721s2_evm_dtb_unsigned: blob {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530379 filename = SPL_J721S2_EVM_DTB;
380 };
381 };
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530382 };
383
384 configurations {
385 default = "conf-0";
386
387 conf-0 {
388 description = "k3-j721s2-common-proc-board";
389 firmware = "atf";
390 loadables = "tee", "dm", "spl";
391 fdt = "fdt-0";
392 };
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530393 };
394 };
395 };
396};
397
398&binman {
399 u-boot_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530400 insert-template = <&u_boot_unsigned_template>;
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530401
402 fit {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530403 images {
404 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530405 description = "U-Boot for J721S2 Board";
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530406 };
407
408 fdt-0 {
409 description = "k3-j721s2-common-proc-board";
410 type = "flat_dt";
411 arch = "arm";
412 compression = "none";
Manorit Chawdhry6a91e282024-05-10 10:20:24 +0530413 j721s2_evm_dtb_unsigned: blob {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530414 filename = J721S2_EVM_DTB;
415 };
416 hash {
417 algo = "crc32";
418 };
419 };
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530420 };
421
422 configurations {
423 default = "conf-0";
424
425 conf-0 {
426 description = "k3-j721s2-common-proc-board";
427 firmware = "uboot";
428 loadables = "uboot";
429 fdt = "fdt-0";
430 };
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530431 };
432 };
433 };
434};
435#endif