1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright 2021 NXP
4 */
5
6/ {
7	binman: binman {
8		multiple-images;
9	};
10
11};
12
13&soc {
14	bootph-pre-ram;
15};
16
17&aips1 {
18	bootph-pre-ram;
19};
20
21&aips2 {
22	bootph-pre-ram;
23};
24
25&aips3 {
26	bootph-pre-ram;
27};
28
29&aips4 {
30	bootph-pre-ram;
31};
32
33&iomuxc {
34	bootph-pre-ram;
35};
36
37&binman {
38	u-boot-spl-ddr {
39		align = <4>;
40		align-size = <4>;
41		filename = "u-boot-spl-ddr.bin";
42		pad-byte = <0xff>;
43
44		u-boot-spl {
45			align-end = <4>;
46			filename = "u-boot-spl.bin";
47		};
48
49		ddr-1d-imem-fw {
50			filename = "lpddr4_pmu_train_1d_imem.bin";
51			align-end = <4>;
52			type = "blob-ext";
53		};
54
55		ddr-1d-dmem-fw {
56			filename = "lpddr4_pmu_train_1d_dmem.bin";
57			align-end = <4>;
58			type = "blob-ext";
59		};
60
61		ddr-2d-imem-fw {
62			filename = "lpddr4_pmu_train_2d_imem.bin";
63			align-end = <4>;
64			type = "blob-ext";
65		};
66
67		ddr-2d-dmem-fw {
68			filename = "lpddr4_pmu_train_2d_dmem.bin";
69			align-end = <4>;
70			type = "blob-ext";
71		};
72	};
73
74	signed-hdmi {
75		filename = "signed_hdmi.bin";
76
77		signed-hdmi-imx8m {
78			filename = "signed_hdmi_imx8m.bin";
79			type = "blob-ext";
80		};
81	};
82
83	spl {
84		filename = "spl.bin";
85
86		mkimage {
87			args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x7e1000";
88
89			blob {
90				filename = "u-boot-spl-ddr.bin";
91			};
92		};
93	};
94
95	itb {
96		filename = "u-boot.itb";
97
98		fit {
99			description = "Configuration to load ATF before U-Boot";
100#ifndef CONFIG_IMX_HAB
101			fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
102#endif
103			#address-cells = <1>;
104
105			images {
106				uboot {
107					arch = "arm64";
108					compression = "none";
109					description = "U-Boot (64-bit)";
110					load = <CONFIG_TEXT_BASE>;
111					type = "standalone";
112
113					uboot-blob {
114						filename = "u-boot-nodtb.bin";
115						type = "blob-ext";
116					};
117				};
118
119#ifndef CONFIG_ARMV8_PSCI
120				atf {
121					arch = "arm64";
122					compression = "none";
123					description = "ARM Trusted Firmware";
124					entry = <0x910000>;
125					load = <0x910000>;
126					type = "firmware";
127
128					atf-blob {
129						filename = "bl31.bin";
130						type = "blob-ext";
131					};
132				};
133#endif
134
135				fdt {
136					compression = "none";
137					description = "NAME";
138					type = "flat_dt";
139
140					uboot-fdt-blob {
141						filename = "u-boot.dtb";
142						type = "blob-ext";
143					};
144				};
145			};
146
147			configurations {
148				default = "conf";
149
150				conf {
151					description = "NAME";
152					fdt = "fdt";
153					firmware = "uboot";
154#ifndef CONFIG_ARMV8_PSCI
155					loadables = "atf";
156#endif
157				};
158			};
159		};
160	};
161
162	imx-boot {
163		filename = "flash.bin";
164		pad-byte = <0x00>;
165
166		spl {
167			filename = "spl.bin";
168			offset = <0x0>;
169			type = "blob-ext";
170		};
171
172		binman_uboot: uboot {
173			filename = "u-boot.itb";
174			offset = <0x57c00>;
175			type = "blob-ext";
176		};
177	};
178};
179