blob: f7eb29c73648955b77fa08ea433f3c29b2b173e0 [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 {
8 multiple-images;
9 };
Tim Harveyb34f5a12023-08-24 12:01:42 -070010
11#ifdef CONFIG_OPTEE
12 firmware {
13 optee {
14 compatible = "linaro,optee-tz";
15 method = "smc";
16 };
17 };
18#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020019};
20
Marcel Ziswiler6dd051a2022-11-07 22:22:41 +010021&soc {
Simon Glassd3a98cb2023-02-13 08:56:33 -070022 bootph-all;
23 bootph-pre-ram;
Jagan Teki73d51182021-04-26 18:23:46 +053024};
25
26&aips1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070027 bootph-all;
28 bootph-pre-ram;
Jagan Teki73d51182021-04-26 18:23:46 +053029};
30
31&aips2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070032 bootph-pre-ram;
Jagan Teki73d51182021-04-26 18:23:46 +053033};
34
35&aips3 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070036 bootph-pre-ram;
Jagan Teki73d51182021-04-26 18:23:46 +053037};
38
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020039&binman {
40 u-boot-spl-ddr {
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +020041 align = <4>;
42 align-size = <4>;
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020043 filename = "u-boot-spl-ddr.bin";
44 pad-byte = <0xff>;
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020045
46 u-boot-spl {
47 align-end = <4>;
Marcel Ziswiler74d5d4f2021-10-23 01:15:15 +020048 filename = "u-boot-spl.bin";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020049 };
50
Peng Fan5db610f42022-07-26 16:41:20 +080051 ddr-1d-imem-fw {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020052 filename = "lpddr4_pmu_train_1d_imem.bin";
Peng Fan68811572022-07-26 16:41:22 +080053 align-end = <4>;
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +020054 type = "blob-ext";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020055 };
56
Peng Fan5db610f42022-07-26 16:41:20 +080057 ddr-1d-dmem-fw {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020058 filename = "lpddr4_pmu_train_1d_dmem.bin";
Peng Fan68811572022-07-26 16:41:22 +080059 align-end = <4>;
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +020060 type = "blob-ext";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020061 };
62
Peng Fan5db610f42022-07-26 16:41:20 +080063 ddr-2d-imem-fw {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020064 filename = "lpddr4_pmu_train_2d_imem.bin";
Peng Fan68811572022-07-26 16:41:22 +080065 align-end = <4>;
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +020066 type = "blob-ext";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020067 };
68
Peng Fan5db610f42022-07-26 16:41:20 +080069 ddr-2d-dmem-fw {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020070 filename = "lpddr4_pmu_train_2d_dmem.bin";
Peng Fan68811572022-07-26 16:41:22 +080071 align-end = <4>;
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +020072 type = "blob-ext";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020073 };
74 };
75
76 spl {
77 filename = "spl.bin";
78
79 mkimage {
80 args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x7e1000";
81
82 blob {
83 filename = "u-boot-spl-ddr.bin";
84 };
85 };
86 };
87
88 itb {
89 filename = "u-boot.itb";
90
91 fit {
92 description = "Configuration to load ATF before U-Boot";
Marek Vasuta7416eb2023-05-28 23:00:30 +020093#ifndef CONFIG_IMX_HAB
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020094 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
Marek Vasuta7416eb2023-05-28 23:00:30 +020095#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020096 fit,fdt-list = "of-list";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +020097 #address-cells = <1>;
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020098
99 images {
100 uboot {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200101 arch = "arm64";
102 compression = "none";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200103 description = "U-Boot (64-bit)";
Simon Glass72cc5382022-10-20 18:22:39 -0600104 load = <CONFIG_TEXT_BASE>;
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200105 type = "standalone";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200106
Patrick Wildta6ca6912022-01-13 15:22:17 +0100107 uboot-blob {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200108 filename = "u-boot-nodtb.bin";
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +0200109 type = "blob-ext";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200110 };
111 };
112
Marek Vasut1de0eb12022-12-22 01:46:37 +0100113#ifndef CONFIG_ARMV8_PSCI
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200114 atf {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200115 arch = "arm64";
116 compression = "none";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200117 description = "ARM Trusted Firmware";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200118 entry = <0x920000>;
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200119 load = <0x920000>;
120 type = "firmware";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200121
Patrick Wildta6ca6912022-01-13 15:22:17 +0100122 atf-blob {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200123 filename = "bl31.bin";
Marcel Ziswilerd87d2f12022-04-08 10:06:56 +0200124 type = "atf-bl31";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200125 };
126 };
Marek Vasut1de0eb12022-12-22 01:46:37 +0100127#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200128
129 binman_fip: fip {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200130 arch = "arm64";
131 compression = "none";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200132 description = "Trusted Firmware FIP";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200133 load = <0x40310000>;
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200134 type = "firmware";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200135 };
136
137 @fdt-SEQ {
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200138 compression = "none";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200139 description = "NAME";
140 type = "flat_dt";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200141
Patrick Wildta6ca6912022-01-13 15:22:17 +0100142 uboot-fdt-blob {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200143 filename = "u-boot.dtb";
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +0200144 type = "blob-ext";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200145 };
146 };
147 };
148
149 configurations {
150 default = "@config-DEFAULT-SEQ";
151
Simon Glassceea7842023-08-23 19:18:01 -0600152 @config-SEQ {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200153 description = "NAME";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200154 fdt = "fdt-SEQ";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200155 firmware = "uboot";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100156#ifndef CONFIG_ARMV8_PSCI
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200157 loadables = "atf";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100158#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200159 };
160 };
161 };
162 };
163
164 imx-boot {
165 filename = "flash.bin";
166 pad-byte = <0x00>;
167
Mamta Shuklacd76f3a2022-07-12 14:36:18 +0000168#ifdef CONFIG_FSPI_CONF_HEADER
169 fspi_conf_block {
170 filename = CONFIG_FSPI_CONF_FILE;
171 type = "blob-ext";
172 size = <0x1000>;
173 };
174
175 spl {
176 filename = "spl.bin";
177 offset = <0x1000>;
178 type = "blob-ext";
179 };
180
181 binman_uboot: uboot {
182 filename = "u-boot.itb";
183 offset = <0x58C00>;
184 type = "blob-ext";
185 };
186#else
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +0200187 spl {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200188 filename = "spl.bin";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200189 offset = <0x0>;
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +0200190 type = "blob-ext";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200191 };
192
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +0200193 binman_uboot: uboot {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200194 filename = "u-boot.itb";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200195 offset = <0x57c00>;
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +0200196 type = "blob-ext";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200197 };
Mamta Shuklacd76f3a2022-07-12 14:36:18 +0000198#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200199 };
200};
201
Jagan Teki73d51182021-04-26 18:23:46 +0530202&clk {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700203 bootph-all;
204 bootph-pre-ram;
Jagan Teki73d51182021-04-26 18:23:46 +0530205 /delete-property/ assigned-clocks;
206 /delete-property/ assigned-clock-parents;
207 /delete-property/ assigned-clock-rates;
208};
209
210&iomuxc {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700211 bootph-pre-ram;
Jagan Teki73d51182021-04-26 18:23:46 +0530212};
213
214&osc_24m {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700215 bootph-all;
216 bootph-pre-ram;
Jagan Teki73d51182021-04-26 18:23:46 +0530217};
Marcel Ziswilerca453f22022-07-21 15:27:40 +0200218
219&spba1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700220 bootph-all;
221 bootph-pre-ram;
Marcel Ziswilerca453f22022-07-21 15:27:40 +0200222};
223
224&spba2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -0700225 bootph-all;
226 bootph-pre-ram;
Marcel Ziswilerca453f22022-07-21 15:27:40 +0200227};