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