]>
Commit | Line | Data |
---|---|---|
c1f09505 JT |
1 | // SPDX-License-Identifier: GPL-2.0+ |
2 | /* | |
3 | * Copyright (C) 2020 Jagan Teki <[email protected]> | |
4 | */ | |
5 | ||
7cf5597b MZ |
6 | / { |
7 | binman: binman { | |
7cf5597b | 8 | }; |
bb6a4c55 TH |
9 | |
10 | #ifdef CONFIG_OPTEE | |
11 | firmware { | |
12 | optee { | |
13 | compatible = "linaro,optee-tz"; | |
14 | method = "smc"; | |
15 | }; | |
16 | }; | |
17 | #endif | |
7cf5597b MZ |
18 | }; |
19 | ||
93cac45c TH |
20 | #ifdef CONFIG_FSL_CAAM |
21 | &crypto { | |
22 | bootph-pre-ram; | |
23 | }; | |
24 | #endif | |
25 | ||
dbd5ca2e | 26 | &soc { |
8c103c33 SG |
27 | bootph-all; |
28 | bootph-pre-ram; | |
c1f09505 JT |
29 | }; |
30 | ||
31 | &aips1 { | |
8c103c33 SG |
32 | bootph-all; |
33 | bootph-pre-ram; | |
c1f09505 JT |
34 | }; |
35 | ||
36 | &aips2 { | |
8c103c33 | 37 | bootph-pre-ram; |
c1f09505 JT |
38 | }; |
39 | ||
40 | &aips3 { | |
8c103c33 | 41 | bootph-pre-ram; |
c1f09505 JT |
42 | }; |
43 | ||
7cf5597b | 44 | &binman { |
37e50627 MV |
45 | filename = "flash.bin"; |
46 | section { | |
47 | pad-byte = <0x00>; | |
7cf5597b | 48 | |
37e50627 MV |
49 | #ifdef CONFIG_FSPI_CONF_HEADER |
50 | fspi_conf_block { | |
51 | filename = CONFIG_FSPI_CONF_FILE; | |
f17fb6ca | 52 | type = "blob-ext"; |
37e50627 | 53 | size = <0x1000>; |
7cf5597b | 54 | }; |
37e50627 | 55 | #endif |
7cf5597b | 56 | |
d415a48b MV |
57 | #ifdef CONFIG_IMX_HAB |
58 | nxp-imx8mcst@0 { | |
59 | filename = "u-boot-spl-mkimage.signed.bin"; | |
37e50627 | 60 | nxp,loader-address = <CONFIG_SPL_TEXT_BASE>; |
d415a48b | 61 | nxp,unlock; |
37e50627 | 62 | args; /* Needed by mkimage etype superclass */ |
d415a48b | 63 | #endif |
7cf5597b | 64 | |
d415a48b MV |
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 | }; | |
7cf5597b | 82 | |
d415a48b MV |
83 | ddr-1d-imem-fw { |
84 | filename = "lpddr4_pmu_train_1d_imem.bin"; | |
85 | align-end = <4>; | |
86 | type = "blob-ext"; | |
87 | }; | |
7cf5597b | 88 | |
d415a48b MV |
89 | ddr-1d-dmem-fw { |
90 | filename = "lpddr4_pmu_train_1d_dmem.bin"; | |
91 | align-end = <4>; | |
92 | type = "blob-ext"; | |
93 | }; | |
7cf5597b | 94 | |
d415a48b MV |
95 | ddr-2d-imem-fw { |
96 | filename = "lpddr4_pmu_train_2d_imem.bin"; | |
97 | align-end = <4>; | |
98 | type = "blob-ext"; | |
99 | }; | |
37e50627 | 100 | |
d415a48b MV |
101 | ddr-2d-dmem-fw { |
102 | filename = "lpddr4_pmu_train_2d_dmem.bin"; | |
103 | align-end = <4>; | |
104 | type = "blob-ext"; | |
105 | }; | |
37e50627 | 106 | }; |
7cf5597b | 107 | }; |
d415a48b | 108 | #ifdef CONFIG_IMX_HAB |
7cf5597b | 109 | }; |
7cf5597b | 110 | |
d415a48b MV |
111 | nxp-imx8mcst@1 { |
112 | filename = "u-boot-fit.signed.bin"; | |
113 | nxp,loader-address = <CONFIG_SPL_LOAD_FIT_ADDRESS>; | |
37e50627 MV |
114 | #ifdef CONFIG_FSPI_CONF_HEADER |
115 | offset = <0x58C00>; | |
116 | #else | |
117 | offset = <0x57c00>; | |
118 | #endif | |
7cf5597b | 119 | |
d415a48b MV |
120 | args; /* Needed by mkimage etype superclass */ |
121 | #endif | |
7cf5597b | 122 | |
d415a48b MV |
123 | binman_imx_fit: fit { |
124 | description = "Configuration to load ATF before U-Boot"; | |
be847faf | 125 | filename = "u-boot.itb"; |
d415a48b MV |
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 | }; | |
7cf5597b | 149 | }; |
7cf5597b | 150 | |
9694c053 | 151 | #ifndef CONFIG_ARMV8_PSCI |
d415a48b MV |
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 | }; | |
7cf5597b | 164 | }; |
9694c053 | 165 | #endif |
7cf5597b | 166 | |
252ad989 | 167 | #ifdef CONFIG_OPTEE |
01548390 YM |
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"; | |
01548390 YM |
179 | }; |
180 | }; | |
252ad989 | 181 | #endif |
01548390 | 182 | |
d415a48b MV |
183 | binman_fip: fip { |
184 | arch = "arm64"; | |
185 | compression = "none"; | |
186 | description = "Trusted Firmware FIP"; | |
187 | load = <0x40310000>; | |
188 | type = "firmware"; | |
189 | }; | |
7cf5597b | 190 | |
d415a48b MV |
191 | @fdt-SEQ { |
192 | compression = "none"; | |
193 | description = "NAME"; | |
194 | type = "flat_dt"; | |
7cf5597b | 195 | |
d415a48b MV |
196 | uboot-fdt-blob { |
197 | filename = "u-boot.dtb"; | |
198 | type = "blob-ext"; | |
199 | }; | |
7cf5597b MZ |
200 | }; |
201 | }; | |
7cf5597b | 202 | |
d415a48b MV |
203 | configurations { |
204 | default = "@config-DEFAULT-SEQ"; | |
7cf5597b | 205 | |
d415a48b MV |
206 | @config-SEQ { |
207 | description = "NAME"; | |
208 | fdt = "fdt-SEQ"; | |
209 | firmware = "uboot"; | |
9694c053 | 210 | #ifndef CONFIG_ARMV8_PSCI |
252ad989 | 211 | #ifdef CONFIG_OPTEE |
01548390 | 212 | loadables = "atf", "tee"; |
252ad989 FE |
213 | #else |
214 | loadables = "atf"; | |
215 | #endif | |
9694c053 | 216 | #endif |
d415a48b | 217 | }; |
7cf5597b MZ |
218 | }; |
219 | }; | |
d415a48b | 220 | #ifdef CONFIG_IMX_HAB |
7cf5597b | 221 | }; |
d415a48b | 222 | #endif |
7cf5597b | 223 | }; |
7cf5597b MZ |
224 | }; |
225 | ||
c1f09505 | 226 | &clk { |
8c103c33 SG |
227 | bootph-all; |
228 | bootph-pre-ram; | |
c1f09505 JT |
229 | /delete-property/ assigned-clocks; |
230 | /delete-property/ assigned-clock-parents; | |
231 | /delete-property/ assigned-clock-rates; | |
232 | }; | |
233 | ||
234 | &iomuxc { | |
8c103c33 | 235 | bootph-pre-ram; |
c1f09505 JT |
236 | }; |
237 | ||
238 | &osc_24m { | |
8c103c33 SG |
239 | bootph-all; |
240 | bootph-pre-ram; | |
c1f09505 | 241 | }; |
24a7a3c1 | 242 | |
93cac45c TH |
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 | ||
24a7a3c1 | 257 | &spba1 { |
8c103c33 SG |
258 | bootph-all; |
259 | bootph-pre-ram; | |
24a7a3c1 MZ |
260 | }; |
261 | ||
262 | &spba2 { | |
8c103c33 SG |
263 | bootph-all; |
264 | bootph-pre-ram; | |
24a7a3c1 | 265 | }; |