blob: d4b833284e2a06acc958d9e425cb0df062081075 [file] [log] [blame]
Michael Walle36ba7642020-10-15 23:08:57 +02001// SPDX-License-Identifier: GPL-2.0+
2
3#include <config.h>
4
5/ {
6 aliases {
Michael Walle36ba7642020-10-15 23:08:57 +02007 i2c0 = &i2c0;
8 i2c1 = &i2c3;
9 i2c2 = &i2c4;
Michael Walle2a20ed12021-10-13 18:14:15 +020010 ethernet2 = &enetc_port2;
11 ethernet3 = &enetc_port3;
Michael Walle36ba7642020-10-15 23:08:57 +020012 };
13
Michael Wallef5253fb2020-11-18 17:46:01 +010014 binman: binman {
Michael Walle927f0c42021-09-29 13:39:10 +020015 multiple-images;
16 };
17};
18
19&binman {
20 u_boot_rom: u-boot-rom {
Michael Walle36ba7642020-10-15 23:08:57 +020021 filename = "u-boot.rom";
22 pad-byte = <0xff>;
23
24 u-boot-spl {
25 };
26
27 fit {
28 offset = <CONFIG_SPL_PAD_TO>;
29 description = "FIT image with multiple configurations";
30
31 images {
32 uboot {
33 description = "U-Boot";
34 type = "firmware";
35 os = "u-boot";
36 arch = "arm";
37 compression = "none";
38 load = <CONFIG_SYS_TEXT_BASE>;
39
40 u-boot-nodtb {
41 };
42 };
43
44 fdt-1 {
45 description = "fsl-ls1028a-kontron-sl28";
46 type = "flat_dt";
47 arch = "arm";
48 compression = "none";
49
50 blob {
51 filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28.dtb";
52 };
53 };
54
55 fdt-2 {
Michael Walle0c16d232021-01-08 00:08:57 +010056 description = "fsl-ls1028a-kontron-sl28-var1";
57 type = "flat_dt";
58 arch = "arm";
59 compression = "none";
60
61 blob {
62 filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28-var1.dtb";
63 };
64 };
65
66 fdt-3 {
Michael Walleba3aa6b2021-01-08 00:08:58 +010067 description = "fsl-ls1028a-kontron-sl28-var2";
68 type = "flat_dt";
69 arch = "arm";
70 compression = "none";
71
72 blob {
73 filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28-var2.dtb";
74 };
75 };
76
77 fdt-4 {
Michael Walle36ba7642020-10-15 23:08:57 +020078 description = "fsl-ls1028a-kontron-sl28-var3";
79 type = "flat_dt";
80 arch = "arm";
81 compression = "none";
82
83 blob {
84 filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28-var3.dtb";
85 };
86 };
87
Michael Walleba3aa6b2021-01-08 00:08:58 +010088 fdt-5 {
Michael Walle36ba7642020-10-15 23:08:57 +020089 description = "fsl-ls1028a-kontron-sl28-var4";
90 type = "flat_dt";
91 arch = "arm";
92 compression = "none";
93
94 blob {
95 filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28-var4.dtb";
96 };
97 };
98 };
99
100 configurations {
101 default = "conf-1";
102
103 conf-1 {
104 description = "fsl-ls1028a-kontron-sl28";
105 firmware = "uboot";
Michael Walle36ba7642020-10-15 23:08:57 +0200106 fdt = "fdt-1";
107 };
108
109 conf-2 {
Michael Walle0c16d232021-01-08 00:08:57 +0100110 description = "fsl-ls1028a-kontron-sl28-var1";
Michael Walle36ba7642020-10-15 23:08:57 +0200111 firmware = "uboot";
Michael Walle36ba7642020-10-15 23:08:57 +0200112 fdt = "fdt-2";
113 };
114
115 conf-3 {
Michael Walleba3aa6b2021-01-08 00:08:58 +0100116 description = "fsl-ls1028a-kontron-sl28-var2";
Michael Walle36ba7642020-10-15 23:08:57 +0200117 firmware = "uboot";
Michael Walle36ba7642020-10-15 23:08:57 +0200118 fdt = "fdt-3";
119 };
Michael Walle0c16d232021-01-08 00:08:57 +0100120
121 conf-4 {
Michael Walleba3aa6b2021-01-08 00:08:58 +0100122 description = "fsl-ls1028a-kontron-sl28-var3";
Michael Walle0c16d232021-01-08 00:08:57 +0100123 firmware = "uboot";
124 loadables = "uboot";
125 fdt = "fdt-4";
126 };
Michael Walleba3aa6b2021-01-08 00:08:58 +0100127
128 conf-5 {
129 description = "fsl-ls1028a-kontron-sl28-var4";
130 firmware = "uboot";
131 loadables = "uboot";
132 fdt = "fdt-5";
133 };
Michael Walle36ba7642020-10-15 23:08:57 +0200134 };
135 };
136 };
137};
138
Michael Walle927f0c42021-09-29 13:39:10 +0200139&binman {
140 u-boot-update {
141 filename = "u-boot.update";
142
143 fit {
144 description = "FIT update image";
145
146 images {
147 u-boot-bin {
148 description = "U-Boot";
149 type = "firmware";
150 os = "u-boot";
151 arch = "arm";
152 compression = "none";
153 load = <0>; /* unused */
154
155 blob {
156 filename = "u-boot.rom";
157 };
158 };
159 };
160 };
161 };
162};
163
Michael Walle898a8be2021-03-26 19:40:59 +0100164#ifdef CONFIG_SL28_ENABLE_SER0_CONSOLE
165/ {
166 chosen {
167 stdout-path = "serial2:115200n8";
168 };
169};
170#endif
171
Michael Wallef5253fb2020-11-18 17:46:01 +0100172#ifdef CONFIG_SL28_SPL_LOADS_ATF_BL31
Michael Walle927f0c42021-09-29 13:39:10 +0200173&u_boot_rom {
Michael Wallef5253fb2020-11-18 17:46:01 +0100174 fit {
175 images {
176 bl31 {
177 description = "ARM Trusted Firmware (bl31)";
178 type = "firmware";
179 arch = "arm";
180 os = "arm-trusted-firmware";
181 compression = "none";
182 load = <CONFIG_SL28_BL31_ENTRY_ADDR>;
183 entry = <CONFIG_SL28_BL31_ENTRY_ADDR>;
184
185 blob-ext {
186 filename = "bl31.bin";
187 };
188 };
189 };
190
191 configurations {
192 conf-1 {
193 firmware = "bl31";
194 loadables = "uboot";
195 };
196
197 conf-2 {
198 firmware = "bl31";
199 loadables = "uboot";
200 };
201
202 conf-3 {
203 firmware = "bl31";
204 loadables = "uboot";
205 };
Michael Walle0c16d232021-01-08 00:08:57 +0100206
207 conf-4 {
208 firmware = "bl31";
209 loadables = "uboot";
210 };
Michael Walleba3aa6b2021-01-08 00:08:58 +0100211
212 conf-5 {
213 firmware = "bl31";
214 loadables = "uboot";
215 };
Michael Wallef5253fb2020-11-18 17:46:01 +0100216 };
217 };
218};
219#endif
220
Michael Walle76427fb2020-11-18 17:46:02 +0100221#ifdef CONFIG_SL28_SPL_LOADS_OPTEE_BL32
Michael Walle927f0c42021-09-29 13:39:10 +0200222&u_boot_rom {
Michael Walle76427fb2020-11-18 17:46:02 +0100223 fit {
224 images {
225 bl32 {
226 description = "OP-TEE Trusted OS (bl32)";
227 type = "firmware";
228 arch = "arm";
229 os = "tee";
230 compression = "none";
231 load = <CONFIG_SL28_BL32_ENTRY_ADDR>;
232 entry = <CONFIG_SL28_BL32_ENTRY_ADDR>;
233
234 blob-ext {
235 filename = "tee.bin";
236 };
237 };
238 };
239
240 configurations {
241 conf-1 {
242 loadables = "uboot", "bl32";
243 };
244
245 conf-2 {
246 loadables = "uboot", "bl32";
247 };
248
249 conf-3 {
250 loadables = "uboot", "bl32";
251 };
Michael Walle0c16d232021-01-08 00:08:57 +0100252
253 conf-4 {
254 loadables = "uboot", "bl32";
255 };
Michael Walleba3aa6b2021-01-08 00:08:58 +0100256
257 conf-5 {
258 loadables = "uboot", "bl32";
259 };
Michael Walle76427fb2020-11-18 17:46:02 +0100260 };
261 };
262};
263#endif
264
Michael Walle36ba7642020-10-15 23:08:57 +0200265&fspi {
266 u-boot,dm-pre-reloc;
267 flash@0 {
268 u-boot,dm-pre-reloc;
269 };
270};
271
272&dspi2 {
273 u-boot,dm-pre-reloc;
274};
275
Michael Walle2a20ed12021-10-13 18:14:15 +0200276&esdhc {
Michael Walle36ba7642020-10-15 23:08:57 +0200277 u-boot,dm-pre-reloc;
278};
279
280&esdhc1 {
281 u-boot,dm-pre-reloc;
282};
283
Michael Walle898a8be2021-03-26 19:40:59 +0100284&lpuart1 {
285 u-boot,dm-pre-reloc;
286};
287
Michael Walle2a20ed12021-10-13 18:14:15 +0200288&duart0 {
Michael Walle36ba7642020-10-15 23:08:57 +0200289 u-boot,dm-pre-reloc;
290};
291
Michael Walle0a908fb2021-10-13 18:14:25 +0200292/*
293 * u-boot will enable the device in the linux device tree in place. Because
294 * we are using the linux device tree, we have to enable the PCI controller
295 * ourselves.
296 */
297&pcie1 {
298 status = "okay";
299};
300
301&pcie2 {
302 status = "okay";
303};
304
Michael Walle773a7f82021-10-13 18:14:27 +0200305&sata {
306 status = "okay";
307};
308
Michael Wallea81b2e82021-10-13 18:14:03 +0200309&soc {
310 u-boot,dm-pre-reloc;
311};
312
Michael Walle36ba7642020-10-15 23:08:57 +0200313&sysclk {
314 u-boot,dm-pre-reloc;
315};