blob: b9b1193823a503852a8cbb925a146458e38f5df7 [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 Vasut9fe526d2024-05-21 12:48:24 +020057 binman_imx_spl: nxp-imx8mimage {
Marek Vasutf44c7382024-04-26 01:00:37 +020058 filename = "u-boot-spl-mkimage.bin";
59 nxp,boot-from = "sd";
60 nxp,rom-version = <1>;
61 nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
62 args; /* Needed by mkimage etype superclass */
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020063
Marek Vasutf44c7382024-04-26 01:00:37 +020064 section {
65 align = <4>;
66 align-size = <4>;
67 filename = "u-boot-spl-ddr.bin";
68 pad-byte = <0xff>;
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020069
Marek Vasutf44c7382024-04-26 01:00:37 +020070 u-boot-spl {
71 align-end = <4>;
72 filename = "u-boot-spl.bin";
73 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020074
Marek Vasutf44c7382024-04-26 01:00:37 +020075 ddr-1d-imem-fw {
76 filename = "lpddr4_pmu_train_1d_imem.bin";
77 align-end = <4>;
78 type = "blob-ext";
79 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020080
Marek Vasutf44c7382024-04-26 01:00:37 +020081 ddr-1d-dmem-fw {
82 filename = "lpddr4_pmu_train_1d_dmem.bin";
83 align-end = <4>;
84 type = "blob-ext";
85 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020086
Marek Vasutf44c7382024-04-26 01:00:37 +020087 ddr-2d-imem-fw {
88 filename = "lpddr4_pmu_train_2d_imem.bin";
89 align-end = <4>;
90 type = "blob-ext";
91 };
92
93 ddr-2d-dmem-fw {
94 filename = "lpddr4_pmu_train_2d_dmem.bin";
95 align-end = <4>;
96 type = "blob-ext";
97 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020098 };
99 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200100
Marek Vasut9fe526d2024-05-21 12:48:24 +0200101 binman_imx_fit: fit {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200102 description = "Configuration to load ATF before U-Boot";
Marek Vasuta7416eb2023-05-28 23:00:30 +0200103#ifndef CONFIG_IMX_HAB
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200104 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
Marek Vasuta7416eb2023-05-28 23:00:30 +0200105#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200106 fit,fdt-list = "of-list";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200107 #address-cells = <1>;
Marek Vasutf44c7382024-04-26 01:00:37 +0200108#ifdef CONFIG_FSPI_CONF_HEADER
109 offset = <0x58C00>;
110#else
111 offset = <0x57c00>;
112#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200113
114 images {
115 uboot {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200116 arch = "arm64";
117 compression = "none";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200118 description = "U-Boot (64-bit)";
Simon Glass72cc5382022-10-20 18:22:39 -0600119 load = <CONFIG_TEXT_BASE>;
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200120 type = "standalone";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200121
Patrick Wildta6ca6912022-01-13 15:22:17 +0100122 uboot-blob {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200123 filename = "u-boot-nodtb.bin";
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +0200124 type = "blob-ext";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200125 };
126 };
127
Marek Vasut1de0eb12022-12-22 01:46:37 +0100128#ifndef CONFIG_ARMV8_PSCI
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200129 atf {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200130 arch = "arm64";
131 compression = "none";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200132 description = "ARM Trusted Firmware";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200133 entry = <0x920000>;
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200134 load = <0x920000>;
135 type = "firmware";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200136
Patrick Wildta6ca6912022-01-13 15:22:17 +0100137 atf-blob {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200138 filename = "bl31.bin";
Marcel Ziswilerd87d2f12022-04-08 10:06:56 +0200139 type = "atf-bl31";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200140 };
141 };
Marek Vasut1de0eb12022-12-22 01:46:37 +0100142#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200143
144 binman_fip: fip {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200145 arch = "arm64";
146 compression = "none";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200147 description = "Trusted Firmware FIP";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200148 load = <0x40310000>;
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200149 type = "firmware";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200150 };
151
152 @fdt-SEQ {
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200153 compression = "none";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200154 description = "NAME";
155 type = "flat_dt";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200156
Patrick Wildta6ca6912022-01-13 15:22:17 +0100157 uboot-fdt-blob {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200158 filename = "u-boot.dtb";
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +0200159 type = "blob-ext";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200160 };
161 };
162 };
163
164 configurations {
165 default = "@config-DEFAULT-SEQ";
166
Simon Glassceea7842023-08-23 19:18:01 -0600167 @config-SEQ {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200168 description = "NAME";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200169 fdt = "fdt-SEQ";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200170 firmware = "uboot";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100171#ifndef CONFIG_ARMV8_PSCI
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200172 loadables = "atf";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100173#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200174 };
175 };
176 };
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200177 };
178};
179
Jagan Teki73d51182021-04-26 18:23:46 +0530180&clk {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700181 bootph-all;
182 bootph-pre-ram;
Jagan Teki73d51182021-04-26 18:23:46 +0530183 /delete-property/ assigned-clocks;
184 /delete-property/ assigned-clock-parents;
185 /delete-property/ assigned-clock-rates;
186};
187
188&iomuxc {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700189 bootph-pre-ram;
Jagan Teki73d51182021-04-26 18:23:46 +0530190};
191
192&osc_24m {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700193 bootph-all;
194 bootph-pre-ram;
Jagan Teki73d51182021-04-26 18:23:46 +0530195};
Marcel Ziswilerca453f22022-07-21 15:27:40 +0200196
Tim Harvey0951b9a2023-08-24 12:03:56 -0700197#ifdef CONFIG_FSL_CAAM
198&sec_jr0 {
199 bootph-pre-ram;
200};
201
202&sec_jr1 {
203 bootph-pre-ram;
204};
205
206&sec_jr2 {
207 bootph-pre-ram;
208};
209#endif
210
Marcel Ziswilerca453f22022-07-21 15:27:40 +0200211&spba1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700212 bootph-all;
213 bootph-pre-ram;
Marcel Ziswilerca453f22022-07-21 15:27:40 +0200214};
215
216&spba2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700217 bootph-all;
218 bootph-pre-ram;
Marcel Ziswilerca453f22022-07-21 15:27:40 +0200219};