Prepare v2024.10
[platform/kernel/u-boot.git] / arch / arm / dts / imx8mp-u-boot.dtsi
1 // 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         };
10
11 #ifdef CONFIG_OPTEE
12         firmware {
13                 optee {
14                         compatible = "linaro,optee-tz";
15                         method = "smc";
16                 };
17         };
18 #endif
19 };
20
21 #ifdef CONFIG_FSL_CAAM
22 &crypto {
23         bootph-pre-ram;
24 };
25 #endif
26
27 &soc {
28         bootph-all;
29         bootph-pre-ram;
30 };
31
32 &clk {
33         bootph-pre-ram;
34         bootph-all;
35         /delete-property/ assigned-clocks;
36         /delete-property/ assigned-clock-parents;
37         /delete-property/ assigned-clock-rates;
38 };
39
40 &osc_32k {
41         bootph-pre-ram;
42         bootph-all;
43 };
44
45 &osc_24m {
46         bootph-pre-ram;
47         bootph-all;
48 };
49
50 &aips1 {
51         bootph-pre-ram;
52         bootph-all;
53 };
54
55 &aips2 {
56         bootph-pre-ram;
57 };
58
59 &aips3 {
60         bootph-pre-ram;
61         spba-bus@30800000 {
62                 bootph-pre-ram;
63         };
64 };
65
66 &iomuxc {
67         bootph-pre-ram;
68 };
69
70 #ifdef CONFIG_FSL_CAAM
71 &sec_jr0 {
72         bootph-pre-ram;
73 };
74
75 &sec_jr1 {
76         bootph-pre-ram;
77 };
78
79 &sec_jr2 {
80         bootph-pre-ram;
81 };
82 #endif
83
84 &binman {
85         filename = "flash.bin";
86         section {
87                 pad-byte = <0x00>;
88
89 #ifdef CONFIG_IMX_HAB
90                 nxp-imx8mcst@0 {
91                         filename = "u-boot-spl-mkimage.signed.bin";
92                         nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
93                         nxp,unlock;
94                         args;   /* Needed by mkimage etype superclass */
95 #endif
96
97                         binman_imx_spl: nxp-imx8mimage {
98                                 filename = "u-boot-spl-mkimage.bin";
99                                 nxp,boot-from = "sd";
100                                 nxp,rom-version = <2>;
101                                 nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
102                                 args;   /* Needed by mkimage etype superclass */
103
104                                 section {
105                                         filename = "u-boot-spl-ddr.bin";
106                                         pad-byte = <0xff>;
107                                         align-size = <4>;
108                                         align = <4>;
109
110                                         u-boot-spl {
111                                                 align-end = <4>;
112                                         };
113
114                                         ddr-1d-imem-fw {
115                                                 filename = "lpddr4_pmu_train_1d_imem_202006.bin";
116                                                 type = "blob-ext";
117                                                 align-end = <4>;
118                                         };
119
120                                         ddr-1d-dmem-fw {
121                                                 filename = "lpddr4_pmu_train_1d_dmem_202006.bin";
122                                                 type = "blob-ext";
123                                                 align-end = <4>;
124                                         };
125
126                                         ddr-2d-imem-fw {
127                                                 filename = "lpddr4_pmu_train_2d_imem_202006.bin";
128                                                 type = "blob-ext";
129                                                 align-end = <4>;
130                                         };
131
132                                         ddr-2d-dmem-fw {
133                                                 filename = "lpddr4_pmu_train_2d_dmem_202006.bin";
134                                                 type = "blob-ext";
135                                                 align-end = <4>;
136                                         };
137                                 };
138                         };
139 #ifdef CONFIG_IMX_HAB
140                 };
141
142                 nxp-imx8mcst@1 {
143                         filename = "u-boot-fit.signed.bin";
144                         nxp,loader-address = <CONFIG_SPL_LOAD_FIT_ADDRESS>;
145                         offset = <0x58000>;
146                         args;   /* Needed by mkimage etype superclass */
147 #endif
148
149                         binman_imx_fit: fit {
150                                 description = "Configuration to load ATF before U-Boot";
151 #ifndef CONFIG_IMX_HAB
152                                 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
153 #endif
154                                 fit,fdt-list = "of-list";
155                                 #address-cells = <1>;
156                                 offset = <0x58000>;
157
158                                 images {
159                                         uboot {
160                                                 description = "U-Boot (64-bit)";
161                                                 type = "standalone";
162                                                 arch = "arm64";
163                                                 compression = "none";
164                                                 load = <CONFIG_TEXT_BASE>;
165
166                                                 uboot_blob: blob-ext {
167                                                         filename = "u-boot-nodtb.bin";
168                                                 };
169                                         };
170
171 #ifndef CONFIG_ARMV8_PSCI
172                                         atf {
173                                                 description = "ARM Trusted Firmware";
174                                                 type = "firmware";
175                                                 arch = "arm64";
176                                                 compression = "none";
177                                                 load = <0x970000>;
178                                                 entry = <0x970000>;
179
180                                                 atf_blob: atf-blob {
181                                                         filename = "bl31.bin";
182                                                         type = "atf-bl31";
183                                                 };
184                                         };
185 #endif
186
187                                         @fdt-SEQ {
188                                                 description = "NAME";
189                                                 type = "flat_dt";
190                                                 compression = "none";
191
192                                                 blob-ext {
193                                                         filename = "u-boot.dtb";
194                                                 };
195                                         };
196                                 };
197
198                                 configurations {
199                                         default = "@config-DEFAULT-SEQ";
200
201                                         @config-SEQ {
202                                                 description = "NAME";
203                                                 fdt = "fdt-SEQ";
204                                                 firmware = "uboot";
205 #ifndef CONFIG_ARMV8_PSCI
206                                                 loadables = "atf";
207 #endif
208                                         };
209                                 };
210                         };
211 #ifdef CONFIG_IMX_HAB
212                 };
213 #endif
214         };
215 };