blob: 85bdd1f5b6cf8f2856fe3af178980a2f19d51c92 [file] [log] [blame]
Apurva Nandan3818b142024-02-24 01:51:49 +05301// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/
4 */
5
6#include "k3-binman.dtsi"
7
8#ifdef CONFIG_TARGET_J784S4_R5_EVM
9
10&rcfg_yaml_tifs {
11 config = "tifs-rm-cfg.yaml";
12};
13
14&binman {
15 tiboot3-j784s4-hs-evm.bin {
16 filename = "tiboot3-j784s4-hs-evm.bin";
17
18 ti-secure-rom {
19 content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>,
20 <&combined_dm_cfg>, <&sysfw_inner_cert>;
21 combined;
22 dm-data;
23 sysfw-inner-cert;
24 keyfile = "custMpk.pem";
25 sw-rev = <1>;
26 content-sbl = <&u_boot_spl>;
27 content-sysfw = <&ti_fs_enc>;
28 content-sysfw-data = <&combined_tifs_cfg>;
29 content-sysfw-inner-cert = <&sysfw_inner_cert>;
30 content-dm-data = <&combined_dm_cfg>;
31 load = <0x41c00000>;
32 load-sysfw = <0x40000>;
33 load-sysfw-data = <0x66800>;
34 load-dm-data = <0x41c80000>;
35 };
36
37 u_boot_spl: u-boot-spl {
38 no-expanded;
39 };
40
41 ti_fs_enc: ti-fs-enc.bin {
42 filename = "ti-sysfw/ti-fs-firmware-j784s4-hs-enc.bin";
43 type = "blob-ext";
44 optional;
45 };
46
47 combined_tifs_cfg: combined-tifs-cfg.bin {
48 filename = "combined-tifs-cfg.bin";
49 type = "blob-ext";
50 };
51
52 sysfw_inner_cert: sysfw-inner-cert {
53 filename = "ti-sysfw/ti-fs-firmware-j784s4-hs-cert.bin";
54 type = "blob-ext";
55 optional;
56 };
57
58 combined_dm_cfg: combined-dm-cfg.bin {
59 filename = "combined-dm-cfg.bin";
60 type = "blob-ext";
61 };
62 };
63};
64
65&binman {
66 tiboot3-j784s4-hs-fs-evm.bin {
67 filename = "tiboot3-j784s4-hs-fs-evm.bin";
68
69 ti-secure-rom {
70 content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>,
71 <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>;
72 combined;
73 dm-data;
74 sysfw-inner-cert;
75 keyfile = "custMpk.pem";
76 sw-rev = <1>;
77 content-sbl = <&u_boot_spl_fs>;
78 content-sysfw = <&ti_fs_enc_fs>;
79 content-sysfw-data = <&combined_tifs_cfg_fs>;
80 content-sysfw-inner-cert = <&sysfw_inner_cert_fs>;
81 content-dm-data = <&combined_dm_cfg_fs>;
82 load = <0x41c00000>;
83 load-sysfw = <0x40000>;
84 load-sysfw-data = <0x66800>;
85 load-dm-data = <0x41c80000>;
86 };
87
88 u_boot_spl_fs: u-boot-spl {
89 no-expanded;
90 };
91
92 ti_fs_enc_fs: ti-fs-enc.bin {
93 filename = "ti-sysfw/ti-fs-firmware-j784s4-hs-fs-enc.bin";
94 type = "blob-ext";
95 optional;
96 };
97
98 combined_tifs_cfg_fs: combined-tifs-cfg.bin {
99 filename = "combined-tifs-cfg.bin";
100 type = "blob-ext";
101 };
102
103 sysfw_inner_cert_fs: sysfw-inner-cert {
104 filename = "ti-sysfw/ti-fs-firmware-j784s4-hs-fs-cert.bin";
105 type = "blob-ext";
106 optional;
107 };
108
109 combined_dm_cfg_fs: combined-dm-cfg.bin {
110 filename = "combined-dm-cfg.bin";
111 type = "blob-ext";
112 };
113 };
114};
115
116&binman {
117 tiboot3-j784s4-gp-evm.bin {
118 filename = "tiboot3-j784s4-gp-evm.bin";
119 symlink = "tiboot3.bin";
120
121 ti-secure-rom {
122 content = <&u_boot_spl_unsigned>, <&ti_fs_gp>,
123 <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>;
124 combined;
125 dm-data;
126 content-sbl = <&u_boot_spl_unsigned>;
127 load = <0x41c00000>;
128 content-sysfw = <&ti_fs_gp>;
129 load-sysfw = <0x40000>;
130 content-sysfw-data = <&combined_tifs_cfg_gp>;
131 load-sysfw-data = < 0x66800>;
132 content-dm-data = <&combined_dm_cfg_gp>;
133 load-dm-data = <0x41c80000>;
134 sw-rev = <1>;
135 keyfile = "ti-degenerate-key.pem";
136 };
137
138 u_boot_spl_unsigned: u-boot-spl {
139 no-expanded;
140 };
141
142 ti_fs_gp: ti-fs-gp.bin {
143 filename = "ti-sysfw/ti-fs-firmware-j784s4-gp.bin";
144 type = "blob-ext";
145 optional;
146 };
147
148 combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin {
149 filename = "combined-tifs-cfg.bin";
150 type = "blob-ext";
151 };
152
153 combined_dm_cfg_gp: combined-dm-cfg-gp.bin {
154 filename = "combined-dm-cfg.bin";
155 type = "blob-ext";
156 };
157
158 };
159};
Jonathan Humphreys0e34cad2024-05-31 17:51:10 -0500160
161#include "k3-binman-capsule-r5.dtsi"
162
163// Capsule update GUIDs in string form. See j784s4_evm.h
164#define AM69_SK_TIBOOT3_IMAGE_GUID_STR "adf49ec5-61bb-4dbe-8b8d-39df4d7ebf46"
165
166&capsule_tiboot3 {
167 efi-capsule {
168 image-guid = AM69_SK_TIBOOT3_IMAGE_GUID_STR;
169
170 blob {
171 filename = "tiboot3-j784s4-hs-fs-evm.bin";
172 };
173 };
174};
175
Apurva Nandan3818b142024-02-24 01:51:49 +0530176#endif
177
178#ifdef CONFIG_TARGET_J784S4_A72_EVM
179
180#define SPL_J784S4_EVM_DTB "spl/dts/ti/k3-j784s4-evm.dtb"
181#define J784S4_EVM_DTB "u-boot.dtb"
182
183&binman {
184 ti-dm {
185 filename = "ti-dm.bin";
186
187 blob-ext {
188 filename = "ti-dm/j784s4/ipc_echo_testb_mcu1_0_release_strip.xer5f";
Neha Malcom Francisdf41fc62024-05-29 13:18:49 +0530189 optional;
Apurva Nandan3818b142024-02-24 01:51:49 +0530190 };
191 };
192
193 ti-spl {
194 insert-template = <&ti_spl_template>;
195
196 fit {
197 images {
198 dm {
199 ti-secure {
200 content = <&dm>;
201 keyfile = "custMpk.pem";
202 };
203
204 dm: blob-ext {
205 filename = "ti-dm.bin";
206 };
207 };
208
209 fdt-0 {
210 description = "k3-j784s4-evm";
211 type = "flat_dt";
212 arch = "arm";
213 compression = "none";
214
215 ti-secure {
216 content = <&spl_j784s4_evm_dtb>;
217 keyfile = "custMpk.pem";
218 };
219
220 spl_j784s4_evm_dtb: blob-ext {
221 filename = SPL_J784S4_EVM_DTB;
222 };
223 };
224 };
225
226 configurations {
227 default = "conf-0";
228
229 conf-0 {
230 description = "k3-j784s4-evm";
231 firmware = "atf";
232 loadables = "tee", "dm", "spl";
233 fdt = "fdt-0";
234 };
235 };
236 };
237 };
238};
239
240&binman {
241 u-boot {
242 insert-template = <&u_boot_template>;
243
244 fit {
245 images {
246 uboot {
247 description = "U-Boot for J784S4 board";
248 };
249
250 fdt-0 {
251 description = "k3-j784s4-evm";
252 type = "flat_dt";
253 arch = "arm";
254 compression = "none";
255
256 ti-secure {
257 content = <&j784s4_evm_dtb>;
258 keyfile = "custMpk.pem";
259 };
260
261 j784s4_evm_dtb: blob-ext {
262 filename = J784S4_EVM_DTB;
263 };
264
265 hash {
266 algo = "crc32";
267 };
268 };
269 };
270
271 configurations {
272 default = "conf-0";
273
274 conf-0 {
275 description = "k3-j784s4-evm";
276 firmware = "uboot";
277 loadables = "uboot";
278 fdt = "fdt-0";
279 };
280 };
281 };
282 };
283};
284
285&binman {
286 ti-spl_unsigned {
287 insert-template = <&ti_spl_unsigned_template>;
288
289 fit {
290 images {
291 dm {
292 blob-ext {
293 filename = "ti-dm.bin";
294 };
295 };
296
297 fdt-0 {
298 description = "k3-j784s4-evm";
299 type = "flat_dt";
300 arch = "arm";
301 compression = "none";
302
303 spl_j784s4_evm_dtb_unsigned: blob {
304 filename = SPL_J784S4_EVM_DTB;
305 };
306 };
307 };
308
309 configurations {
310 default = "conf-0";
311
312 conf-0 {
313 description = "k3-j784s4-evm";
314 firmware = "atf";
315 loadables = "tee", "dm", "spl";
316 fdt = "fdt-0";
317 };
318 };
319 };
320 };
321};
322
323&binman {
324 u-boot_unsigned {
325 insert-template = <&u_boot_unsigned_template>;
326
327 fit {
328 images {
329 uboot {
330 description = "U-Boot for J784S4 board";
331 };
332
333 fdt-0 {
334 description = "k3-j784s4-evm";
335 type = "flat_dt";
336 arch = "arm";
337 compression = "none";
338
339 j784s4_evm_dtb_unsigned: blob {
340 filename = J784S4_EVM_DTB;
341 };
342
343 hash {
344 algo = "crc32";
345 };
346 };
347 };
348
349 configurations {
350 default = "conf-0";
351
352 conf-0 {
353 description = "k3-j784s4-evm";
354 firmware = "uboot";
355 loadables = "uboot";
356 fdt = "fdt-0";
357 };
358 };
359 };
360 };
361};
Jonathan Humphreys0e34cad2024-05-31 17:51:10 -0500362
363#include "k3-binman-capsule.dtsi"
364
365// Capsule update GUIDs in string form. See j784s4_evm.h
366#define AM69_SK_SPL_IMAGE_GUID_STR "787f0059-63a1-461c-a18e-9d838345fe8e"
367#define AM69_SK_UBOOT_IMAGE_GUID_STR "9300505d-6ec5-4ff8-99e4-5459a04be617"
368
369&capsule_tispl {
370 efi-capsule {
371 image-guid = AM69_SK_SPL_IMAGE_GUID_STR;
372 };
373};
374
375&capsule_uboot {
376 efi-capsule {
377 image-guid = AM69_SK_UBOOT_IMAGE_GUID_STR;
378 };
379};
380
Apurva Nandan3818b142024-02-24 01:51:49 +0530381#endif