blob: 68a3e0b7aa8f4e64cc94b9ccb717c59bb8ecd6df [file] [log] [blame]
Michael Walle4ceb5c62020-10-15 23:08:57 +02001// SPDX-License-Identifier: GPL-2.0+
2
3#include <config.h>
4
5/ {
6 aliases {
Michael Wallee668bec2020-12-20 22:35:13 +01007 mmc0 = &esdhc1;
Michael Wallec816dd02021-10-13 18:14:15 +02008 mmc1 = &esdhc;
Michael Walle4ceb5c62020-10-15 23:08:57 +02009 i2c0 = &i2c0;
10 i2c1 = &i2c3;
11 i2c2 = &i2c4;
12 rtc0 = &rtc;
Michael Wallec816dd02021-10-13 18:14:15 +020013 ethernet2 = &enetc_port2;
14 ethernet3 = &enetc_port3;
Michael Walle4ceb5c62020-10-15 23:08:57 +020015 };
16
Michael Wallee0577602020-11-18 17:46:01 +010017 binman: binman {
Michael Walled8ffd932021-09-29 13:39:10 +020018 multiple-images;
19 };
20};
21
22&binman {
23 u_boot_rom: u-boot-rom {
Michael Walle4ceb5c62020-10-15 23:08:57 +020024 filename = "u-boot.rom";
25 pad-byte = <0xff>;
26
27 u-boot-spl {
28 };
29
30 fit {
31 offset = <CONFIG_SPL_PAD_TO>;
32 description = "FIT image with multiple configurations";
33
34 images {
35 uboot {
36 description = "U-Boot";
37 type = "firmware";
38 os = "u-boot";
39 arch = "arm";
40 compression = "none";
41 load = <CONFIG_SYS_TEXT_BASE>;
42
43 u-boot-nodtb {
44 };
45 };
46
47 fdt-1 {
48 description = "fsl-ls1028a-kontron-sl28";
49 type = "flat_dt";
50 arch = "arm";
51 compression = "none";
52
53 blob {
54 filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28.dtb";
55 };
56 };
57
58 fdt-2 {
Michael Walle4029d352021-01-08 00:08:57 +010059 description = "fsl-ls1028a-kontron-sl28-var1";
60 type = "flat_dt";
61 arch = "arm";
62 compression = "none";
63
64 blob {
65 filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28-var1.dtb";
66 };
67 };
68
69 fdt-3 {
Michael Walleb4630102021-01-08 00:08:58 +010070 description = "fsl-ls1028a-kontron-sl28-var2";
71 type = "flat_dt";
72 arch = "arm";
73 compression = "none";
74
75 blob {
76 filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28-var2.dtb";
77 };
78 };
79
80 fdt-4 {
Michael Walle4ceb5c62020-10-15 23:08:57 +020081 description = "fsl-ls1028a-kontron-sl28-var3";
82 type = "flat_dt";
83 arch = "arm";
84 compression = "none";
85
86 blob {
87 filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28-var3.dtb";
88 };
89 };
90
Michael Walleb4630102021-01-08 00:08:58 +010091 fdt-5 {
Michael Walle4ceb5c62020-10-15 23:08:57 +020092 description = "fsl-ls1028a-kontron-sl28-var4";
93 type = "flat_dt";
94 arch = "arm";
95 compression = "none";
96
97 blob {
98 filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28-var4.dtb";
99 };
100 };
101 };
102
103 configurations {
104 default = "conf-1";
105
106 conf-1 {
107 description = "fsl-ls1028a-kontron-sl28";
108 firmware = "uboot";
Michael Walle4ceb5c62020-10-15 23:08:57 +0200109 fdt = "fdt-1";
110 };
111
112 conf-2 {
Michael Walle4029d352021-01-08 00:08:57 +0100113 description = "fsl-ls1028a-kontron-sl28-var1";
Michael Walle4ceb5c62020-10-15 23:08:57 +0200114 firmware = "uboot";
Michael Walle4ceb5c62020-10-15 23:08:57 +0200115 fdt = "fdt-2";
116 };
117
118 conf-3 {
Michael Walleb4630102021-01-08 00:08:58 +0100119 description = "fsl-ls1028a-kontron-sl28-var2";
Michael Walle4ceb5c62020-10-15 23:08:57 +0200120 firmware = "uboot";
Michael Walle4ceb5c62020-10-15 23:08:57 +0200121 fdt = "fdt-3";
122 };
Michael Walle4029d352021-01-08 00:08:57 +0100123
124 conf-4 {
Michael Walleb4630102021-01-08 00:08:58 +0100125 description = "fsl-ls1028a-kontron-sl28-var3";
Michael Walle4029d352021-01-08 00:08:57 +0100126 firmware = "uboot";
127 loadables = "uboot";
128 fdt = "fdt-4";
129 };
Michael Walleb4630102021-01-08 00:08:58 +0100130
131 conf-5 {
132 description = "fsl-ls1028a-kontron-sl28-var4";
133 firmware = "uboot";
134 loadables = "uboot";
135 fdt = "fdt-5";
136 };
Michael Walle4ceb5c62020-10-15 23:08:57 +0200137 };
138 };
139 };
140};
141
Michael Walled8ffd932021-09-29 13:39:10 +0200142&binman {
143 u-boot-update {
144 filename = "u-boot.update";
145
146 fit {
147 description = "FIT update image";
148
149 images {
150 u-boot-bin {
151 description = "U-Boot";
152 type = "firmware";
153 os = "u-boot";
154 arch = "arm";
155 compression = "none";
156 load = <0>; /* unused */
157
158 blob {
159 filename = "u-boot.rom";
160 };
161 };
162 };
163 };
164 };
165};
166
Michael Walle9b3843f2021-03-26 19:40:59 +0100167#ifdef CONFIG_SL28_ENABLE_SER0_CONSOLE
168/ {
169 chosen {
170 stdout-path = "serial2:115200n8";
171 };
172};
173#endif
174
Michael Wallee0577602020-11-18 17:46:01 +0100175#ifdef CONFIG_SL28_SPL_LOADS_ATF_BL31
Michael Walled8ffd932021-09-29 13:39:10 +0200176&u_boot_rom {
Michael Wallee0577602020-11-18 17:46:01 +0100177 fit {
178 images {
179 bl31 {
180 description = "ARM Trusted Firmware (bl31)";
181 type = "firmware";
182 arch = "arm";
183 os = "arm-trusted-firmware";
184 compression = "none";
185 load = <CONFIG_SL28_BL31_ENTRY_ADDR>;
186 entry = <CONFIG_SL28_BL31_ENTRY_ADDR>;
187
188 blob-ext {
189 filename = "bl31.bin";
190 };
191 };
192 };
193
194 configurations {
195 conf-1 {
196 firmware = "bl31";
197 loadables = "uboot";
198 };
199
200 conf-2 {
201 firmware = "bl31";
202 loadables = "uboot";
203 };
204
205 conf-3 {
206 firmware = "bl31";
207 loadables = "uboot";
208 };
Michael Walle4029d352021-01-08 00:08:57 +0100209
210 conf-4 {
211 firmware = "bl31";
212 loadables = "uboot";
213 };
Michael Walleb4630102021-01-08 00:08:58 +0100214
215 conf-5 {
216 firmware = "bl31";
217 loadables = "uboot";
218 };
Michael Wallee0577602020-11-18 17:46:01 +0100219 };
220 };
221};
222#endif
223
Michael Walle4c450da2020-11-18 17:46:02 +0100224#ifdef CONFIG_SL28_SPL_LOADS_OPTEE_BL32
Michael Walled8ffd932021-09-29 13:39:10 +0200225&u_boot_rom {
Michael Walle4c450da2020-11-18 17:46:02 +0100226 fit {
227 images {
228 bl32 {
229 description = "OP-TEE Trusted OS (bl32)";
230 type = "firmware";
231 arch = "arm";
232 os = "tee";
233 compression = "none";
234 load = <CONFIG_SL28_BL32_ENTRY_ADDR>;
235 entry = <CONFIG_SL28_BL32_ENTRY_ADDR>;
236
237 blob-ext {
238 filename = "tee.bin";
239 };
240 };
241 };
242
243 configurations {
244 conf-1 {
245 loadables = "uboot", "bl32";
246 };
247
248 conf-2 {
249 loadables = "uboot", "bl32";
250 };
251
252 conf-3 {
253 loadables = "uboot", "bl32";
254 };
Michael Walle4029d352021-01-08 00:08:57 +0100255
256 conf-4 {
257 loadables = "uboot", "bl32";
258 };
Michael Walleb4630102021-01-08 00:08:58 +0100259
260 conf-5 {
261 loadables = "uboot", "bl32";
262 };
Michael Walle4c450da2020-11-18 17:46:02 +0100263 };
264 };
265};
266#endif
267
Michael Walle4ceb5c62020-10-15 23:08:57 +0200268&i2c0 {
269 rtc: rtc@32 {
270 };
271};
272
273&fspi {
274 u-boot,dm-pre-reloc;
275 flash@0 {
276 u-boot,dm-pre-reloc;
277 };
278};
279
280&dspi2 {
281 u-boot,dm-pre-reloc;
282};
283
Michael Wallec816dd02021-10-13 18:14:15 +0200284&esdhc {
Michael Walle4ceb5c62020-10-15 23:08:57 +0200285 u-boot,dm-pre-reloc;
286};
287
288&esdhc1 {
289 u-boot,dm-pre-reloc;
290};
291
Michael Walle9b3843f2021-03-26 19:40:59 +0100292&lpuart1 {
293 u-boot,dm-pre-reloc;
294};
295
Michael Wallec816dd02021-10-13 18:14:15 +0200296&duart0 {
Michael Walle4ceb5c62020-10-15 23:08:57 +0200297 u-boot,dm-pre-reloc;
298};
299
Michael Wallecd80d5d2021-10-13 18:14:03 +0200300&soc {
301 u-boot,dm-pre-reloc;
302};
303
Michael Walle4ceb5c62020-10-15 23:08:57 +0200304&sysclk {
305 u-boot,dm-pre-reloc;
306};