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