blob: 6875c6d44fff9fdf87e68b73e85dd237cfc601e0 [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";
Marek Vasut2b938212024-09-24 15:02:09 +0200196 filename = "u-boot.itb";
Marek Vasutfd5c8842024-05-21 12:48:25 +0200197#ifndef CONFIG_IMX_HAB
198 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
199#endif
200 fit,fdt-list = "of-list";
201 #address-cells = <1>;
202#ifdef CONFIG_FSPI_CONF_HEADER
203 offset = <0x59000>;
204#else
205 offset = <0x58000>;
206#endif
Adam Ford2d9310b2022-10-21 19:58:31 -0500207
Marek Vasutfd5c8842024-05-21 12:48:25 +0200208 images {
209 uboot {
210 arch = "arm64";
211 compression = "none";
212 description = "U-Boot (64-bit)";
213 load = <CONFIG_TEXT_BASE>;
214 type = "standalone";
215
216 uboot-blob {
217 filename = "u-boot-nodtb.bin";
218 type = "blob-ext";
219 };
Adam Ford2d9310b2022-10-21 19:58:31 -0500220 };
Adam Ford2d9310b2022-10-21 19:58:31 -0500221
Marek Vasut1de0eb12022-12-22 01:46:37 +0100222#ifndef CONFIG_ARMV8_PSCI
Marek Vasutfd5c8842024-05-21 12:48:25 +0200223 atf {
224 arch = "arm64";
225 compression = "none";
226 description = "ARM Trusted Firmware";
227 entry = <0x960000>;
228 load = <0x960000>;
229 type = "firmware";
Adam Ford2d9310b2022-10-21 19:58:31 -0500230
Marek Vasutfd5c8842024-05-21 12:48:25 +0200231 atf-blob {
232 filename = "bl31.bin";
233 type = "atf-bl31";
234 };
Adam Ford2d9310b2022-10-21 19:58:31 -0500235 };
Marek Vasut1de0eb12022-12-22 01:46:37 +0100236#endif
Adam Ford2d9310b2022-10-21 19:58:31 -0500237
Marek Vasutfd5c8842024-05-21 12:48:25 +0200238 binman_fip: fip {
239 arch = "arm64";
240 compression = "none";
241 description = "Trusted Firmware FIP";
242 load = <0x40310000>;
243 type = "firmware";
244 };
Adam Ford2d9310b2022-10-21 19:58:31 -0500245
Marek Vasutfd5c8842024-05-21 12:48:25 +0200246 @fdt-SEQ {
247 compression = "none";
248 description = "NAME";
249 type = "flat_dt";
Adam Ford2d9310b2022-10-21 19:58:31 -0500250
Marek Vasutfd5c8842024-05-21 12:48:25 +0200251 uboot-fdt-blob {
252 filename = "u-boot.dtb";
253 type = "blob-ext";
254 };
Adam Ford2d9310b2022-10-21 19:58:31 -0500255 };
256 };
Adam Ford2d9310b2022-10-21 19:58:31 -0500257
Marek Vasutfd5c8842024-05-21 12:48:25 +0200258 configurations {
259 default = "@config-DEFAULT-SEQ";
Adam Ford2d9310b2022-10-21 19:58:31 -0500260
Marek Vasutfd5c8842024-05-21 12:48:25 +0200261 @config-SEQ {
262 description = "NAME";
263 fdt = "fdt-SEQ";
264 firmware = "uboot";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100265#ifndef CONFIG_ARMV8_PSCI
Marek Vasutfd5c8842024-05-21 12:48:25 +0200266 loadables = "atf";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100267#endif
Marek Vasutfd5c8842024-05-21 12:48:25 +0200268 };
Adam Ford2d9310b2022-10-21 19:58:31 -0500269 };
270 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200271#ifdef CONFIG_IMX_HAB
Adam Ford2d9310b2022-10-21 19:58:31 -0500272 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200273#endif
Adam Ford2d9310b2022-10-21 19:58:31 -0500274 };
275};