blob: d121d8c0c544256dd721f3e225e2d40ed0bcd96d [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 {
148 ti-dm {
149 filename = "ti-dm.bin";
150 blob-ext {
151 filename = "ti-dm/j721s2/ipc_echo_testb_mcu1_0_release_strip.xer5f";
Neha Malcom Francisdf41fc62024-05-29 13:18:49 +0530152 optional;
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530153 };
154 };
155 ti-spl {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530156 insert-template = <&ti_spl_template>;
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530157
158 fit {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530159 images {
Manorit Chawdhrye83a2652023-12-29 16:16:30 +0530160 atf {
161 ti-secure {
162 auth-in-place = <0xa02>;
163
164 firewall-257-0 {
165 /* cpu_0_cpu_0_msmc Background Firewall */
166 insert-template = <&firewall_bg_1>;
167 id = <257>;
168 region = <0>;
169 };
170
171 firewall-257-1 {
172 /* cpu_0_cpu_0_msmc Foreground Firewall */
173 insert-template = <&firewall_armv8_atf_fg>;
174 id = <257>;
175 region = <1>;
176 };
177
178 firewall-284-0 {
179 /* dru_0_msmc Background Firewall */
180 insert-template = <&firewall_bg_3>;
181 id = <284>;
182 region = <0>;
183 };
184
185 firewall-284-1 {
186 /* dru_0_msmc Foreground Firewall */
187 insert-template = <&firewall_armv8_atf_fg>;
188 id = <284>;
189 region = <1>;
190 };
191
192 /* firewall-5140-0 {
193 * nb_slv0__mem0 Background Firewall
194 * Already configured by the secure entity
195 * };
196 */
197
198 firewall-5140-1 {
199 /* nb_slv0__mem0 Foreground Firewall */
200 insert-template = <&firewall_armv8_atf_fg>;
201 id = <5140>;
202 region = <1>;
203 };
204
205 /* firewall-5140-0 {
206 * nb_slv1__mem0 Background Firewall
207 * Already configured by the secure entity
208 * };
209 */
210
211 firewall-5141-1 {
212 /* nb_slv1__mem0 Foreground Firewall */
213 insert-template = <&firewall_armv8_atf_fg>;
214 id = <5141>;
215 region = <1>;
216 };
217
218 };
219 };
220
221 tee {
222 ti-secure {
223 auth-in-place = <0xa02>;
224
225 firewall-257-2 {
226 /* cpu_0_cpu_0_msmc Foreground Firewall */
227 insert-template = <&firewall_armv8_optee_fg>;
228 id = <257>;
229 region = <2>;
230 };
231
232 firewall-284-2 {
233 /* dru_0_msmc Foreground Firewall */
234 insert-template = <&firewall_armv8_optee_fg>;
235 id = <284>;
236 region = <2>;
237 };
238
239 firewall-5142-0 {
240 /* nb_slv2__mem0 Background Firewall - 0 */
241 insert-template = <&firewall_bg_3>;
242 id = <5142>;
243 region = <0>;
244 };
245
246 firewall-5142-1 {
247 /* nb_slv2__mem0 Foreground Firewall */
248 insert-template = <&firewall_armv8_optee_fg>;
249 id = <5142>;
250 region = <1>;
251 };
252
253 firewall-5143-0 {
254 /* nb_slv3__mem0 Background Firewall - 0 */
255 insert-template = <&firewall_bg_3>;
256 id = <5143>;
257 region = <0>;
258 };
259
260 firewall-5143-1 {
261 /* nb_slv3__mem0 Foreground Firewall */
262 insert-template = <&firewall_armv8_optee_fg>;
263 id = <5143>;
264 region = <1>;
265 };
266
267 firewall-5144-0 {
268 /* nb_slv4__mem0 Background Firewall - 0 */
269 insert-template = <&firewall_bg_3>;
270 id = <5144>;
271 region = <0>;
272 };
273
274 firewall-5144-1 {
275 /* nb_slv4__mem0 Foreground Firewall */
276 insert-template = <&firewall_armv8_optee_fg>;
277 id = <5144>;
278 region = <1>;
279 };
280
281 };
282 };
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530283 dm {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530284 ti-secure {
285 content = <&dm>;
286 keyfile = "custMpk.pem";
287 };
Neha Malcom Francis82378212023-12-05 15:12:19 +0530288 dm: ti-dm {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530289 filename = "ti-dm.bin";
290 };
291 };
292
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530293 fdt-0 {
294 description = "k3-j721s2-common-proc-board";
295 type = "flat_dt";
296 arch = "arm";
297 compression = "none";
298 ti-secure {
299 content = <&spl_j721s2_evm_dtb>;
300 keyfile = "custMpk.pem";
301 };
302 spl_j721s2_evm_dtb: blob-ext {
303 filename = SPL_J721S2_EVM_DTB;
304 };
305
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530306 };
307 };
308
309 configurations {
310 default = "conf-0";
311
312 conf-0 {
313 description = "k3-j721s2-common-proc-board";
314 firmware = "atf";
315 loadables = "tee", "dm", "spl";
316 fdt = "fdt-0";
317 };
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530318 };
319 };
320 };
321};
322
323&binman {
324 u-boot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530325 insert-template = <&u_boot_template>;
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530326
327 fit {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530328 images {
329 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530330 description = "U-Boot for J721S2 Board";
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530331 };
332
333 fdt-0 {
334 description = "k3-j721s2-common-proc-board";
335 type = "flat_dt";
336 arch = "arm";
337 compression = "none";
338 ti-secure {
339 content = <&j721s2_evm_dtb>;
340 keyfile = "custMpk.pem";
341 };
342 j721s2_evm_dtb: blob-ext {
343 filename = J721S2_EVM_DTB;
344 };
345
346 hash {
347 algo = "crc32";
348 };
349 };
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530350 };
351
352 configurations {
353 default = "conf-0";
354
355 conf-0 {
356 description = "k3-j721s2-common-proc-board";
357 firmware = "uboot";
358 loadables = "uboot";
359 fdt = "fdt-0";
360 };
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530361 };
362 };
363 };
364};
365
366&binman {
367 ti-spl_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530368 insert-template = <&ti_spl_unsigned_template>;
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530369
370 fit {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530371 images {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530372 dm {
Neha Malcom Francis82378212023-12-05 15:12:19 +0530373 ti-dm {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530374 filename = "ti-dm.bin";
375 };
376 };
377
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530378 fdt-0 {
379 description = "k3-j721s2-common-proc-board";
380 type = "flat_dt";
381 arch = "arm";
382 compression = "none";
Manorit Chawdhry6a91e282024-05-10 10:20:24 +0530383 spl_j721s2_evm_dtb_unsigned: blob {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530384 filename = SPL_J721S2_EVM_DTB;
385 };
386 };
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530387 };
388
389 configurations {
390 default = "conf-0";
391
392 conf-0 {
393 description = "k3-j721s2-common-proc-board";
394 firmware = "atf";
395 loadables = "tee", "dm", "spl";
396 fdt = "fdt-0";
397 };
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530398 };
399 };
400 };
401};
402
403&binman {
404 u-boot_unsigned {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530405 insert-template = <&u_boot_unsigned_template>;
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530406
407 fit {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530408 images {
409 uboot {
Neha Malcom Francis806b6f82023-11-15 15:40:24 +0530410 description = "U-Boot for J721S2 Board";
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530411 };
412
413 fdt-0 {
414 description = "k3-j721s2-common-proc-board";
415 type = "flat_dt";
416 arch = "arm";
417 compression = "none";
Manorit Chawdhry6a91e282024-05-10 10:20:24 +0530418 j721s2_evm_dtb_unsigned: blob {
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530419 filename = J721S2_EVM_DTB;
420 };
421 hash {
422 algo = "crc32";
423 };
424 };
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530425 };
426
427 configurations {
428 default = "conf-0";
429
430 conf-0 {
431 description = "k3-j721s2-common-proc-board";
432 firmware = "uboot";
433 loadables = "uboot";
434 fdt = "fdt-0";
435 };
Neha Malcom Francis9409fb62023-07-22 00:14:36 +0530436 };
437 };
438 };
439};
440#endif