blob: 240178ab4e7cf311f9e4200fc87026bcc1f8a8bb [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 Walle654652a2020-12-20 22:35:13 +01007 mmc0 = &esdhc1;
8 mmc1 = &esdhc0;
Michael Walle36ba7642020-10-15 23:08:57 +02009 i2c0 = &i2c0;
10 i2c1 = &i2c3;
11 i2c2 = &i2c4;
12 rtc0 = &rtc;
Michael Walle36ba7642020-10-15 23:08:57 +020013 ethernet2 = &enetc2;
14 ethernet3 = &enetc6;
15 };
16
Michael Wallef5253fb2020-11-18 17:46:01 +010017 binman: binman {
Michael Walle36ba7642020-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 Walle0c16d232021-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 Walleba3aa6b2021-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 Walle36ba7642020-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 Walleba3aa6b2021-01-08 00:08:58 +010085 fdt-5 {
Michael Walle36ba7642020-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 Walle36ba7642020-10-15 23:08:57 +0200103 fdt = "fdt-1";
104 };
105
106 conf-2 {
Michael Walle0c16d232021-01-08 00:08:57 +0100107 description = "fsl-ls1028a-kontron-sl28-var1";
Michael Walle36ba7642020-10-15 23:08:57 +0200108 firmware = "uboot";
Michael Walle36ba7642020-10-15 23:08:57 +0200109 fdt = "fdt-2";
110 };
111
112 conf-3 {
Michael Walleba3aa6b2021-01-08 00:08:58 +0100113 description = "fsl-ls1028a-kontron-sl28-var2";
Michael Walle36ba7642020-10-15 23:08:57 +0200114 firmware = "uboot";
Michael Walle36ba7642020-10-15 23:08:57 +0200115 fdt = "fdt-3";
116 };
Michael Walle0c16d232021-01-08 00:08:57 +0100117
118 conf-4 {
Michael Walleba3aa6b2021-01-08 00:08:58 +0100119 description = "fsl-ls1028a-kontron-sl28-var3";
Michael Walle0c16d232021-01-08 00:08:57 +0100120 firmware = "uboot";
121 loadables = "uboot";
122 fdt = "fdt-4";
123 };
Michael Walleba3aa6b2021-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 Walle36ba7642020-10-15 23:08:57 +0200131 };
132 };
133 };
134};
135
Michael Wallef5253fb2020-11-18 17:46:01 +0100136#ifdef CONFIG_SL28_SPL_LOADS_ATF_BL31
137&binman {
138 fit {
139 images {
140 bl31 {
141 description = "ARM Trusted Firmware (bl31)";
142 type = "firmware";
143 arch = "arm";
144 os = "arm-trusted-firmware";
145 compression = "none";
146 load = <CONFIG_SL28_BL31_ENTRY_ADDR>;
147 entry = <CONFIG_SL28_BL31_ENTRY_ADDR>;
148
149 blob-ext {
150 filename = "bl31.bin";
151 };
152 };
153 };
154
155 configurations {
156 conf-1 {
157 firmware = "bl31";
158 loadables = "uboot";
159 };
160
161 conf-2 {
162 firmware = "bl31";
163 loadables = "uboot";
164 };
165
166 conf-3 {
167 firmware = "bl31";
168 loadables = "uboot";
169 };
Michael Walle0c16d232021-01-08 00:08:57 +0100170
171 conf-4 {
172 firmware = "bl31";
173 loadables = "uboot";
174 };
Michael Walleba3aa6b2021-01-08 00:08:58 +0100175
176 conf-5 {
177 firmware = "bl31";
178 loadables = "uboot";
179 };
Michael Wallef5253fb2020-11-18 17:46:01 +0100180 };
181 };
182};
183#endif
184
Michael Walle76427fb2020-11-18 17:46:02 +0100185#ifdef CONFIG_SL28_SPL_LOADS_OPTEE_BL32
186&binman {
187 fit {
188 images {
189 bl32 {
190 description = "OP-TEE Trusted OS (bl32)";
191 type = "firmware";
192 arch = "arm";
193 os = "tee";
194 compression = "none";
195 load = <CONFIG_SL28_BL32_ENTRY_ADDR>;
196 entry = <CONFIG_SL28_BL32_ENTRY_ADDR>;
197
198 blob-ext {
199 filename = "tee.bin";
200 };
201 };
202 };
203
204 configurations {
205 conf-1 {
206 loadables = "uboot", "bl32";
207 };
208
209 conf-2 {
210 loadables = "uboot", "bl32";
211 };
212
213 conf-3 {
214 loadables = "uboot", "bl32";
215 };
Michael Walle0c16d232021-01-08 00:08:57 +0100216
217 conf-4 {
218 loadables = "uboot", "bl32";
219 };
Michael Walleba3aa6b2021-01-08 00:08:58 +0100220
221 conf-5 {
222 loadables = "uboot", "bl32";
223 };
Michael Walle76427fb2020-11-18 17:46:02 +0100224 };
225 };
226};
227#endif
228
Michael Walle36ba7642020-10-15 23:08:57 +0200229&i2c0 {
230 rtc: rtc@32 {
231 };
232};
233
234&fspi {
235 u-boot,dm-pre-reloc;
236 flash@0 {
237 u-boot,dm-pre-reloc;
238 };
239};
240
241&dspi2 {
242 u-boot,dm-pre-reloc;
243};
244
245&esdhc0 {
246 u-boot,dm-pre-reloc;
247};
248
249&esdhc1 {
250 u-boot,dm-pre-reloc;
251};
252
253&serial0 {
254 u-boot,dm-pre-reloc;
255};
256
257&sysclk {
258 u-boot,dm-pre-reloc;
259};