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       flash {
154		mkimage {
155			args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x7e1000";
156
157			blob {
158				filename = "u-boot-spl-ddr.bin";
159			};
160		};
161	};
162
163	itb {
164		filename = "u-boot.itb";
165
166		fit {
167			description = "Configuration to load ATF before U-Boot";
168			#address-cells = <1>;
169			fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
170
171			images {
172				uboot {
173					description = "U-Boot (64-bit)";
174					type = "standalone";
175					arch = "arm64";
176					compression = "none";
177					load = <CONFIG_SYS_TEXT_BASE>;
178
179					uboot_blob: blob-ext {
180						filename = "u-boot-nodtb.bin";
181					};
182				};
183
184				atf {
185					description = "ARM Trusted Firmware";
186					type = "firmware";
187					arch = "arm64";
188					compression = "none";
189					load = <0x920000>;
190					entry = <0x920000>;
191
192					atf_blob: blob-ext {
193						filename = "bl31.bin";
194					};
195				};
196
197				fdt {
198					description = "NAME";
199					type = "flat_dt";
200					compression = "none";
201
202					uboot_fdt_blob: blob-ext {
203						filename = "u-boot.dtb";
204					};
205				};
206			};
207
208			configurations {
209				default = "conf";
210
211				conf {
212					description = "NAME";
213					firmware = "uboot";
214					loadables = "atf";
215					fdt = "fdt";
216				};
217			};
218		};
219	};
220};
221