blob: 4fadcaea509370ec5af89e873ebfec1e1460668c [file] [log] [blame]
Teresa Remmet3e94fbd2021-07-07 12:57:57 +00001// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C) 2021 PHYTEC Messtechnik GmbH
4 * Author: Teresa Remmet <t.remmet@phytec.de>
5 */
6
7/ {
8 binman: binman {
9 multiple-images;
10 };
Tim Harvey2ae9f5a2023-08-24 12:01:43 -070011
12#ifdef CONFIG_OPTEE
13 firmware {
14 optee {
15 compatible = "linaro,optee-tz";
16 method = "smc";
17 };
18 };
19#endif
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000020};
21
Tim Harvey0951b9a2023-08-24 12:03:56 -070022#ifdef CONFIG_FSL_CAAM
23&crypto {
24 bootph-pre-ram;
25};
26#endif
27
Marcel Ziswilercdfde792022-11-07 22:22:39 +010028&soc {
Simon Glassd3a98cb2023-02-13 08:56:33 -070029 bootph-all;
30 bootph-pre-ram;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000031};
32
33&clk {
Simon Glassd3a98cb2023-02-13 08:56:33 -070034 bootph-pre-ram;
35 bootph-all;
Ye Lif93d54d2021-08-17 14:32:04 +080036 /delete-property/ assigned-clocks;
37 /delete-property/ assigned-clock-parents;
38 /delete-property/ assigned-clock-rates;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000039};
40
41&osc_32k {
Simon Glassd3a98cb2023-02-13 08:56:33 -070042 bootph-pre-ram;
43 bootph-all;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000044};
45
46&osc_24m {
Simon Glassd3a98cb2023-02-13 08:56:33 -070047 bootph-pre-ram;
48 bootph-all;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000049};
50
51&aips1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070052 bootph-pre-ram;
53 bootph-all;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000054};
55
56&aips2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070057 bootph-pre-ram;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000058};
59
60&aips3 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070061 bootph-pre-ram;
Adam Ford0a357f92023-05-30 17:45:58 -050062 spba-bus@30800000 {
63 bootph-pre-ram;
64 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000065};
66
67&iomuxc {
Simon Glassd3a98cb2023-02-13 08:56:33 -070068 bootph-pre-ram;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000069};
70
Tim Harvey0951b9a2023-08-24 12:03:56 -070071#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
84
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000085&binman {
86 u-boot-spl-ddr {
87 filename = "u-boot-spl-ddr.bin";
88 pad-byte = <0xff>;
89 align-size = <4>;
90 align = <4>;
91
92 u-boot-spl {
93 align-end = <4>;
94 };
95
Peng Fan5db610f42022-07-26 16:41:20 +080096 ddr-1d-imem-fw {
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000097 filename = "lpddr4_pmu_train_1d_imem_202006.bin";
Peng Fan5db610f42022-07-26 16:41:20 +080098 type = "blob-ext";
Peng Fan68811572022-07-26 16:41:22 +080099 align-end = <4>;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000100 };
101
Peng Fan5db610f42022-07-26 16:41:20 +0800102 ddr-1d-dmem-fw {
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000103 filename = "lpddr4_pmu_train_1d_dmem_202006.bin";
Peng Fan5db610f42022-07-26 16:41:20 +0800104 type = "blob-ext";
Peng Fan68811572022-07-26 16:41:22 +0800105 align-end = <4>;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000106 };
107
Peng Fan5db610f42022-07-26 16:41:20 +0800108 ddr-2d-imem-fw {
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000109 filename = "lpddr4_pmu_train_2d_imem_202006.bin";
Peng Fan5db610f42022-07-26 16:41:20 +0800110 type = "blob-ext";
Peng Fan68811572022-07-26 16:41:22 +0800111 align-end = <4>;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000112 };
113
Peng Fan5db610f42022-07-26 16:41:20 +0800114 ddr-2d-dmem-fw {
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000115 filename = "lpddr4_pmu_train_2d_dmem_202006.bin";
Peng Fan5db610f42022-07-26 16:41:20 +0800116 type = "blob-ext";
Peng Fan68811572022-07-26 16:41:22 +0800117 align-end = <4>;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000118 };
119 };
120
Teresa Remmet1d05e8e2021-08-26 10:54:09 +0200121 spl {
122 filename = "spl.bin";
123
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000124 mkimage {
125 args = "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x920000";
126
127 blob {
128 filename = "u-boot-spl-ddr.bin";
129 };
130 };
131 };
132
133 itb {
134 filename = "u-boot.itb";
135
136 fit {
137 description = "Configuration to load ATF before U-Boot";
Marek Vasuta7416eb2023-05-28 23:00:30 +0200138#ifndef CONFIG_IMX_HAB
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000139 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
Marek Vasuta7416eb2023-05-28 23:00:30 +0200140#endif
Tim Harvey65048742022-04-15 13:41:54 -0700141 fit,fdt-list = "of-list";
142 #address-cells = <1>;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000143
144 images {
145 uboot {
146 description = "U-Boot (64-bit)";
147 type = "standalone";
148 arch = "arm64";
149 compression = "none";
Simon Glass72cc5382022-10-20 18:22:39 -0600150 load = <CONFIG_TEXT_BASE>;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000151
152 uboot_blob: blob-ext {
153 filename = "u-boot-nodtb.bin";
154 };
155 };
156
Marek Vasut1de0eb12022-12-22 01:46:37 +0100157#ifndef CONFIG_ARMV8_PSCI
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000158 atf {
159 description = "ARM Trusted Firmware";
160 type = "firmware";
161 arch = "arm64";
162 compression = "none";
163 load = <0x970000>;
164 entry = <0x970000>;
165
Marcel Ziswilerd87d2f12022-04-08 10:06:56 +0200166 atf_blob: atf-blob {
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000167 filename = "bl31.bin";
Marcel Ziswilerd87d2f12022-04-08 10:06:56 +0200168 type = "atf-bl31";
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000169 };
170 };
Marek Vasut1de0eb12022-12-22 01:46:37 +0100171#endif
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000172
Tim Harvey65048742022-04-15 13:41:54 -0700173 @fdt-SEQ {
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000174 description = "NAME";
175 type = "flat_dt";
176 compression = "none";
177
Simon Glassceea7842023-08-23 19:18:01 -0600178 blob-ext {
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000179 filename = "u-boot.dtb";
180 };
181 };
182 };
183
184 configurations {
Tim Harvey65048742022-04-15 13:41:54 -0700185 default = "@config-DEFAULT-SEQ";
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000186
Simon Glassceea7842023-08-23 19:18:01 -0600187 @config-SEQ {
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000188 description = "NAME";
Tim Harvey65048742022-04-15 13:41:54 -0700189 fdt = "fdt-SEQ";
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000190 firmware = "uboot";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100191#ifndef CONFIG_ARMV8_PSCI
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000192 loadables = "atf";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100193#endif
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000194 };
195 };
196 };
197 };
Teresa Remmet1d05e8e2021-08-26 10:54:09 +0200198
199 imx-boot {
200 filename = "flash.bin";
201 pad-byte = <0x00>;
202
Rasmus Villemoese043b662023-09-19 11:28:47 +0200203 spl {
Teresa Remmet1d05e8e2021-08-26 10:54:09 +0200204 filename = "spl.bin";
205 offset = <0x0>;
Rasmus Villemoese043b662023-09-19 11:28:47 +0200206 type = "blob-ext";
Teresa Remmet1d05e8e2021-08-26 10:54:09 +0200207 };
208
Rasmus Villemoese043b662023-09-19 11:28:47 +0200209 binman_uboot: uboot {
Teresa Remmet1d05e8e2021-08-26 10:54:09 +0200210 filename = "u-boot.itb";
211 offset = <0x58000>;
Rasmus Villemoese043b662023-09-19 11:28:47 +0200212 type = "blob-ext";
Teresa Remmet1d05e8e2021-08-26 10:54:09 +0200213 };
214 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000215};