blob: 585753c14d196f511be0e0e8b591eef3e2f47751 [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 Walle36ba7642020-10-15 23:08:57 +020064 description = "fsl-ls1028a-kontron-sl28-var3";
65 type = "flat_dt";
66 arch = "arm";
67 compression = "none";
68
69 blob {
70 filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28-var3.dtb";
71 };
72 };
73
Michael Walle0c16d232021-01-08 00:08:57 +010074 fdt-4 {
Michael Walle36ba7642020-10-15 23:08:57 +020075 description = "fsl-ls1028a-kontron-sl28-var4";
76 type = "flat_dt";
77 arch = "arm";
78 compression = "none";
79
80 blob {
81 filename = "arch/arm/dts/fsl-ls1028a-kontron-sl28-var4.dtb";
82 };
83 };
84 };
85
86 configurations {
87 default = "conf-1";
88
89 conf-1 {
90 description = "fsl-ls1028a-kontron-sl28";
91 firmware = "uboot";
Michael Walle36ba7642020-10-15 23:08:57 +020092 fdt = "fdt-1";
93 };
94
95 conf-2 {
Michael Walle0c16d232021-01-08 00:08:57 +010096 description = "fsl-ls1028a-kontron-sl28-var1";
Michael Walle36ba7642020-10-15 23:08:57 +020097 firmware = "uboot";
Michael Walle36ba7642020-10-15 23:08:57 +020098 fdt = "fdt-2";
99 };
100
101 conf-3 {
Michael Walle0c16d232021-01-08 00:08:57 +0100102 description = "fsl-ls1028a-kontron-sl28-var3";
Michael Walle36ba7642020-10-15 23:08:57 +0200103 firmware = "uboot";
Michael Walle36ba7642020-10-15 23:08:57 +0200104 fdt = "fdt-3";
105 };
Michael Walle0c16d232021-01-08 00:08:57 +0100106
107 conf-4 {
108 description = "fsl-ls1028a-kontron-sl28-var4";
109 firmware = "uboot";
110 loadables = "uboot";
111 fdt = "fdt-4";
112 };
Michael Walle36ba7642020-10-15 23:08:57 +0200113 };
114 };
115 };
116};
117
Michael Wallef5253fb2020-11-18 17:46:01 +0100118#ifdef CONFIG_SL28_SPL_LOADS_ATF_BL31
119&binman {
120 fit {
121 images {
122 bl31 {
123 description = "ARM Trusted Firmware (bl31)";
124 type = "firmware";
125 arch = "arm";
126 os = "arm-trusted-firmware";
127 compression = "none";
128 load = <CONFIG_SL28_BL31_ENTRY_ADDR>;
129 entry = <CONFIG_SL28_BL31_ENTRY_ADDR>;
130
131 blob-ext {
132 filename = "bl31.bin";
133 };
134 };
135 };
136
137 configurations {
138 conf-1 {
139 firmware = "bl31";
140 loadables = "uboot";
141 };
142
143 conf-2 {
144 firmware = "bl31";
145 loadables = "uboot";
146 };
147
148 conf-3 {
149 firmware = "bl31";
150 loadables = "uboot";
151 };
Michael Walle0c16d232021-01-08 00:08:57 +0100152
153 conf-4 {
154 firmware = "bl31";
155 loadables = "uboot";
156 };
Michael Wallef5253fb2020-11-18 17:46:01 +0100157 };
158 };
159};
160#endif
161
Michael Walle76427fb2020-11-18 17:46:02 +0100162#ifdef CONFIG_SL28_SPL_LOADS_OPTEE_BL32
163&binman {
164 fit {
165 images {
166 bl32 {
167 description = "OP-TEE Trusted OS (bl32)";
168 type = "firmware";
169 arch = "arm";
170 os = "tee";
171 compression = "none";
172 load = <CONFIG_SL28_BL32_ENTRY_ADDR>;
173 entry = <CONFIG_SL28_BL32_ENTRY_ADDR>;
174
175 blob-ext {
176 filename = "tee.bin";
177 };
178 };
179 };
180
181 configurations {
182 conf-1 {
183 loadables = "uboot", "bl32";
184 };
185
186 conf-2 {
187 loadables = "uboot", "bl32";
188 };
189
190 conf-3 {
191 loadables = "uboot", "bl32";
192 };
Michael Walle0c16d232021-01-08 00:08:57 +0100193
194 conf-4 {
195 loadables = "uboot", "bl32";
196 };
Michael Walle76427fb2020-11-18 17:46:02 +0100197 };
198 };
199};
200#endif
201
Michael Walle36ba7642020-10-15 23:08:57 +0200202&i2c0 {
203 rtc: rtc@32 {
204 };
205};
206
207&fspi {
208 u-boot,dm-pre-reloc;
209 flash@0 {
210 u-boot,dm-pre-reloc;
211 };
212};
213
214&dspi2 {
215 u-boot,dm-pre-reloc;
216};
217
218&esdhc0 {
219 u-boot,dm-pre-reloc;
220};
221
222&esdhc1 {
223 u-boot,dm-pre-reloc;
224};
225
226&serial0 {
227 u-boot,dm-pre-reloc;
228};
229
230&sysclk {
231 u-boot,dm-pre-reloc;
232};