blob: b3861ed98cf3a06a83c118202b036311adeeec25 [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;
8 mmc1 = &esdhc0;
Michael Walle4ceb5c62020-10-15 23:08:57 +02009 i2c0 = &i2c0;
10 i2c1 = &i2c3;
11 i2c2 = &i2c4;
12 rtc0 = &rtc;
Michael Walle4ceb5c62020-10-15 23:08:57 +020013 ethernet2 = &enetc2;
14 ethernet3 = &enetc6;
15 };
16
Michael Wallee0577602020-11-18 17:46:01 +010017 binman: binman {
Michael Walle4ceb5c62020-10-15 23:08:57 +020018 filename = "u-boot.rom";
19 pad-byte = <0xff>;
20
21 u-boot-spl {
22 };
23
24 fit {
25 offset = <CONFIG_SPL_PAD_TO>;
26 description = "FIT image with multiple configurations";
27
28 images {
29 uboot {
30 description = "U-Boot";
31 type = "firmware";
32 os = "u-boot";
33 arch = "arm";
34 compression = "none";
35 load = <CONFIG_SYS_TEXT_BASE>;
36
37 u-boot-nodtb {
38 };
39 };
40
41 fdt-1 {
42 description = "fsl-ls1028a-kontron-sl28";
43 type = "flat_dt";
44 arch = "arm";
45 compression = "none";
46
47 blob {
48 filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28.dtb";
49 };
50 };
51
52 fdt-2 {
Michael Walle4029d352021-01-08 00:08:57 +010053 description = "fsl-ls1028a-kontron-sl28-var1";
54 type = "flat_dt";
55 arch = "arm";
56 compression = "none";
57
58 blob {
59 filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28-var1.dtb";
60 };
61 };
62
63 fdt-3 {
Michael Walleb4630102021-01-08 00:08:58 +010064 description = "fsl-ls1028a-kontron-sl28-var2";
65 type = "flat_dt";
66 arch = "arm";
67 compression = "none";
68
69 blob {
70 filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28-var2.dtb";
71 };
72 };
73
74 fdt-4 {
Michael Walle4ceb5c62020-10-15 23:08:57 +020075 description = "fsl-ls1028a-kontron-sl28-var3";
76 type = "flat_dt";
77 arch = "arm";
78 compression = "none";
79
80 blob {
81 filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28-var3.dtb";
82 };
83 };
84
Michael Walleb4630102021-01-08 00:08:58 +010085 fdt-5 {
Michael Walle4ceb5c62020-10-15 23:08:57 +020086 description = "fsl-ls1028a-kontron-sl28-var4";
87 type = "flat_dt";
88 arch = "arm";
89 compression = "none";
90
91 blob {
92 filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28-var4.dtb";
93 };
94 };
95 };
96
97 configurations {
98 default = "conf-1";
99
100 conf-1 {
101 description = "fsl-ls1028a-kontron-sl28";
102 firmware = "uboot";
Michael Walle4ceb5c62020-10-15 23:08:57 +0200103 fdt = "fdt-1";
104 };
105
106 conf-2 {
Michael Walle4029d352021-01-08 00:08:57 +0100107 description = "fsl-ls1028a-kontron-sl28-var1";
Michael Walle4ceb5c62020-10-15 23:08:57 +0200108 firmware = "uboot";
Michael Walle4ceb5c62020-10-15 23:08:57 +0200109 fdt = "fdt-2";
110 };
111
112 conf-3 {
Michael Walleb4630102021-01-08 00:08:58 +0100113 description = "fsl-ls1028a-kontron-sl28-var2";
Michael Walle4ceb5c62020-10-15 23:08:57 +0200114 firmware = "uboot";
Michael Walle4ceb5c62020-10-15 23:08:57 +0200115 fdt = "fdt-3";
116 };
Michael Walle4029d352021-01-08 00:08:57 +0100117
118 conf-4 {
Michael Walleb4630102021-01-08 00:08:58 +0100119 description = "fsl-ls1028a-kontron-sl28-var3";
Michael Walle4029d352021-01-08 00:08:57 +0100120 firmware = "uboot";
121 loadables = "uboot";
122 fdt = "fdt-4";
123 };
Michael Walleb4630102021-01-08 00:08:58 +0100124
125 conf-5 {
126 description = "fsl-ls1028a-kontron-sl28-var4";
127 firmware = "uboot";
128 loadables = "uboot";
129 fdt = "fdt-5";
130 };
Michael Walle4ceb5c62020-10-15 23:08:57 +0200131 };
132 };
133 };
134};
135
Michael Walle9b3843f2021-03-26 19:40:59 +0100136#ifdef CONFIG_SL28_ENABLE_SER0_CONSOLE
137/ {
138 chosen {
139 stdout-path = "serial2:115200n8";
140 };
141};
142#endif
143
Michael Wallee0577602020-11-18 17:46:01 +0100144#ifdef CONFIG_SL28_SPL_LOADS_ATF_BL31
145&binman {
146 fit {
147 images {
148 bl31 {
149 description = "ARM Trusted Firmware (bl31)";
150 type = "firmware";
151 arch = "arm";
152 os = "arm-trusted-firmware";
153 compression = "none";
154 load = <CONFIG_SL28_BL31_ENTRY_ADDR>;
155 entry = <CONFIG_SL28_BL31_ENTRY_ADDR>;
156
157 blob-ext {
158 filename = "bl31.bin";
159 };
160 };
161 };
162
163 configurations {
164 conf-1 {
165 firmware = "bl31";
166 loadables = "uboot";
167 };
168
169 conf-2 {
170 firmware = "bl31";
171 loadables = "uboot";
172 };
173
174 conf-3 {
175 firmware = "bl31";
176 loadables = "uboot";
177 };
Michael Walle4029d352021-01-08 00:08:57 +0100178
179 conf-4 {
180 firmware = "bl31";
181 loadables = "uboot";
182 };
Michael Walleb4630102021-01-08 00:08:58 +0100183
184 conf-5 {
185 firmware = "bl31";
186 loadables = "uboot";
187 };
Michael Wallee0577602020-11-18 17:46:01 +0100188 };
189 };
190};
191#endif
192
Michael Walle4c450da2020-11-18 17:46:02 +0100193#ifdef CONFIG_SL28_SPL_LOADS_OPTEE_BL32
194&binman {
195 fit {
196 images {
197 bl32 {
198 description = "OP-TEE Trusted OS (bl32)";
199 type = "firmware";
200 arch = "arm";
201 os = "tee";
202 compression = "none";
203 load = <CONFIG_SL28_BL32_ENTRY_ADDR>;
204 entry = <CONFIG_SL28_BL32_ENTRY_ADDR>;
205
206 blob-ext {
207 filename = "tee.bin";
208 };
209 };
210 };
211
212 configurations {
213 conf-1 {
214 loadables = "uboot", "bl32";
215 };
216
217 conf-2 {
218 loadables = "uboot", "bl32";
219 };
220
221 conf-3 {
222 loadables = "uboot", "bl32";
223 };
Michael Walle4029d352021-01-08 00:08:57 +0100224
225 conf-4 {
226 loadables = "uboot", "bl32";
227 };
Michael Walleb4630102021-01-08 00:08:58 +0100228
229 conf-5 {
230 loadables = "uboot", "bl32";
231 };
Michael Walle4c450da2020-11-18 17:46:02 +0100232 };
233 };
234};
235#endif
236
Michael Walle4ceb5c62020-10-15 23:08:57 +0200237&i2c0 {
238 rtc: rtc@32 {
239 };
240};
241
242&fspi {
243 u-boot,dm-pre-reloc;
244 flash@0 {
245 u-boot,dm-pre-reloc;
246 };
247};
248
249&dspi2 {
250 u-boot,dm-pre-reloc;
251};
252
253&esdhc0 {
254 u-boot,dm-pre-reloc;
255};
256
257&esdhc1 {
258 u-boot,dm-pre-reloc;
259};
260
Michael Walle9b3843f2021-03-26 19:40:59 +0100261&lpuart1 {
262 u-boot,dm-pre-reloc;
263};
264
Michael Walle4ceb5c62020-10-15 23:08:57 +0200265&serial0 {
266 u-boot,dm-pre-reloc;
267};
268
269&sysclk {
270 u-boot,dm-pre-reloc;
271};