]> Git Repo - J-u-boot.git/blob - arch/arm/dts/imx8mm-u-boot.dtsi
Merge tag 'u-boot-imx-master-20250127' of https://gitlab.denx.de/u-boot/custodians...
[J-u-boot.git] / arch / arm / dts / imx8mm-u-boot.dtsi
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (C) 2020 Jagan Teki <[email protected]>
4  */
5
6 / {
7         binman: binman {
8         };
9
10 #ifdef CONFIG_OPTEE
11         firmware {
12                 optee {
13                         compatible = "linaro,optee-tz";
14                         method = "smc";
15                 };
16         };
17 #endif
18 };
19
20 #ifdef CONFIG_FSL_CAAM
21 &crypto {
22         bootph-pre-ram;
23 };
24 #endif
25
26 &soc {
27         bootph-all;
28         bootph-pre-ram;
29 };
30
31 &aips1 {
32         bootph-all;
33         bootph-pre-ram;
34 };
35
36 &aips2 {
37         bootph-pre-ram;
38 };
39
40 &aips3 {
41         bootph-pre-ram;
42 };
43
44 &binman {
45         filename = "flash.bin";
46         section {
47                 pad-byte = <0x00>;
48
49 #ifdef CONFIG_FSPI_CONF_HEADER
50                 fspi_conf_block {
51                         filename = CONFIG_FSPI_CONF_FILE;
52                         type = "blob-ext";
53                         size = <0x1000>;
54                 };
55 #endif
56
57 #ifdef CONFIG_IMX_HAB
58                 nxp-imx8mcst@0 {
59                         filename = "u-boot-spl-mkimage.signed.bin";
60                         nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
61                         nxp,unlock;
62                         args;   /* Needed by mkimage etype superclass */
63 #endif
64
65                         binman_imx_spl: nxp-imx8mimage {
66                                 filename = "u-boot-spl-mkimage.bin";
67                                 nxp,boot-from = "sd";
68                                 nxp,rom-version = <1>;
69                                 nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
70                                 args;   /* Needed by mkimage etype superclass */
71
72                                 section {
73                                         align = <4>;
74                                         align-size = <4>;
75                                         filename = "u-boot-spl-ddr.bin";
76                                         pad-byte = <0xff>;
77
78                                         u-boot-spl {
79                                                 align-end = <4>;
80                                                 filename = "u-boot-spl.bin";
81                                         };
82
83                                         ddr-1d-imem-fw {
84                                                 filename = "lpddr4_pmu_train_1d_imem.bin";
85                                                 align-end = <4>;
86                                                 type = "blob-ext";
87                                         };
88
89                                         ddr-1d-dmem-fw {
90                                                 filename = "lpddr4_pmu_train_1d_dmem.bin";
91                                                 align-end = <4>;
92                                                 type = "blob-ext";
93                                         };
94
95                                         ddr-2d-imem-fw {
96                                                 filename = "lpddr4_pmu_train_2d_imem.bin";
97                                                 align-end = <4>;
98                                                 type = "blob-ext";
99                                         };
100
101                                         ddr-2d-dmem-fw {
102                                                 filename = "lpddr4_pmu_train_2d_dmem.bin";
103                                                 align-end = <4>;
104                                                 type = "blob-ext";
105                                         };
106                                 };
107                         };
108 #ifdef CONFIG_IMX_HAB
109                 };
110
111                 nxp-imx8mcst@1 {
112                         filename = "u-boot-fit.signed.bin";
113                         nxp,loader-address = <CONFIG_SPL_LOAD_FIT_ADDRESS>;
114 #ifdef CONFIG_FSPI_CONF_HEADER
115                         offset = <0x58C00>;
116 #else
117                         offset = <0x57c00>;
118 #endif
119
120                         args;   /* Needed by mkimage etype superclass */
121 #endif
122
123                         binman_imx_fit: fit {
124                                 description = "Configuration to load ATF before U-Boot";
125                                 filename = "u-boot.itb";
126 #ifndef CONFIG_IMX_HAB
127                                 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
128 #endif
129                                 fit,fdt-list = "of-list";
130                                 #address-cells = <1>;
131 #ifdef CONFIG_FSPI_CONF_HEADER
132                                 offset = <0x58C00>;
133 #else
134                                 offset = <0x57c00>;
135 #endif
136
137                                 images {
138                                         uboot {
139                                                 arch = "arm64";
140                                                 compression = "none";
141                                                 description = "U-Boot (64-bit)";
142                                                 load = <CONFIG_TEXT_BASE>;
143                                                 type = "standalone";
144
145                                                 uboot-blob {
146                                                         filename = "u-boot-nodtb.bin";
147                                                         type = "blob-ext";
148                                                 };
149                                         };
150
151 #ifndef CONFIG_ARMV8_PSCI
152                                         atf {
153                                                 arch = "arm64";
154                                                 compression = "none";
155                                                 description = "ARM Trusted Firmware";
156                                                 entry = <0x920000>;
157                                                 load = <0x920000>;
158                                                 type = "firmware";
159
160                                                 atf-blob {
161                                                         filename = "bl31.bin";
162                                                         type = "atf-bl31";
163                                                 };
164                                         };
165 #endif
166
167 #ifdef CONFIG_OPTEE
168                                         tee: tee {
169                                                 description = "OP-TEE";
170                                                 type = "tee";
171                                                 arch = "arm64";
172                                                 compression = "none";
173                                                 os = "tee";
174                                                 load = <CONFIG_IMX8M_OPTEE_LOAD_ADDR>;
175                                                 entry = <CONFIG_IMX8M_OPTEE_LOAD_ADDR>;
176
177                                                 tee-os {
178                                                         filename = "tee.bin";
179                                                 };
180                                         };
181 #endif
182
183                                         binman_fip: fip {
184                                                 arch = "arm64";
185                                                 compression = "none";
186                                                 description = "Trusted Firmware FIP";
187                                                 load = <0x40310000>;
188                                                 type = "firmware";
189                                         };
190
191                                         @fdt-SEQ {
192                                                 compression = "none";
193                                                 description = "NAME";
194                                                 type = "flat_dt";
195
196                                                 uboot-fdt-blob {
197                                                         filename = "u-boot.dtb";
198                                                         type = "blob-ext";
199                                                 };
200                                         };
201                                 };
202
203                                 configurations {
204                                         default = "@config-DEFAULT-SEQ";
205
206                                         @config-SEQ {
207                                                 description = "NAME";
208                                                 fdt = "fdt-SEQ";
209                                                 firmware = "uboot";
210 #ifndef CONFIG_ARMV8_PSCI
211 #ifdef CONFIG_OPTEE
212                                                 loadables = "atf", "tee";
213 #else
214                                                 loadables = "atf";
215 #endif
216 #endif
217                                         };
218                                 };
219                         };
220 #ifdef CONFIG_IMX_HAB
221                 };
222 #endif
223         };
224 };
225
226 &clk {
227         bootph-all;
228         bootph-pre-ram;
229         /delete-property/ assigned-clocks;
230         /delete-property/ assigned-clock-parents;
231         /delete-property/ assigned-clock-rates;
232 };
233
234 &iomuxc {
235         bootph-pre-ram;
236 };
237
238 &osc_24m {
239         bootph-all;
240         bootph-pre-ram;
241 };
242
243 #ifdef CONFIG_FSL_CAAM
244 &sec_jr0 {
245         bootph-pre-ram;
246 };
247
248 &sec_jr1 {
249         bootph-pre-ram;
250 };
251
252 &sec_jr2 {
253         bootph-pre-ram;
254 };
255 #endif
256
257 &spba1 {
258         bootph-all;
259         bootph-pre-ram;
260 };
261
262 &spba2 {
263         bootph-all;
264         bootph-pre-ram;
265 };
This page took 0.043171 seconds and 4 git commands to generate.