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_ENABLE_SER0_CONSOLE
137/ {
138	chosen {
139		stdout-path = "serial2:115200n8";
140	};
141};
142#endif
143
144#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			};
178
179			conf-4 {
180				firmware = "bl31";
181				loadables = "uboot";
182			};
183
184			conf-5 {
185				firmware = "bl31";
186				loadables = "uboot";
187			};
188		};
189	};
190};
191#endif
192
193#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			};
224
225			conf-4 {
226				loadables = "uboot", "bl32";
227			};
228
229			conf-5 {
230				loadables = "uboot", "bl32";
231			};
232		};
233	};
234};
235#endif
236
237&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
261&lpuart1 {
262	u-boot,dm-pre-reloc;
263};
264
265&serial0 {
266	u-boot,dm-pre-reloc;
267};
268
269&sysclk {
270	u-boot,dm-pre-reloc;
271};
272