1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright 2019 NXP
4 */
5
6#include "imx8mm-u-boot.dtsi"
7
8/ {
9	binman: binman {
10		multiple-images;
11	};
12
13	wdt-reboot {
14		compatible = "wdt-reboot";
15		wdt = <&wdog1>;
16		u-boot,dm-spl;
17	};
18
19	firmware {
20		optee {
21			compatible = "linaro,optee-tz";
22			method = "smc";
23		};
24	};
25};
26
27&reg_usdhc2_vmmc {
28	u-boot,off-on-delay-us = <20000>;
29};
30
31&pinctrl_reg_usdhc2_vmmc {
32	u-boot,dm-spl;
33};
34
35&pinctrl_uart2 {
36	u-boot,dm-spl;
37};
38
39&pinctrl_usdhc2_gpio {
40	u-boot,dm-spl;
41};
42
43&pinctrl_usdhc2 {
44	u-boot,dm-spl;
45};
46
47&pinctrl_usdhc3 {
48	u-boot,dm-spl;
49};
50
51&gpio1 {
52	u-boot,dm-spl;
53};
54
55&gpio2 {
56	u-boot,dm-spl;
57};
58
59&gpio3 {
60	u-boot,dm-spl;
61};
62
63&gpio4 {
64	u-boot,dm-spl;
65};
66
67&gpio5 {
68	u-boot,dm-spl;
69};
70
71&uart2 {
72	u-boot,dm-spl;
73};
74
75&usdhc1 {
76	u-boot,dm-spl;
77};
78
79&usdhc2 {
80	u-boot,dm-spl;
81	sd-uhs-sdr104;
82	sd-uhs-ddr50;
83	fsl,signal-voltage-switch-extra-delay-ms = <8>;
84};
85
86&usdhc3 {
87	u-boot,dm-spl;
88	mmc-hs400-1_8v;
89	mmc-hs400-enhanced-strobe;
90};
91
92&i2c1 {
93	u-boot,dm-spl;
94};
95
96&{/soc@0/bus@30800000/i2c@30a20000/pca9450@25} {
97	u-boot,dm-spl;
98};
99
100&{/soc@0/bus@30800000/i2c@30a20000/pca9450@25/regulators} {
101	u-boot,dm-spl;
102};
103
104&pinctrl_i2c1 {
105	u-boot,dm-spl;
106};
107
108&pinctrl_pmic {
109	u-boot,dm-spl;
110};
111
112&fec1 {
113	phy-reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
114};
115
116&wdog1 {
117	u-boot,dm-spl;
118};
119
120&binman {
121	 u-boot-spl-ddr {
122		filename = "u-boot-spl-ddr.bin";
123		pad-byte = <0xff>;
124		align-size = <4>;
125		align = <4>;
126
127		u-boot-spl {
128			align-end = <4>;
129		};
130
131		blob_1: blob-ext@1 {
132			filename = "lpddr4_pmu_train_1d_imem.bin";
133			size = <0x8000>;
134		};
135
136		blob_2: blob-ext@2 {
137			filename = "lpddr4_pmu_train_1d_dmem.bin";
138			size = <0x4000>;
139		};
140
141		blob_3: blob-ext@3 {
142			filename = "lpddr4_pmu_train_2d_imem.bin";
143			size = <0x8000>;
144		};
145
146		blob_4: blob-ext@4 {
147			filename = "lpddr4_pmu_train_2d_dmem.bin";
148			size = <0x4000>;
149		};
150	};
151
152
153	spl {
154		filename = "spl.bin";
155
156		mkimage {
157			args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x7e1000";
158
159			blob {
160				filename = "u-boot-spl-ddr.bin";
161			};
162		};
163	};
164
165	itb {
166		filename = "u-boot.itb";
167
168		fit {
169			description = "Configuration to load ATF before U-Boot";
170			#address-cells = <1>;
171			fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
172
173			images {
174				uboot {
175					description = "U-Boot (64-bit)";
176					type = "standalone";
177					arch = "arm64";
178					compression = "none";
179					load = <CONFIG_SYS_TEXT_BASE>;
180
181					uboot_blob: blob-ext {
182						filename = "u-boot-nodtb.bin";
183					};
184				};
185
186				atf {
187					description = "ARM Trusted Firmware";
188					type = "firmware";
189					arch = "arm64";
190					compression = "none";
191					load = <0x920000>;
192					entry = <0x920000>;
193
194					atf_blob: blob-ext {
195						filename = "bl31.bin";
196					};
197				};
198
199				fdt {
200					description = "NAME";
201					type = "flat_dt";
202					compression = "none";
203
204					uboot_fdt_blob: blob-ext {
205						filename = "u-boot.dtb";
206					};
207				};
208			};
209
210			configurations {
211				default = "conf";
212
213				conf {
214					description = "NAME";
215					firmware = "uboot";
216					loadables = "atf";
217					fdt = "fdt";
218				};
219			};
220		};
221	};
222
223	imx-boot {
224		filename = "flash.bin";
225		pad-byte = <0x00>;
226
227		spl: blob-ext@1 {
228			offset = <0x0>;
229			filename = "spl.bin";
230		};
231
232		uboot: blob-ext@2 {
233			offset = <0x57c00>;
234			filename = "u-boot.itb";
235		};
236	};
237};
238