blob: c02e11def5fd0fc3c8c49b6950b09e943eb8bd89 [file] [log] [blame]
Jagan Teki73d51182021-04-26 18:23:46 +05301// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2020 Jagan Teki <jagan@amarulasolutions.com>
4 */
5
Marcel Ziswilerd56d1172021-10-23 01:15:13 +02006/ {
7 binman: binman {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +02008 };
Tim Harveyb34f5a12023-08-24 12:01:42 -07009
10#ifdef CONFIG_OPTEE
11 firmware {
12 optee {
13 compatible = "linaro,optee-tz";
14 method = "smc";
15 };
16 };
17#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020018};
19
Tim Harvey0951b9a2023-08-24 12:03:56 -070020#ifdef CONFIG_FSL_CAAM
21&crypto {
22 bootph-pre-ram;
23};
24#endif
25
Marcel Ziswiler6dd051a2022-11-07 22:22:41 +010026&soc {
Simon Glassd3a98cb2023-02-13 08:56:33 -070027 bootph-all;
28 bootph-pre-ram;
Jagan Teki73d51182021-04-26 18:23:46 +053029};
30
31&aips1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070032 bootph-all;
33 bootph-pre-ram;
Jagan Teki73d51182021-04-26 18:23:46 +053034};
35
36&aips2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070037 bootph-pre-ram;
Jagan Teki73d51182021-04-26 18:23:46 +053038};
39
40&aips3 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070041 bootph-pre-ram;
Jagan Teki73d51182021-04-26 18:23:46 +053042};
43
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020044&binman {
Marek Vasutf44c7382024-04-26 01:00:37 +020045 filename = "flash.bin";
46 section {
47 pad-byte = <0x00>;
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020048
Marek Vasutf44c7382024-04-26 01:00:37 +020049#ifdef CONFIG_FSPI_CONF_HEADER
50 fspi_conf_block {
51 filename = CONFIG_FSPI_CONF_FILE;
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +020052 type = "blob-ext";
Marek Vasutf44c7382024-04-26 01:00:37 +020053 size = <0x1000>;
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020054 };
Marek Vasutf44c7382024-04-26 01:00:37 +020055#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020056
Marek Vasutfd5c8842024-05-21 12:48:25 +020057#ifdef CONFIG_IMX_HAB
58 nxp-imx8mcst@0 {
59 filename = "u-boot-spl-mkimage.signed.bin";
Marek Vasutf44c7382024-04-26 01:00:37 +020060 nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
Marek Vasutfd5c8842024-05-21 12:48:25 +020061 nxp,unlock;
Marek Vasutf44c7382024-04-26 01:00:37 +020062 args; /* Needed by mkimage etype superclass */
Marek Vasutfd5c8842024-05-21 12:48:25 +020063#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020064
Marek Vasutfd5c8842024-05-21 12:48:25 +020065 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 */
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020071
Marek Vasutfd5c8842024-05-21 12:48:25 +020072 section {
73 align = <4>;
74 align-size = <4>;
75 filename = "u-boot-spl-ddr.bin";
76 pad-byte = <0xff>;
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020077
Marek Vasutfd5c8842024-05-21 12:48:25 +020078 u-boot-spl {
79 align-end = <4>;
80 filename = "u-boot-spl.bin";
81 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020082
Marek Vasutfd5c8842024-05-21 12:48:25 +020083 ddr-1d-imem-fw {
84 filename = "lpddr4_pmu_train_1d_imem.bin";
85 align-end = <4>;
86 type = "blob-ext";
87 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020088
Marek Vasutfd5c8842024-05-21 12:48:25 +020089 ddr-1d-dmem-fw {
90 filename = "lpddr4_pmu_train_1d_dmem.bin";
91 align-end = <4>;
92 type = "blob-ext";
93 };
Marek Vasutf44c7382024-04-26 01:00:37 +020094
Marek Vasutfd5c8842024-05-21 12:48:25 +020095 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 };
Marek Vasutf44c7382024-04-26 01:00:37 +0200106 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200107 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200108#ifdef CONFIG_IMX_HAB
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200109 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200110
Marek Vasutfd5c8842024-05-21 12:48:25 +0200111 nxp-imx8mcst@1 {
112 filename = "u-boot-fit.signed.bin";
113 nxp,loader-address = <CONFIG_SPL_LOAD_FIT_ADDRESS>;
Marek Vasutf44c7382024-04-26 01:00:37 +0200114#ifdef CONFIG_FSPI_CONF_HEADER
115 offset = <0x58C00>;
116#else
117 offset = <0x57c00>;
118#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200119
Marek Vasutfd5c8842024-05-21 12:48:25 +0200120 args; /* Needed by mkimage etype superclass */
121#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200122
Marek Vasutfd5c8842024-05-21 12:48:25 +0200123 binman_imx_fit: fit {
124 description = "Configuration to load ATF before U-Boot";
125#ifndef CONFIG_IMX_HAB
126 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
127#endif
128 fit,fdt-list = "of-list";
129 #address-cells = <1>;
130#ifdef CONFIG_FSPI_CONF_HEADER
131 offset = <0x58C00>;
132#else
133 offset = <0x57c00>;
134#endif
135
136 images {
137 uboot {
138 arch = "arm64";
139 compression = "none";
140 description = "U-Boot (64-bit)";
141 load = <CONFIG_TEXT_BASE>;
142 type = "standalone";
143
144 uboot-blob {
145 filename = "u-boot-nodtb.bin";
146 type = "blob-ext";
147 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200148 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200149
Marek Vasut1de0eb12022-12-22 01:46:37 +0100150#ifndef CONFIG_ARMV8_PSCI
Marek Vasutfd5c8842024-05-21 12:48:25 +0200151 atf {
152 arch = "arm64";
153 compression = "none";
154 description = "ARM Trusted Firmware";
155 entry = <0x920000>;
156 load = <0x920000>;
157 type = "firmware";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200158
Marek Vasutfd5c8842024-05-21 12:48:25 +0200159 atf-blob {
160 filename = "bl31.bin";
161 type = "atf-bl31";
162 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200163 };
Marek Vasut1de0eb12022-12-22 01:46:37 +0100164#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200165
Marek Vasutfd5c8842024-05-21 12:48:25 +0200166 binman_fip: fip {
167 arch = "arm64";
168 compression = "none";
169 description = "Trusted Firmware FIP";
170 load = <0x40310000>;
171 type = "firmware";
172 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200173
Marek Vasutfd5c8842024-05-21 12:48:25 +0200174 @fdt-SEQ {
175 compression = "none";
176 description = "NAME";
177 type = "flat_dt";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200178
Marek Vasutfd5c8842024-05-21 12:48:25 +0200179 uboot-fdt-blob {
180 filename = "u-boot.dtb";
181 type = "blob-ext";
182 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200183 };
184 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200185
Marek Vasutfd5c8842024-05-21 12:48:25 +0200186 configurations {
187 default = "@config-DEFAULT-SEQ";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200188
Marek Vasutfd5c8842024-05-21 12:48:25 +0200189 @config-SEQ {
190 description = "NAME";
191 fdt = "fdt-SEQ";
192 firmware = "uboot";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100193#ifndef CONFIG_ARMV8_PSCI
Marek Vasutfd5c8842024-05-21 12:48:25 +0200194 loadables = "atf";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100195#endif
Marek Vasutfd5c8842024-05-21 12:48:25 +0200196 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200197 };
198 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200199#ifdef CONFIG_IMX_HAB
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200200 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200201#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200202 };
203};
204
Jagan Teki73d51182021-04-26 18:23:46 +0530205&clk {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700206 bootph-all;
207 bootph-pre-ram;
Jagan Teki73d51182021-04-26 18:23:46 +0530208 /delete-property/ assigned-clocks;
209 /delete-property/ assigned-clock-parents;
210 /delete-property/ assigned-clock-rates;
211};
212
213&iomuxc {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700214 bootph-pre-ram;
Jagan Teki73d51182021-04-26 18:23:46 +0530215};
216
217&osc_24m {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700218 bootph-all;
219 bootph-pre-ram;
Jagan Teki73d51182021-04-26 18:23:46 +0530220};
Marcel Ziswilerca453f22022-07-21 15:27:40 +0200221
Tim Harvey0951b9a2023-08-24 12:03:56 -0700222#ifdef CONFIG_FSL_CAAM
223&sec_jr0 {
224 bootph-pre-ram;
225};
226
227&sec_jr1 {
228 bootph-pre-ram;
229};
230
231&sec_jr2 {
232 bootph-pre-ram;
233};
234#endif
235
Marcel Ziswilerca453f22022-07-21 15:27:40 +0200236&spba1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700237 bootph-all;
238 bootph-pre-ram;
Marcel Ziswilerca453f22022-07-21 15:27:40 +0200239};
240
241&spba2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700242 bootph-all;
243 bootph-pre-ram;
Marcel Ziswilerca453f22022-07-21 15:27:40 +0200244};