blob: d31bc82253246ac536e4386d130fc00dae668e8d [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";
Marek Vasut2b938212024-09-24 15:02:09 +0200125 filename = "u-boot.itb";
Marek Vasutfd5c8842024-05-21 12:48:25 +0200126#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 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200149 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200150
Marek Vasut1de0eb12022-12-22 01:46:37 +0100151#ifndef CONFIG_ARMV8_PSCI
Marek Vasutfd5c8842024-05-21 12:48:25 +0200152 atf {
153 arch = "arm64";
154 compression = "none";
155 description = "ARM Trusted Firmware";
156 entry = <0x920000>;
157 load = <0x920000>;
158 type = "firmware";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200159
Marek Vasutfd5c8842024-05-21 12:48:25 +0200160 atf-blob {
161 filename = "bl31.bin";
162 type = "atf-bl31";
163 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200164 };
Marek Vasut1de0eb12022-12-22 01:46:37 +0100165#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200166
Marek Vasutfd5c8842024-05-21 12:48:25 +0200167 binman_fip: fip {
168 arch = "arm64";
169 compression = "none";
170 description = "Trusted Firmware FIP";
171 load = <0x40310000>;
172 type = "firmware";
173 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200174
Marek Vasutfd5c8842024-05-21 12:48:25 +0200175 @fdt-SEQ {
176 compression = "none";
177 description = "NAME";
178 type = "flat_dt";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200179
Marek Vasutfd5c8842024-05-21 12:48:25 +0200180 uboot-fdt-blob {
181 filename = "u-boot.dtb";
182 type = "blob-ext";
183 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200184 };
185 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200186
Marek Vasutfd5c8842024-05-21 12:48:25 +0200187 configurations {
188 default = "@config-DEFAULT-SEQ";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200189
Marek Vasutfd5c8842024-05-21 12:48:25 +0200190 @config-SEQ {
191 description = "NAME";
192 fdt = "fdt-SEQ";
193 firmware = "uboot";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100194#ifndef CONFIG_ARMV8_PSCI
Marek Vasutfd5c8842024-05-21 12:48:25 +0200195 loadables = "atf";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100196#endif
Marek Vasutfd5c8842024-05-21 12:48:25 +0200197 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200198 };
199 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200200#ifdef CONFIG_IMX_HAB
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200201 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200202#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200203 };
204};
205
Jagan Teki73d51182021-04-26 18:23:46 +0530206&clk {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700207 bootph-all;
208 bootph-pre-ram;
Jagan Teki73d51182021-04-26 18:23:46 +0530209 /delete-property/ assigned-clocks;
210 /delete-property/ assigned-clock-parents;
211 /delete-property/ assigned-clock-rates;
212};
213
214&iomuxc {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700215 bootph-pre-ram;
Jagan Teki73d51182021-04-26 18:23:46 +0530216};
217
218&osc_24m {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700219 bootph-all;
220 bootph-pre-ram;
Jagan Teki73d51182021-04-26 18:23:46 +0530221};
Marcel Ziswilerca453f22022-07-21 15:27:40 +0200222
Tim Harvey0951b9a2023-08-24 12:03:56 -0700223#ifdef CONFIG_FSL_CAAM
224&sec_jr0 {
225 bootph-pre-ram;
226};
227
228&sec_jr1 {
229 bootph-pre-ram;
230};
231
232&sec_jr2 {
233 bootph-pre-ram;
234};
235#endif
236
Marcel Ziswilerca453f22022-07-21 15:27:40 +0200237&spba1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700238 bootph-all;
239 bootph-pre-ram;
Marcel Ziswilerca453f22022-07-21 15:27:40 +0200240};
241
242&spba2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700243 bootph-all;
244 bootph-pre-ram;
Marcel Ziswilerca453f22022-07-21 15:27:40 +0200245};