blob: 25dc8e12ddedf8a703ee77832ef9f52b59f18b7b [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 };
10};
11
Marcel Ziswiler6dd051a2022-11-07 22:22:41 +010012&soc {
Jagan Teki73d51182021-04-26 18:23:46 +053013 u-boot,dm-pre-reloc;
14 u-boot,dm-spl;
15};
16
17&aips1 {
Jagan Teki73d51182021-04-26 18:23:46 +053018 u-boot,dm-pre-reloc;
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +020019 u-boot,dm-spl;
Jagan Teki73d51182021-04-26 18:23:46 +053020};
21
22&aips2 {
23 u-boot,dm-spl;
24};
25
26&aips3 {
27 u-boot,dm-spl;
28};
29
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020030&binman {
31 u-boot-spl-ddr {
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +020032 align = <4>;
33 align-size = <4>;
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020034 filename = "u-boot-spl-ddr.bin";
35 pad-byte = <0xff>;
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020036
37 u-boot-spl {
38 align-end = <4>;
Marcel Ziswiler74d5d4f2021-10-23 01:15:15 +020039 filename = "u-boot-spl.bin";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020040 };
41
Peng Fan5db610f42022-07-26 16:41:20 +080042 ddr-1d-imem-fw {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020043 filename = "lpddr4_pmu_train_1d_imem.bin";
Peng Fan68811572022-07-26 16:41:22 +080044 align-end = <4>;
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +020045 type = "blob-ext";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020046 };
47
Peng Fan5db610f42022-07-26 16:41:20 +080048 ddr-1d-dmem-fw {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020049 filename = "lpddr4_pmu_train_1d_dmem.bin";
Peng Fan68811572022-07-26 16:41:22 +080050 align-end = <4>;
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +020051 type = "blob-ext";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020052 };
53
Peng Fan5db610f42022-07-26 16:41:20 +080054 ddr-2d-imem-fw {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020055 filename = "lpddr4_pmu_train_2d_imem.bin";
Peng Fan68811572022-07-26 16:41:22 +080056 align-end = <4>;
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +020057 type = "blob-ext";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020058 };
59
Peng Fan5db610f42022-07-26 16:41:20 +080060 ddr-2d-dmem-fw {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020061 filename = "lpddr4_pmu_train_2d_dmem.bin";
Peng Fan68811572022-07-26 16:41:22 +080062 align-end = <4>;
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +020063 type = "blob-ext";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020064 };
65 };
66
67 spl {
68 filename = "spl.bin";
69
70 mkimage {
71 args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x7e1000";
72
73 blob {
74 filename = "u-boot-spl-ddr.bin";
75 };
76 };
77 };
78
79 itb {
80 filename = "u-boot.itb";
81
82 fit {
83 description = "Configuration to load ATF before U-Boot";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020084 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
85 fit,fdt-list = "of-list";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +020086 #address-cells = <1>;
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020087
88 images {
89 uboot {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020090 arch = "arm64";
91 compression = "none";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +020092 description = "U-Boot (64-bit)";
Simon Glass72cc5382022-10-20 18:22:39 -060093 load = <CONFIG_TEXT_BASE>;
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +020094 type = "standalone";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020095
Patrick Wildta6ca6912022-01-13 15:22:17 +010096 uboot-blob {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020097 filename = "u-boot-nodtb.bin";
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +020098 type = "blob-ext";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +020099 };
100 };
101
Marek Vasut1de0eb12022-12-22 01:46:37 +0100102#ifndef CONFIG_ARMV8_PSCI
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200103 atf {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200104 arch = "arm64";
105 compression = "none";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200106 description = "ARM Trusted Firmware";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200107 entry = <0x920000>;
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200108 load = <0x920000>;
109 type = "firmware";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200110
Patrick Wildta6ca6912022-01-13 15:22:17 +0100111 atf-blob {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200112 filename = "bl31.bin";
Marcel Ziswilerd87d2f12022-04-08 10:06:56 +0200113 type = "atf-bl31";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200114 };
115 };
Marek Vasut1de0eb12022-12-22 01:46:37 +0100116#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200117
118 binman_fip: fip {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200119 arch = "arm64";
120 compression = "none";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200121 description = "Trusted Firmware FIP";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200122 load = <0x40310000>;
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200123 type = "firmware";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200124 };
125
126 @fdt-SEQ {
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200127 compression = "none";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200128 description = "NAME";
129 type = "flat_dt";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200130
Patrick Wildta6ca6912022-01-13 15:22:17 +0100131 uboot-fdt-blob {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200132 filename = "u-boot.dtb";
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +0200133 type = "blob-ext";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200134 };
135 };
136 };
137
138 configurations {
139 default = "@config-DEFAULT-SEQ";
140
141 binman_configuration: @config-SEQ {
142 description = "NAME";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200143 fdt = "fdt-SEQ";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200144 firmware = "uboot";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100145#ifndef CONFIG_ARMV8_PSCI
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200146 loadables = "atf";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100147#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200148 };
149 };
150 };
151 };
152
153 imx-boot {
154 filename = "flash.bin";
155 pad-byte = <0x00>;
156
Mamta Shuklacd76f3a2022-07-12 14:36:18 +0000157#ifdef CONFIG_FSPI_CONF_HEADER
158 fspi_conf_block {
159 filename = CONFIG_FSPI_CONF_FILE;
160 type = "blob-ext";
161 size = <0x1000>;
162 };
163
164 spl {
165 filename = "spl.bin";
166 offset = <0x1000>;
167 type = "blob-ext";
168 };
169
170 binman_uboot: uboot {
171 filename = "u-boot.itb";
172 offset = <0x58C00>;
173 type = "blob-ext";
174 };
175#else
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +0200176 spl {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200177 filename = "spl.bin";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200178 offset = <0x0>;
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +0200179 type = "blob-ext";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200180 };
181
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +0200182 binman_uboot: uboot {
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200183 filename = "u-boot.itb";
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200184 offset = <0x57c00>;
Marcel Ziswiler3c2534a2021-10-23 01:15:16 +0200185 type = "blob-ext";
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200186 };
Mamta Shuklacd76f3a2022-07-12 14:36:18 +0000187#endif
Marcel Ziswilerd56d1172021-10-23 01:15:13 +0200188 };
189};
190
Jagan Teki73d51182021-04-26 18:23:46 +0530191&clk {
Jagan Teki73d51182021-04-26 18:23:46 +0530192 u-boot,dm-pre-reloc;
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200193 u-boot,dm-spl;
Jagan Teki73d51182021-04-26 18:23:46 +0530194 /delete-property/ assigned-clocks;
195 /delete-property/ assigned-clock-parents;
196 /delete-property/ assigned-clock-rates;
197};
198
199&iomuxc {
200 u-boot,dm-spl;
201};
202
203&osc_24m {
Jagan Teki73d51182021-04-26 18:23:46 +0530204 u-boot,dm-pre-reloc;
Marcel Ziswiler0e2d37e2021-10-23 01:15:14 +0200205 u-boot,dm-spl;
Jagan Teki73d51182021-04-26 18:23:46 +0530206};
Marcel Ziswilerca453f22022-07-21 15:27:40 +0200207
208&spba1 {
209 u-boot,dm-pre-reloc;
210 u-boot,dm-spl;
211};
212
213&spba2 {
214 u-boot,dm-pre-reloc;
215 u-boot,dm-spl;
216};