blob: 64318d09cf0a6f6b26daa5d74dfe04b163e0a4cc [file] [log] [blame]
Jan Kiszkac3a87952021-09-18 08:17:52 +02001// SPDX-License-Identifier: GPL-2.0
2/*
Jan Kiszkabadaa1f2023-07-27 06:34:54 +02003 * Copyright (c) Siemens AG, 2020-2023
Jan Kiszkac3a87952021-09-18 08:17:52 +02004 *
5 * Authors:
6 * Jan Kiszka <jan.kiszka@siemens.com>
7 * Chao Zeng <chao.zeng@siemens.com>
8 */
9
10#include <config.h>
11
12/ {
Jan Kiszkabadaa1f2023-07-27 06:34:54 +020013 binman: binman {
14 multiple-images;
15 };
16};
17
18&binman {
19 common_part: template {
Jan Kiszkac3a87952021-09-18 08:17:52 +020020 pad-byte = <0xff>;
21 size = <0x8c0000>;
Jan Kiszka430e9f62023-02-28 19:19:15 +010022 allow-repack;
Jan Kiszkac3a87952021-09-18 08:17:52 +020023
Jan Kiszkabadaa1f2023-07-27 06:34:54 +020024 blob-ext@0 {
Jan Kiszkac3a87952021-09-18 08:17:52 +020025 offset = <0x000000>;
Ivan Mikhaylov1c11b5e2021-12-09 16:10:53 +000026 missing-msg = "iot2050-seboot";
Jan Kiszkac3a87952021-09-18 08:17:52 +020027 };
28
Jan Kiszkabadaa1f2023-07-27 06:34:54 +020029 fit@180000 {
Jan Kiszka6ac91312023-02-28 19:19:11 +010030 offset = <0x180000>;
Jan Kiszkac3a87952021-09-18 08:17:52 +020031 filename = "tispl.bin";
Neha Malcom Francis9da80e72023-07-22 00:14:41 +053032 pad-byte = <0xff>;
33 description = "Configuration to load ATF and SPL";
34
35 images {
36 atf {
37 description = "ARM Trusted Firmware";
38 type = "firmware";
39 arch = "arm64";
40 compression = "none";
41 os = "arm-trusted-firmware";
42 load = <CONFIG_K3_ATF_LOAD_ADDR>;
43 entry = <CONFIG_K3_ATF_LOAD_ADDR>;
Simon Glass98244a82023-08-23 19:18:01 -060044 atf-bl31 {
Neha Malcom Francis9da80e72023-07-22 00:14:41 +053045 };
46 };
47
48 tee {
49 description = "OP-TEE";
50 type = "tee";
51 arch = "arm64";
52 compression = "none";
53 os = "tee";
54 load = <0x9e800000>;
55 entry = <0x9e800000>;
Simon Glass98244a82023-08-23 19:18:01 -060056 tee-os {
Neha Malcom Francis9da80e72023-07-22 00:14:41 +053057 };
58 };
59
60 dm {
61 description = "DM binary";
62 type = "firmware";
63 arch = "arm32";
64 compression = "none";
65 os = "DM";
66 load = <0x89000000>;
67 entry = <0x89000000>;
68 blob-ext {
69 filename = "/dev/null";
70 };
71 };
72
73 spl {
74 description = "SPL (64-bit)";
75 type = "standalone";
76 os = "U-Boot";
77 arch = "arm64";
78 compression = "none";
79 load = <CONFIG_SPL_TEXT_BASE>;
80 entry = <CONFIG_SPL_TEXT_BASE>;
Simon Glass98244a82023-08-23 19:18:01 -060081 blob-ext {
Neha Malcom Francis9da80e72023-07-22 00:14:41 +053082 filename = "spl/u-boot-spl-nodtb.bin";
83 };
84 };
85
86 fdt-0 {
87 description = "k3-am65-iot2050-spl.dtb";
88 type = "flat_dt";
89 arch = "arm";
90 compression = "none";
Simon Glass98244a82023-08-23 19:18:01 -060091 blob-ext {
Neha Malcom Francis9da80e72023-07-22 00:14:41 +053092 filename = "spl/dts/k3-am65-iot2050-spl.dtb";
93 };
94 };
95 };
96
97 configurations {
98 default = "spl";
99 spl {
100 fdt = "fdt-0";
101 firmware = "atf";
102 loadables = "tee", "dm", "spl";
103 };
104 };
Jan Kiszkac3a87952021-09-18 08:17:52 +0200105 };
106
Jan Kiszkabadaa1f2023-07-27 06:34:54 +0200107 fit@380000 {
Jan Kiszkac3a87952021-09-18 08:17:52 +0200108 description = "U-Boot for IOT2050";
Jan Kiszka6ac91312023-02-28 19:19:11 +0100109 offset = <0x380000>;
Jan Kiszkac3a87952021-09-18 08:17:52 +0200110 images {
111 u-boot {
112 description = "U-Boot";
113 type = "standalone";
114 arch = "arm64";
115 os = "u-boot";
116 compression = "none";
117 load = <0x80800000>;
118 entry = <0x80800000>;
119 u-boot-nodtb {
120 };
Jan Kiszka430e9f62023-02-28 19:19:15 +0100121 hash {
122 algo = "sha256";
123 };
Jan Kiszkac3a87952021-09-18 08:17:52 +0200124 };
125
Su Baochengffbd5b22023-02-28 19:19:10 +0100126 @fdt-SEQ {
127 description = "fdt-NAME";
Jan Kiszkac3a87952021-09-18 08:17:52 +0200128 type = "flat_dt";
129 arch = "arm64";
130 compression = "none";
Jan Kiszka430e9f62023-02-28 19:19:15 +0100131 hash {
132 algo = "sha256";
133 };
Jan Kiszkac3a87952021-09-18 08:17:52 +0200134 };
Jan Kiszka26fa0632021-09-18 08:17:56 +0200135
Jan Kiszkabadaa1f2023-07-27 06:34:54 +0200136#ifdef CONFIG_WDT_K3_RTI_FW_FILE
137 k3-rti-wdt-firmware {
138 type = "firmware";
139 load = <0x82000000>;
140 arch = "arm";
141 compression = "none";
142 blob-ext {
143 filename = CONFIG_WDT_K3_RTI_FW_FILE;
144 missing-msg = "k3-rti-wdt-firmware";
145 };
146 hash {
147 algo = "sha256";
148 };
149 };
150#endif
151 };
152
153 configurations {
154 @config-SEQ {
155 description = "NAME";
156 firmware = "u-boot";
157 fdt = "fdt-SEQ";
158 signature {
159 sign-images = "firmware", "fdt", "loadables";
160 };
161 };
162 };
163 };
164
165 fdtmap {
166 };
167
168 /* primary env */
169 fill@680000 {
170 offset = <0x680000>;
171 size = <0x020000>;
172 fill-byte = [00];
173 };
174 /* secondary env */
175 fill@6a0000 {
176 offset = <0x6a0000>;
177 size = <0x020000>;
178 fill-byte = [00];
179 };
180
181/* OTP update command block */
182#ifdef CONFIG_IOT2050_EMBED_OTPCMD
183 blob-ext@6c0000 {
184 offset = <0x6c0000>;
185
186 size = <0x010000>;
187 filename = "otpcmd.bin";
188 missing-msg = "iot2050-otpcmd";
189 };
190#else
191 fill@6c0000 {
192 offset = <0x6c0000>;
193 size = <0x010000>;
194 fill-byte = [ff];
195 };
196#endif
197 };
198
199 flash-pg1 {
200 filename = "flash-pg1.bin";
201 insert-template = <&common_part>;
202
203 blob-ext@0 {
204 filename = "seboot_pg1.bin";
205 };
206
207 fit@380000 {
208 fit,fdt-list-val = "k3-am6528-iot2050-basic", "k3-am6548-iot2050-advanced";
209
210 configurations {
211 default = "k3-am6528-iot2050-basic";
212 @config-SEQ {
213 loadables =
214#ifdef CONFIG_WDT_K3_RTI_FW_FILE
215 "k3-rti-wdt-firmware",
216#endif
217 <>;
218 };
219 };
220 };
221 };
222
223 flash-pg2 {
224 filename = "flash-pg2.bin";
225 insert-template = <&common_part>;
226
227 blob-ext@0 {
228 filename = "seboot_pg2.bin";
229 };
230
231 fit@380000 {
232 fit,fdt-list-val = "k3-am6528-iot2050-basic-pg2", "k3-am6548-iot2050-advanced-pg2", "k3-am6548-iot2050-advanced-m2";
233
234 images {
Jan Kiszka352ed652023-02-28 19:19:23 +0100235 bkey-usb3-overlay {
236 description = "M.2-bkey-usb3-overlay";
237 type = "blob";
238 load = <0x82100000>;
239 arch = "arm64";
240 compression = "none";
241 blob-ext {
242 filename = "k3-am6548-iot2050-advanced-m2-bkey-usb3-overlay.dtbo";
243 };
244 hash {
245 algo = "sha256";
246 };
247 };
248
249 bkey-ekey-pcie-overlay {
250 description = "M.2-bkey-ekey-pcie-overlay";
251 type = "blob";
252 load = <0x82110000>;
253 arch = "arm64";
254 compression = "none";
255 blob-ext {
256 filename = "k3-am6548-iot2050-advanced-m2-bkey-ekey-pcie-overlay.dtbo";
257 };
258 hash {
259 algo = "sha256";
260 };
261 };
Jan Kiszkac3a87952021-09-18 08:17:52 +0200262 };
263
264 configurations {
Jan Kiszkabadaa1f2023-07-27 06:34:54 +0200265 default = "k3-am6528-iot2050-basic-pg2";
Su Baochengffbd5b22023-02-28 19:19:10 +0100266 @config-SEQ {
Jan Kiszka352ed652023-02-28 19:19:23 +0100267 loadables =
Jan Kiszka352ed652023-02-28 19:19:23 +0100268#ifdef CONFIG_WDT_K3_RTI_FW_FILE
269 "k3-rti-wdt-firmware",
270#endif
Jan Kiszkabadaa1f2023-07-27 06:34:54 +0200271 "bkey-usb3-overlay",
272 "bkey-ekey-pcie-overlay";
Jan Kiszkac3a87952021-09-18 08:17:52 +0200273 };
Jan Kiszkac3a87952021-09-18 08:17:52 +0200274 };
275 };
Jan Kiszkac3a87952021-09-18 08:17:52 +0200276 };
277};