blob: 732191f52053882351707f3b4eb775eb82cd57a7 [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 {
Adam Ford2d9310b2022-10-21 19:58:31 -05008 };
9
Tim Harvey1f5a5102023-08-24 12:01:44 -070010#ifdef CONFIG_OPTEE
Adam Ford2d9310b2022-10-21 19:58:31 -050011 firmware {
12 optee {
13 compatible = "linaro,optee-tz";
14 method = "smc";
15 };
16 };
Tim Harvey1f5a5102023-08-24 12:01:44 -070017#endif
Adam Ford2d9310b2022-10-21 19:58:31 -050018
19 wdt-reboot {
20 compatible = "wdt-reboot";
21 wdt = <&wdog1>;
Simon Glassd3a98cb2023-02-13 08:56:33 -070022 bootph-pre-ram;
Adam Ford2d9310b2022-10-21 19:58:31 -050023 };
24};
25
26&{/soc@0} {
Simon Glassd3a98cb2023-02-13 08:56:33 -070027 bootph-all;
28 bootph-pre-ram;
Adam Ford2d9310b2022-10-21 19:58:31 -050029};
30
31&aips1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070032 bootph-pre-ram;
33 bootph-all;
Adam Ford2d9310b2022-10-21 19:58:31 -050034};
35
36&aips2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070037 bootph-pre-ram;
Adam Ford2d9310b2022-10-21 19:58:31 -050038};
39
40&aips3 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070041 bootph-pre-ram;
Adam Ford2d9310b2022-10-21 19:58:31 -050042};
43
44&aips4 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070045 bootph-pre-ram;
Adam Ford2d9310b2022-10-21 19:58:31 -050046};
47
48&clk {
Simon Glassd3a98cb2023-02-13 08:56:33 -070049 bootph-pre-ram;
50 bootph-all;
Adam Ford2d9310b2022-10-21 19:58:31 -050051 /delete-property/ assigned-clocks;
52 /delete-property/ assigned-clock-parents;
53 /delete-property/ assigned-clock-rates;
54};
55
Tim Harvey0951b9a2023-08-24 12:03:56 -070056#ifdef CONFIG_FSL_CAAM
57&crypto {
58 bootph-pre-ram;
59};
60#endif
61
Adam Ford2d9310b2022-10-21 19:58:31 -050062&iomuxc {
Simon Glassd3a98cb2023-02-13 08:56:33 -070063 bootph-pre-ram;
Adam Ford2d9310b2022-10-21 19:58:31 -050064};
65
66&osc_24m {
Simon Glassd3a98cb2023-02-13 08:56:33 -070067 bootph-pre-ram;
68 bootph-all;
Adam Ford2d9310b2022-10-21 19:58:31 -050069};
Tim Harvey0951b9a2023-08-24 12:03:56 -070070
71#ifdef CONFIG_FSL_CAAM
72&sec_jr0 {
73 bootph-pre-ram;
74};
75
76&sec_jr1 {
77 bootph-pre-ram;
78};
79
80&sec_jr2 {
81 bootph-pre-ram;
82};
83#endif
Adam Ford2d9310b2022-10-21 19:58:31 -050084
85&spba1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070086 bootph-pre-ram;
Adam Ford2d9310b2022-10-21 19:58:31 -050087};
88
89&wdog1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070090 bootph-pre-ram;
Adam Ford2d9310b2022-10-21 19:58:31 -050091};
92
93&binman {
Marek Vasutf44c7382024-04-26 01:00:37 +020094 filename = "flash.bin";
95 section {
96 pad-byte = <0x00>;
Adam Ford2d9310b2022-10-21 19:58:31 -050097
Marek Vasutf44c7382024-04-26 01:00:37 +020098#ifdef CONFIG_FSPI_CONF_HEADER
99 fspi_conf_block {
100 filename = CONFIG_FSPI_CONF_FILE;
101 type = "blob-ext";
102 offset = <0x400>;
Adam Ford2d9310b2022-10-21 19:58:31 -0500103 };
Marek Vasutf44c7382024-04-26 01:00:37 +0200104#endif
105
Marek Vasutfd5c8842024-05-21 12:48:25 +0200106#ifdef CONFIG_IMX_HAB
107 nxp-imx8mcst@0 {
108 filename = "u-boot-spl-mkimage.signed.bin";
Marek Vasutf44c7382024-04-26 01:00:37 +0200109 nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
Marek Vasutfd5c8842024-05-21 12:48:25 +0200110 nxp,unlock;
Marek Vasutf44c7382024-04-26 01:00:37 +0200111 args; /* Needed by mkimage etype superclass */
Marek Vasutfd5c8842024-05-21 12:48:25 +0200112#endif
Adam Ford2d9310b2022-10-21 19:58:31 -0500113
Marek Vasutfd5c8842024-05-21 12:48:25 +0200114 binman_imx_spl: nxp-imx8mimage {
115 filename = "u-boot-spl-mkimage.bin";
116 nxp,boot-from = "sd";
117 nxp,rom-version = <2>;
118 nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
119 args; /* Needed by mkimage etype superclass */
Marek Vasutf44c7382024-04-26 01:00:37 +0200120
Marek Vasutfd5c8842024-05-21 12:48:25 +0200121 section {
122 filename = "u-boot-spl-ddr.bin";
123 pad-byte = <0xff>;
124 align-size = <4>;
125 align = <4>;
Marek Vasutf44c7382024-04-26 01:00:37 +0200126
Marek Vasutfd5c8842024-05-21 12:48:25 +0200127 u-boot-spl {
128 align-end = <4>;
129 filename = "u-boot-spl.bin";
130 };
131
132 ddr-1d-imem-fw {
Adam Ford2d9310b2022-10-21 19:58:31 -0500133#ifdef CONFIG_IMX8M_LPDDR4
Marek Vasutfd5c8842024-05-21 12:48:25 +0200134 filename = "lpddr4_pmu_train_1d_imem.bin";
Adam Ford2d9310b2022-10-21 19:58:31 -0500135#elif CONFIG_IMX8M_DDR4
Marek Vasutfd5c8842024-05-21 12:48:25 +0200136 filename = "ddr4_imem_1d_201810.bin";
Adam Ford2d9310b2022-10-21 19:58:31 -0500137#else
Marek Vasutfd5c8842024-05-21 12:48:25 +0200138 filename = "ddr3_imem_1d.bin";
Adam Ford2d9310b2022-10-21 19:58:31 -0500139#endif
Marek Vasutfd5c8842024-05-21 12:48:25 +0200140 type = "blob-ext";
141 align-end = <4>;
142 };
Adam Ford2d9310b2022-10-21 19:58:31 -0500143
Marek Vasutfd5c8842024-05-21 12:48:25 +0200144 ddr-1d-dmem-fw {
Adam Ford2d9310b2022-10-21 19:58:31 -0500145#ifdef CONFIG_IMX8M_LPDDR4
Marek Vasutfd5c8842024-05-21 12:48:25 +0200146 filename = "lpddr4_pmu_train_1d_dmem.bin";
Adam Ford2d9310b2022-10-21 19:58:31 -0500147#elif CONFIG_IMX8M_DDR4
Marek Vasutfd5c8842024-05-21 12:48:25 +0200148 filename = "ddr4_dmem_1d_201810.bin";
Adam Ford2d9310b2022-10-21 19:58:31 -0500149#else
Marek Vasutfd5c8842024-05-21 12:48:25 +0200150 filename = "ddr3_dmem_1d.bin";
Adam Ford2d9310b2022-10-21 19:58:31 -0500151#endif
Marek Vasutfd5c8842024-05-21 12:48:25 +0200152 type = "blob-ext";
153 align-end = <4>;
154 };
Adam Ford2d9310b2022-10-21 19:58:31 -0500155
Dario Binacchi39ae8202023-01-28 17:04:04 +0100156#if defined(CONFIG_IMX8M_LPDDR4) || defined(CONFIG_IMX8M_DDR4)
Marek Vasutfd5c8842024-05-21 12:48:25 +0200157 ddr-2d-imem-fw {
Adam Ford2d9310b2022-10-21 19:58:31 -0500158#ifdef CONFIG_IMX8M_LPDDR4
Marek Vasutfd5c8842024-05-21 12:48:25 +0200159 filename = "lpddr4_pmu_train_2d_imem.bin";
Dario Binacchi39ae8202023-01-28 17:04:04 +0100160#else
Marek Vasutfd5c8842024-05-21 12:48:25 +0200161 filename = "ddr4_imem_2d_201810.bin";
Adam Ford2d9310b2022-10-21 19:58:31 -0500162#endif
Marek Vasutfd5c8842024-05-21 12:48:25 +0200163 type = "blob-ext";
164 align-end = <4>;
165 };
Adam Ford2d9310b2022-10-21 19:58:31 -0500166
Marek Vasutfd5c8842024-05-21 12:48:25 +0200167 ddr-2d-dmem-fw {
Adam Ford2d9310b2022-10-21 19:58:31 -0500168#ifdef CONFIG_IMX8M_LPDDR4
Marek Vasutfd5c8842024-05-21 12:48:25 +0200169 filename = "lpddr4_pmu_train_2d_dmem.bin";
Dario Binacchi39ae8202023-01-28 17:04:04 +0100170#else
Marek Vasutfd5c8842024-05-21 12:48:25 +0200171 filename = "ddr4_dmem_2d_201810.bin";
Adam Ford2d9310b2022-10-21 19:58:31 -0500172#endif
Marek Vasutfd5c8842024-05-21 12:48:25 +0200173 type = "blob-ext";
174 align-end = <4>;
175 };
Dario Binacchi39ae8202023-01-28 17:04:04 +0100176#endif
Marek Vasutfd5c8842024-05-21 12:48:25 +0200177 };
Adam Ford2d9310b2022-10-21 19:58:31 -0500178 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200179
180#ifdef CONFIG_IMX_HAB
Adam Ford2d9310b2022-10-21 19:58:31 -0500181 };
Adam Ford2d9310b2022-10-21 19:58:31 -0500182
Marek Vasutfd5c8842024-05-21 12:48:25 +0200183 nxp-imx8mcst@1 {
184 filename = "u-boot-fit.signed.bin";
185 nxp,loader-address = <CONFIG_SPL_LOAD_FIT_ADDRESS>;
Marek Vasutf44c7382024-04-26 01:00:37 +0200186#ifdef CONFIG_FSPI_CONF_HEADER
187 offset = <0x59000>;
188#else
189 offset = <0x58000>;
190#endif
Marek Vasutfd5c8842024-05-21 12:48:25 +0200191 args; /* Needed by mkimage etype superclass */
192#endif
Adam Ford2d9310b2022-10-21 19:58:31 -0500193
Marek Vasutfd5c8842024-05-21 12:48:25 +0200194 binman_imx_fit: fit {
195 description = "Configuration to load ATF before U-Boot";
196#ifndef CONFIG_IMX_HAB
197 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
198#endif
199 fit,fdt-list = "of-list";
200 #address-cells = <1>;
201#ifdef CONFIG_FSPI_CONF_HEADER
202 offset = <0x59000>;
203#else
204 offset = <0x58000>;
205#endif
Adam Ford2d9310b2022-10-21 19:58:31 -0500206
Marek Vasutfd5c8842024-05-21 12:48:25 +0200207 images {
208 uboot {
209 arch = "arm64";
210 compression = "none";
211 description = "U-Boot (64-bit)";
212 load = <CONFIG_TEXT_BASE>;
213 type = "standalone";
214
215 uboot-blob {
216 filename = "u-boot-nodtb.bin";
217 type = "blob-ext";
218 };
Adam Ford2d9310b2022-10-21 19:58:31 -0500219 };
Adam Ford2d9310b2022-10-21 19:58:31 -0500220
Marek Vasut1de0eb12022-12-22 01:46:37 +0100221#ifndef CONFIG_ARMV8_PSCI
Marek Vasutfd5c8842024-05-21 12:48:25 +0200222 atf {
223 arch = "arm64";
224 compression = "none";
225 description = "ARM Trusted Firmware";
226 entry = <0x960000>;
227 load = <0x960000>;
228 type = "firmware";
Adam Ford2d9310b2022-10-21 19:58:31 -0500229
Marek Vasutfd5c8842024-05-21 12:48:25 +0200230 atf-blob {
231 filename = "bl31.bin";
232 type = "atf-bl31";
233 };
Adam Ford2d9310b2022-10-21 19:58:31 -0500234 };
Marek Vasut1de0eb12022-12-22 01:46:37 +0100235#endif
Adam Ford2d9310b2022-10-21 19:58:31 -0500236
Marek Vasutfd5c8842024-05-21 12:48:25 +0200237 binman_fip: fip {
238 arch = "arm64";
239 compression = "none";
240 description = "Trusted Firmware FIP";
241 load = <0x40310000>;
242 type = "firmware";
243 };
Adam Ford2d9310b2022-10-21 19:58:31 -0500244
Marek Vasutfd5c8842024-05-21 12:48:25 +0200245 @fdt-SEQ {
246 compression = "none";
247 description = "NAME";
248 type = "flat_dt";
Adam Ford2d9310b2022-10-21 19:58:31 -0500249
Marek Vasutfd5c8842024-05-21 12:48:25 +0200250 uboot-fdt-blob {
251 filename = "u-boot.dtb";
252 type = "blob-ext";
253 };
Adam Ford2d9310b2022-10-21 19:58:31 -0500254 };
255 };
Adam Ford2d9310b2022-10-21 19:58:31 -0500256
Marek Vasutfd5c8842024-05-21 12:48:25 +0200257 configurations {
258 default = "@config-DEFAULT-SEQ";
Adam Ford2d9310b2022-10-21 19:58:31 -0500259
Marek Vasutfd5c8842024-05-21 12:48:25 +0200260 @config-SEQ {
261 description = "NAME";
262 fdt = "fdt-SEQ";
263 firmware = "uboot";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100264#ifndef CONFIG_ARMV8_PSCI
Marek Vasutfd5c8842024-05-21 12:48:25 +0200265 loadables = "atf";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100266#endif
Marek Vasutfd5c8842024-05-21 12:48:25 +0200267 };
Adam Ford2d9310b2022-10-21 19:58:31 -0500268 };
269 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200270#ifdef CONFIG_IMX_HAB
Adam Ford2d9310b2022-10-21 19:58:31 -0500271 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200272#endif
Adam Ford2d9310b2022-10-21 19:58:31 -0500273 };
274};