blob: c46fda66b0b25767f501360215df0ba84231a3fe [file] [log] [blame]
Neha Malcom Francis106589a2023-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
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530144#define SPL_J721S2_EVM_DTB "spl/dts/k3-j721s2-common-proc-board.dtb"
Manorit Chawdhry17553572023-07-14 11:22:38 +0530145#define J721S2_EVM_DTB "u-boot.dtb"
Neha Malcom Francis106589a2023-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";
152 };
153 };
154 ti-spl {
Neha Malcom Francis4509b9f2023-11-15 15:40:24 +0530155 insert-template = <&ti_spl_template>;
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530156
157 fit {
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530158 images {
Manorit Chawdhryb8dea0c2023-12-29 16:16:30 +0530159 atf {
160 ti-secure {
161 auth-in-place = <0xa02>;
162
163 firewall-257-0 {
164 /* cpu_0_cpu_0_msmc Background Firewall */
165 insert-template = <&firewall_bg_1>;
166 id = <257>;
167 region = <0>;
168 };
169
170 firewall-257-1 {
171 /* cpu_0_cpu_0_msmc Foreground Firewall */
172 insert-template = <&firewall_armv8_atf_fg>;
173 id = <257>;
174 region = <1>;
175 };
176
177 firewall-284-0 {
178 /* dru_0_msmc Background Firewall */
179 insert-template = <&firewall_bg_3>;
180 id = <284>;
181 region = <0>;
182 };
183
184 firewall-284-1 {
185 /* dru_0_msmc Foreground Firewall */
186 insert-template = <&firewall_armv8_atf_fg>;
187 id = <284>;
188 region = <1>;
189 };
190
191 /* firewall-5140-0 {
192 * nb_slv0__mem0 Background Firewall
193 * Already configured by the secure entity
194 * };
195 */
196
197 firewall-5140-1 {
198 /* nb_slv0__mem0 Foreground Firewall */
199 insert-template = <&firewall_armv8_atf_fg>;
200 id = <5140>;
201 region = <1>;
202 };
203
204 /* firewall-5140-0 {
205 * nb_slv1__mem0 Background Firewall
206 * Already configured by the secure entity
207 * };
208 */
209
210 firewall-5141-1 {
211 /* nb_slv1__mem0 Foreground Firewall */
212 insert-template = <&firewall_armv8_atf_fg>;
213 id = <5141>;
214 region = <1>;
215 };
216
217 };
218 };
219
220 tee {
221 ti-secure {
222 auth-in-place = <0xa02>;
223
224 firewall-257-2 {
225 /* cpu_0_cpu_0_msmc Foreground Firewall */
226 insert-template = <&firewall_armv8_optee_fg>;
227 id = <257>;
228 region = <2>;
229 };
230
231 firewall-284-2 {
232 /* dru_0_msmc Foreground Firewall */
233 insert-template = <&firewall_armv8_optee_fg>;
234 id = <284>;
235 region = <2>;
236 };
237
238 firewall-5142-0 {
239 /* nb_slv2__mem0 Background Firewall - 0 */
240 insert-template = <&firewall_bg_3>;
241 id = <5142>;
242 region = <0>;
243 };
244
245 firewall-5142-1 {
246 /* nb_slv2__mem0 Foreground Firewall */
247 insert-template = <&firewall_armv8_optee_fg>;
248 id = <5142>;
249 region = <1>;
250 };
251
252 firewall-5143-0 {
253 /* nb_slv3__mem0 Background Firewall - 0 */
254 insert-template = <&firewall_bg_3>;
255 id = <5143>;
256 region = <0>;
257 };
258
259 firewall-5143-1 {
260 /* nb_slv3__mem0 Foreground Firewall */
261 insert-template = <&firewall_armv8_optee_fg>;
262 id = <5143>;
263 region = <1>;
264 };
265
266 firewall-5144-0 {
267 /* nb_slv4__mem0 Background Firewall - 0 */
268 insert-template = <&firewall_bg_3>;
269 id = <5144>;
270 region = <0>;
271 };
272
273 firewall-5144-1 {
274 /* nb_slv4__mem0 Foreground Firewall */
275 insert-template = <&firewall_armv8_optee_fg>;
276 id = <5144>;
277 region = <1>;
278 };
279
280 };
281 };
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530282 dm {
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530283 ti-secure {
284 content = <&dm>;
285 keyfile = "custMpk.pem";
286 };
Neha Malcom Francis3ef977e2023-12-05 15:12:19 +0530287 dm: ti-dm {
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530288 filename = "ti-dm.bin";
289 };
290 };
291
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530292 fdt-0 {
293 description = "k3-j721s2-common-proc-board";
294 type = "flat_dt";
295 arch = "arm";
296 compression = "none";
297 ti-secure {
298 content = <&spl_j721s2_evm_dtb>;
299 keyfile = "custMpk.pem";
300 };
301 spl_j721s2_evm_dtb: blob-ext {
302 filename = SPL_J721S2_EVM_DTB;
303 };
304
305 };
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530306 };
307
308 configurations {
309 default = "conf-0";
310
311 conf-0 {
312 description = "k3-j721s2-common-proc-board";
313 firmware = "atf";
314 loadables = "tee", "dm", "spl";
315 fdt = "fdt-0";
316 };
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530317 };
318 };
319 };
320};
321
322&binman {
323 u-boot {
Neha Malcom Francis4509b9f2023-11-15 15:40:24 +0530324 insert-template = <&u_boot_template>;
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530325
326 fit {
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530327 images {
328 uboot {
Neha Malcom Francis4509b9f2023-11-15 15:40:24 +0530329 description = "U-Boot for J721S2 Board";
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530330 };
331
332 fdt-0 {
333 description = "k3-j721s2-common-proc-board";
334 type = "flat_dt";
335 arch = "arm";
336 compression = "none";
337 ti-secure {
338 content = <&j721s2_evm_dtb>;
339 keyfile = "custMpk.pem";
340 };
341 j721s2_evm_dtb: blob-ext {
342 filename = J721S2_EVM_DTB;
343 };
344
345 hash {
346 algo = "crc32";
347 };
348 };
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530349 };
350
351 configurations {
352 default = "conf-0";
353
354 conf-0 {
355 description = "k3-j721s2-common-proc-board";
356 firmware = "uboot";
357 loadables = "uboot";
358 fdt = "fdt-0";
359 };
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530360 };
361 };
362 };
363};
364
365&binman {
366 ti-spl_unsigned {
Neha Malcom Francis4509b9f2023-11-15 15:40:24 +0530367 insert-template = <&ti_spl_unsigned_template>;
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530368
369 fit {
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530370 images {
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530371 dm {
Neha Malcom Francis3ef977e2023-12-05 15:12:19 +0530372 ti-dm {
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530373 filename = "ti-dm.bin";
374 };
375 };
376
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530377 fdt-0 {
378 description = "k3-j721s2-common-proc-board";
379 type = "flat_dt";
380 arch = "arm";
381 compression = "none";
Manorit Chawdhrya96be9b2024-05-10 10:20:24 +0530382 spl_j721s2_evm_dtb_unsigned: blob {
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530383 filename = SPL_J721S2_EVM_DTB;
384 };
385 };
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530386 };
387
388 configurations {
389 default = "conf-0";
390
391 conf-0 {
392 description = "k3-j721s2-common-proc-board";
393 firmware = "atf";
394 loadables = "tee", "dm", "spl";
395 fdt = "fdt-0";
396 };
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530397 };
398 };
399 };
400};
401
402&binman {
403 u-boot_unsigned {
Neha Malcom Francis4509b9f2023-11-15 15:40:24 +0530404 insert-template = <&u_boot_unsigned_template>;
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530405
406 fit {
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530407 images {
408 uboot {
Neha Malcom Francis4509b9f2023-11-15 15:40:24 +0530409 description = "U-Boot for J721S2 Board";
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530410 };
411
412 fdt-0 {
413 description = "k3-j721s2-common-proc-board";
414 type = "flat_dt";
415 arch = "arm";
416 compression = "none";
Manorit Chawdhrya96be9b2024-05-10 10:20:24 +0530417 j721s2_evm_dtb_unsigned: blob {
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530418 filename = J721S2_EVM_DTB;
419 };
420 hash {
421 algo = "crc32";
422 };
423 };
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530424 };
425
426 configurations {
427 default = "conf-0";
428
429 conf-0 {
430 description = "k3-j721s2-common-proc-board";
431 firmware = "uboot";
432 loadables = "uboot";
433 fdt = "fdt-0";
434 };
Neha Malcom Francis106589a2023-07-22 00:14:36 +0530435 };
436 };
437 };
438};
439#endif