1// SPDX-License-Identifier: GPL-2.0+
2
3#include <config.h>
4
5/ {
6	aliases {
7		mmc0 = &esdhc1;
8		mmc1 = &esdhc0;
9		i2c0 = &i2c0;
10		i2c1 = &i2c3;
11		i2c2 = &i2c4;
12		rtc0 = &rtc;
13		ethernet2 = &enetc2;
14		ethernet3 = &enetc6;
15	};
16
17	binman: binman {
18		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 {
53					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 {
64					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 {
75					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
85				fdt-5 {
86					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";
103					fdt = "fdt-1";
104				};
105
106				conf-2 {
107					description = "fsl-ls1028a-kontron-sl28-var1";
108					firmware = "uboot";
109					fdt = "fdt-2";
110				};
111
112				conf-3 {
113					description = "fsl-ls1028a-kontron-sl28-var2";
114					firmware = "uboot";
115					fdt = "fdt-3";
116				};
117
118				conf-4 {
119					description = "fsl-ls1028a-kontron-sl28-var3";
120					firmware = "uboot";
121					loadables = "uboot";
122					fdt = "fdt-4";
123				};
124
125				conf-5 {
126					description = "fsl-ls1028a-kontron-sl28-var4";
127					firmware = "uboot";
128					loadables = "uboot";
129					fdt = "fdt-5";
130				};
131			};
132		};
133	};
134};
135
136#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			};
170
171			conf-4 {
172				firmware = "bl31";
173				loadables = "uboot";
174			};
175
176			conf-5 {
177				firmware = "bl31";
178				loadables = "uboot";
179			};
180		};
181	};
182};
183#endif
184
185#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			};
216
217			conf-4 {
218				loadables = "uboot", "bl32";
219			};
220
221			conf-5 {
222				loadables = "uboot", "bl32";
223			};
224		};
225	};
226};
227#endif
228
229&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};
260