blob: 797644a7e0d5f1473394f1280d5f2936a304e905 [file] [log] [blame]
Bryan Brattlof702196b2024-03-12 15:20:28 -05001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
4 */
5
6#include "k3-binman.dtsi"
7
8#if IS_ENABLED(CONFIG_TARGET_AM62P5_R5_EVM)
9
10&binman {
11 tiboot3-am62px-hs-fs-evm.bin {
12 filename = "tiboot3-am62px-hs-fs-evm.bin";
13 symlink = "tiboot3.bin";
14
15 ti-secure-rom {
16 content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>,
17 <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>;
18 combined;
19 dm-data;
20 sysfw-inner-cert;
21 keyfile = "custMpk.pem";
22 sw-rev = <1>;
23 content-sbl = <&u_boot_spl_fs>;
24 content-sysfw = <&ti_fs_enc_fs>;
25 content-sysfw-data = <&combined_tifs_cfg_fs>;
26 content-sysfw-inner-cert = <&sysfw_inner_cert_fs>;
27 content-dm-data = <&combined_dm_cfg_fs>;
28 load = <0x43c00000>;
29 load-sysfw = <0x40000>;
30 load-sysfw-data = <0x67000>;
31 load-dm-data = <0x43c4a800>;
32 };
33
34 u_boot_spl_fs: u-boot-spl {
35 no-expanded;
36 };
37
38 ti_fs_enc_fs: ti-fs-enc.bin {
39 filename = "ti-sysfw/ti-fs-firmware-am62px-hs-fs-enc.bin";
40 type = "blob-ext";
41 optional;
42 };
43
44 combined_tifs_cfg_fs: combined-tifs-cfg.bin {
45 filename = "combined-tifs-cfg.bin";
46 type = "blob-ext";
47 };
48
49 sysfw_inner_cert_fs: sysfw-inner-cert {
50 filename = "ti-sysfw/ti-fs-firmware-am62px-hs-fs-cert.bin";
51 type = "blob-ext";
52 optional;
53 };
54
55 combined_dm_cfg_fs: combined-dm-cfg.bin {
56 filename = "combined-dm-cfg.bin";
57 type = "blob-ext";
58 };
59 };
Bryan Brattlof55761072024-12-10 15:43:30 -060060
61 tiboot3-am62px-hs-evm.bin {
62 filename = "tiboot3-am62px-hs-evm.bin";
63
64 ti-secure-rom {
65 content = <&u_boot_spl_hs>, <&ti_fs_enc_hs>, <&combined_tifs_cfg_hs>,
66 <&combined_dm_cfg_hs>, <&sysfw_inner_cert_hs>;
67 combined;
68 dm-data;
69 sysfw-inner-cert;
70 keyfile = "custMpk.pem";
71 sw-rev = <1>;
72 content-sbl = <&u_boot_spl_hs>;
73 content-sysfw = <&ti_fs_enc_hs>;
74 content-sysfw-data = <&combined_tifs_cfg_hs>;
75 content-sysfw-inner-cert = <&sysfw_inner_cert_hs>;
76 content-dm-data = <&combined_dm_cfg_hs>;
77 load = <0x43c00000>;
78 load-sysfw = <0x40000>;
79 load-sysfw-data = <0x67000>;
80 load-dm-data = <0x43c4a800>;
81 };
82
83 u_boot_spl_hs: u-boot-spl {
84 no-expanded;
85 };
86
87 ti_fs_enc_hs: ti-fs-enc.bin {
88 filename = "ti-sysfw/ti-fs-firmware-am62px-hs-enc.bin";
89 type = "blob-ext";
90 optional;
91 };
92
93 combined_tifs_cfg_hs: combined-tifs-cfg.bin {
94 filename = "combined-tifs-cfg.bin";
95 type = "blob-ext";
96 };
97
98 sysfw_inner_cert_hs: sysfw-inner-cert {
99 filename = "ti-sysfw/ti-fs-firmware-am62px-hs-cert.bin";
100 type = "blob-ext";
101 optional;
102 };
103
104 combined_dm_cfg_hs: combined-dm-cfg.bin {
105 filename = "combined-dm-cfg.bin";
106 type = "blob-ext";
107 };
108 };
Bryan Brattlof702196b2024-03-12 15:20:28 -0500109};
110
Jonathan Humphreys99e108f2024-05-31 17:51:07 -0500111#include "k3-binman-capsule-r5.dtsi"
112
113// Capsule update GUIDs in string form. See am62px_evm.h
114#define AM62PX_SK_TIBOOT3_IMAGE_GUID_STR "b08471b7-be2d-4489-87a1-cab28a0cf743"
115
116&capsule_tiboot3 {
117 efi-capsule {
118 image-guid = AM62PX_SK_TIBOOT3_IMAGE_GUID_STR;
119 };
120};
121
Bryan Brattlof702196b2024-03-12 15:20:28 -0500122#endif /* CONFIG_TARGET_AM62P5_R5_EVM */
123
124#if IS_ENABLED(CONFIG_TARGET_AM62P5_A53_EVM)
125
126#define SPL_AM62PX_SK_DTB "spl/dts/ti/k3-am62p5-sk.dtb"
127#define AM62PX_SK_DTB "u-boot.dtb"
128
129&binman {
130 ti-dm {
131 filename = "ti-dm.bin";
132
133 blob-ext {
134 filename = "ti-dm/am62pxx/ipc_echo_testb_mcu1_0_release_strip.xer5f";
Neha Malcom Francisdf41fc62024-05-29 13:18:49 +0530135 optional;
Bryan Brattlof702196b2024-03-12 15:20:28 -0500136 };
137 };
Dhruva Gole7ba3bf62024-06-07 14:26:41 +0530138 tifsstub-hs {
139 filename = "tifsstub.bin_hs";
140 ti-secure-rom {
141 content = <&tifsstub_hs_cert>;
142 core = "secure";
143 load = <0x60000>;
144 sw-rev = <CONFIG_K3_X509_SWRV>;
145 keyfile = "custMpk.pem";
146 countersign;
147 tifsstub;
148 };
149 tifsstub_hs_cert: tifsstub-hs-cert.bin {
150 filename = "ti-sysfw/ti-fs-stub-firmware-am62px-hs-cert.bin";
151 type = "blob-ext";
152 optional;
153 };
154 tifsstub_hs_enc: tifsstub-hs-enc.bin {
155 filename = "ti-sysfw/ti-fs-stub-firmware-am62px-hs-enc.bin";
156 type = "blob-ext";
157 optional;
158 };
159 };
160
161 tifsstub-fs {
162 filename = "tifsstub.bin_fs";
163 tifsstub_fs_cert: tifsstub-fs-cert.bin {
164 filename = "ti-sysfw/ti-fs-stub-firmware-am62px-hs-cert.bin";
165 type = "blob-ext";
166 optional;
167 };
168 tifsstub_fs_enc: tifsstub-fs-enc.bin {
169 filename = "ti-sysfw/ti-fs-stub-firmware-am62px-hs-enc.bin";
170 type = "blob-ext";
171 optional;
172 };
173
174 };
Bryan Brattlof702196b2024-03-12 15:20:28 -0500175
176 ti-spl {
177 insert-template = <&ti_spl_template>;
178
179 fit {
180 images {
Dhruva Gole7ba3bf62024-06-07 14:26:41 +0530181 tifsstub-hs {
182 description = "TIFSSTUB";
183 type = "firmware";
184 arch = "arm32";
185 compression = "none";
186 os = "tifsstub-hs";
187 load = <0x9ca00000>;
188 entry = <0x9ca00000>;
189 blob-ext {
190 filename = "tifsstub.bin_hs";
191 };
192 };
193
194 tifsstub-fs {
195 description = "TIFSSTUB";
196 type = "firmware";
197 arch = "arm32";
198 compression = "none";
199 os = "tifsstub-fs";
200 load = <0x9ca00000>;
201 entry = <0x9ca00000>;
202 blob-ext {
203 filename = "tifsstub.bin_fs";
204 };
205 };
Bryan Brattlof702196b2024-03-12 15:20:28 -0500206 dm {
207 ti-secure {
208 content = <&dm>;
209 keyfile = "custMpk.pem";
210 };
211
212 dm: ti-dm {
213 filename = "ti-dm.bin";
214 };
215 };
216
217 fdt-0 {
218 description = "k3-am62p5-sk";
219 type = "flat_dt";
220 arch = "arm";
221 compression = "none";
222
223 ti-secure {
224 content = <&spl_am62p5_sk_dtb>;
225 keyfile = "custMpk.pem";
226 };
227
228 spl_am62p5_sk_dtb: blob-ext {
229 filename = SPL_AM62PX_SK_DTB;
230 };
231
232 };
233
234 };
235
236 configurations {
237 default = "conf-0";
238
239 conf-0 {
240 description = "k3-am62px-sk";
241 firmware = "atf";
Dhruva Gole7ba3bf62024-06-07 14:26:41 +0530242 loadables = "tee", "dm", "spl",
243 "tifsstub-hs", "tifsstub-fs";
Bryan Brattlof702196b2024-03-12 15:20:28 -0500244 fdt = "fdt-0";
245 };
246 };
247 };
248 };
249};
250
251&binman {
252 u-boot {
253 insert-template = <&u_boot_template>;
254
255 fit {
256 images {
257 uboot {
258 description = "U-Boot for AM62P5 Boards";
259 };
260
261 fdt-0 {
262 description = "k3-am62px-sk";
263 type = "flat_dt";
264 arch = "arm";
265 compression = "none";
266
267 ti-secure {
268 content = <&am62px_sk_dtb>;
269 keyfile = "custMpk.pem";
270 };
271
272 am62px_sk_dtb: blob-ext {
273 filename = AM62PX_SK_DTB;
274 };
275
276 hash {
277 algo = "crc32";
278 };
279 };
280 };
281
282 configurations {
283 default = "conf-0";
284
285 conf-0 {
286 description = "k3-am62px-sk";
287 firmware = "uboot";
288 loadables = "uboot";
289 fdt = "fdt-0";
290 };
291
292 };
293 };
294 };
295};
296
Jonathan Humphreys99e108f2024-05-31 17:51:07 -0500297#include "k3-binman-capsule.dtsi"
298
299// Capsule update GUIDs in string form. See am62px_evm.h
300#define AM62PX_SK_SPL_IMAGE_GUID_STR "d02ed781-6d71-4c1a-a999-3c6a41c36324"
301#define AM62PX_SK_UBOOT_IMAGE_GUID_STR "7e6aea51-965c-44ab-b388-daeb03b54f66"
302
303&capsule_tispl {
304 efi-capsule {
305 image-guid = AM62PX_SK_SPL_IMAGE_GUID_STR;
306 };
307};
308
309&capsule_uboot {
310 efi-capsule {
311 image-guid = AM62PX_SK_UBOOT_IMAGE_GUID_STR;
312 };
313};
314
Bryan Brattlof702196b2024-03-12 15:20:28 -0500315#endif /* CONFIG_TARGET_AM62P5_A53_EVM */