blob: ec53390afb30f79b0c12189af1a6fc8d13cc7c2b [file] [log] [blame]
Adam Ford2d9310b2022-10-21 19:58:31 -05001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright 2022 Logic PD, Inc dba Beacon EmbeddedWorks
4 */
5
6/ {
7 binman: binman {
8 multiple-images;
9 };
10
11 firmware {
12 optee {
13 compatible = "linaro,optee-tz";
14 method = "smc";
15 };
16 };
17
18 wdt-reboot {
19 compatible = "wdt-reboot";
20 wdt = <&wdog1>;
21 u-boot,dm-spl;
22 };
23};
24
25&{/soc@0} {
26 u-boot,dm-pre-reloc;
27 u-boot,dm-spl;
28};
29
30&aips1 {
31 u-boot,dm-spl;
32 u-boot,dm-pre-reloc;
33};
34
35&aips2 {
36 u-boot,dm-spl;
37};
38
39&aips3 {
40 u-boot,dm-spl;
41};
42
43&aips4 {
44 u-boot,dm-spl;
45};
46
47&clk {
48 u-boot,dm-spl;
49 u-boot,dm-pre-reloc;
50 /delete-property/ assigned-clocks;
51 /delete-property/ assigned-clock-parents;
52 /delete-property/ assigned-clock-rates;
53};
54
55&iomuxc {
56 u-boot,dm-spl;
57};
58
59&osc_24m {
60 u-boot,dm-spl;
61 u-boot,dm-pre-reloc;
62};
63
64&spba1 {
65 u-boot,dm-spl;
66};
67
68&wdog1 {
69 u-boot,dm-spl;
70};
71
72&binman {
73 u-boot-spl-ddr {
74 filename = "u-boot-spl-ddr.bin";
75 pad-byte = <0xff>;
76 align-size = <4>;
77 align = <4>;
78
79 u-boot-spl {
80 align-end = <4>;
81 filename = "u-boot-spl.bin";
82 };
83
84 ddr-1d-imem-fw {
85#ifdef CONFIG_IMX8M_LPDDR4
86 filename = "lpddr4_pmu_train_1d_imem.bin";
87#elif CONFIG_IMX8M_DDR4
88 filename = "ddr4_imem_1d.bin";
89#else
90 filename = "ddr3_imem_1d.bin";
91#endif
92 type = "blob-ext";
93 align-end = <4>;
94 };
95
96 ddr-1d-dmem-fw {
97#ifdef CONFIG_IMX8M_LPDDR4
98 filename = "lpddr4_pmu_train_1d_dmem.bin";
99#elif CONFIG_IMX8M_DDR4
100 filename = "ddr4_dmem_1d.bin";
101#else
102 filename = "ddr3_dmem_1d.bin";
103#endif
104 type = "blob-ext";
105 align-end = <4>;
106 };
107
Dario Binacchi39ae8202023-01-28 17:04:04 +0100108#if defined(CONFIG_IMX8M_LPDDR4) || defined(CONFIG_IMX8M_DDR4)
Adam Ford2d9310b2022-10-21 19:58:31 -0500109 ddr-2d-imem-fw {
110#ifdef CONFIG_IMX8M_LPDDR4
111 filename = "lpddr4_pmu_train_2d_imem.bin";
Dario Binacchi39ae8202023-01-28 17:04:04 +0100112#else
Adam Ford2d9310b2022-10-21 19:58:31 -0500113 filename = "ddr4_imem_2d.bin";
114#endif
115 type = "blob-ext";
116 align-end = <4>;
117 };
118
119 ddr-2d-dmem-fw {
120#ifdef CONFIG_IMX8M_LPDDR4
121 filename = "lpddr4_pmu_train_2d_dmem.bin";
Dario Binacchi39ae8202023-01-28 17:04:04 +0100122#else
Adam Ford2d9310b2022-10-21 19:58:31 -0500123 filename = "ddr4_dmem_2d.bin";
124#endif
125 type = "blob-ext";
126 align-end = <4>;
127 };
Dario Binacchi39ae8202023-01-28 17:04:04 +0100128#endif
Adam Ford2d9310b2022-10-21 19:58:31 -0500129 };
130
131 spl {
132 filename = "spl.bin";
133
134 mkimage {
135 args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x912000";
136
137 blob {
138 filename = "u-boot-spl-ddr.bin";
139 };
140 };
141 };
142
143 itb {
144 filename = "u-boot.itb";
145
146 fit {
147 description = "Configuration to load ATF before U-Boot";
148 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
149 fit,fdt-list = "of-list";
150 #address-cells = <1>;
151
152 images {
153 uboot {
154 arch = "arm64";
155 compression = "none";
156 description = "U-Boot (64-bit)";
Simon Glass72cc5382022-10-20 18:22:39 -0600157 load = <CONFIG_TEXT_BASE>;
Adam Ford2d9310b2022-10-21 19:58:31 -0500158 type = "standalone";
159
160 uboot-blob {
161 filename = "u-boot-nodtb.bin";
162 type = "blob-ext";
163 };
164 };
165
166 atf {
167 arch = "arm64";
168 compression = "none";
169 description = "ARM Trusted Firmware";
170 entry = <0x960000>;
171 load = <0x960000>;
172 type = "firmware";
173
174 atf-blob {
175 filename = "bl31.bin";
176 type = "atf-bl31";
177 };
178 };
179
180 binman_fip: fip {
181 arch = "arm64";
182 compression = "none";
183 description = "Trusted Firmware FIP";
184 load = <0x40310000>;
185 type = "firmware";
186 };
187
188 @fdt-SEQ {
189 compression = "none";
190 description = "NAME";
191 type = "flat_dt";
192
193 uboot-fdt-blob {
194 filename = "u-boot.dtb";
195 type = "blob-ext";
196 };
197 };
198 };
199
200 configurations {
201 default = "@config-DEFAULT-SEQ";
202
203 binman_configuration: @config-SEQ {
204 description = "NAME";
205 fdt = "fdt-SEQ";
206 firmware = "uboot";
207 loadables = "atf";
208 };
209 };
210 };
211 };
212
213 imx-boot {
214 filename = "flash.bin";
215 pad-byte = <0x00>;
216
217#ifdef CONFIG_FSPI_CONF_HEADER
218 fspi_conf_block {
219 filename = CONFIG_FSPI_CONF_FILE;
220 type = "blob-ext";
221 offset = <0x400>;
222 };
223
224 spl {
225 filename = "spl.bin";
226 offset = <0x1000>;
227 type = "blob-ext";
228 };
229
230 binman_uboot: uboot {
231 filename = "u-boot.itb";
232 offset = <0x59000>;
233 type = "blob-ext";
234 };
235#else
236
237 spl {
238 offset = <0x0>;
239 filename = "spl.bin";
240 type = "blob-ext";
241 };
242
243 binman_uboot: uboot {
244 offset = <0x58000>;
245 filename = "u-boot.itb";
246 type = "blob-ext";
247 };
248#endif
249 };
250};