blob: 56749ccacd2b1a401027a360921e3a4fd25c3b3f [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 {
Teresa Remmet3e94fbd2021-07-07 12:57:57 +00009 };
Tim Harvey2ae9f5a2023-08-24 12:01:43 -070010
11#ifdef CONFIG_OPTEE
12 firmware {
13 optee {
14 compatible = "linaro,optee-tz";
15 method = "smc";
16 };
17 };
18#endif
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000019};
20
Tim Harvey0951b9a2023-08-24 12:03:56 -070021#ifdef CONFIG_FSL_CAAM
22&crypto {
23 bootph-pre-ram;
24};
25#endif
26
Marcel Ziswilercdfde792022-11-07 22:22:39 +010027&soc {
Simon Glassd3a98cb2023-02-13 08:56:33 -070028 bootph-all;
29 bootph-pre-ram;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000030};
31
32&clk {
Simon Glassd3a98cb2023-02-13 08:56:33 -070033 bootph-pre-ram;
34 bootph-all;
Ye Lif93d54d2021-08-17 14:32:04 +080035 /delete-property/ assigned-clocks;
36 /delete-property/ assigned-clock-parents;
37 /delete-property/ assigned-clock-rates;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000038};
39
40&osc_32k {
Simon Glassd3a98cb2023-02-13 08:56:33 -070041 bootph-pre-ram;
42 bootph-all;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000043};
44
45&osc_24m {
Simon Glassd3a98cb2023-02-13 08:56:33 -070046 bootph-pre-ram;
47 bootph-all;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000048};
49
50&aips1 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070051 bootph-pre-ram;
52 bootph-all;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000053};
54
55&aips2 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070056 bootph-pre-ram;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000057};
58
59&aips3 {
Simon Glassd3a98cb2023-02-13 08:56:33 -070060 bootph-pre-ram;
Adam Ford0a357f92023-05-30 17:45:58 -050061 spba-bus@30800000 {
62 bootph-pre-ram;
63 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000064};
65
66&iomuxc {
Simon Glassd3a98cb2023-02-13 08:56:33 -070067 bootph-pre-ram;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000068};
69
Tim Harvey0951b9a2023-08-24 12:03:56 -070070#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
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000084&binman {
Marek Vasutf44c7382024-04-26 01:00:37 +020085 filename = "flash.bin";
86 section {
87 pad-byte = <0x00>;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000088
Marek Vasutfd5c8842024-05-21 12:48:25 +020089#ifdef CONFIG_IMX_HAB
90 nxp-imx8mcst@0 {
91 filename = "u-boot-spl-mkimage.signed.bin";
Marek Vasutf44c7382024-04-26 01:00:37 +020092 nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
Marek Vasutfd5c8842024-05-21 12:48:25 +020093 nxp,unlock;
Marek Vasutf44c7382024-04-26 01:00:37 +020094 args; /* Needed by mkimage etype superclass */
Marek Vasutfd5c8842024-05-21 12:48:25 +020095#endif
Teresa Remmet3e94fbd2021-07-07 12:57:57 +000096
Marek Vasutfd5c8842024-05-21 12:48:25 +020097 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 */
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000103
Marek Vasutfd5c8842024-05-21 12:48:25 +0200104 section {
105 filename = "u-boot-spl-ddr.bin";
106 pad-byte = <0xff>;
107 align-size = <4>;
108 align = <4>;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000109
Marek Vasutfd5c8842024-05-21 12:48:25 +0200110 u-boot-spl {
111 align-end = <4>;
112 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000113
Marek Vasutfd5c8842024-05-21 12:48:25 +0200114 ddr-1d-imem-fw {
115 filename = "lpddr4_pmu_train_1d_imem_202006.bin";
116 type = "blob-ext";
117 align-end = <4>;
118 };
Teresa Remmet1d05e8e2021-08-26 10:54:09 +0200119
Marek Vasutfd5c8842024-05-21 12:48:25 +0200120 ddr-1d-dmem-fw {
121 filename = "lpddr4_pmu_train_1d_dmem_202006.bin";
122 type = "blob-ext";
123 align-end = <4>;
124 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000125
Marek Vasutfd5c8842024-05-21 12:48:25 +0200126 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 };
Marek Vasutf44c7382024-04-26 01:00:37 +0200137 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000138 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200139#ifdef CONFIG_IMX_HAB
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000140 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000141
Marek Vasutfd5c8842024-05-21 12:48:25 +0200142 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";
Marek Vasut2b938212024-09-24 15:02:09 +0200151 filename = "u-boot.itb";
Marek Vasuta7416eb2023-05-28 23:00:30 +0200152#ifndef CONFIG_IMX_HAB
Marek Vasutfd5c8842024-05-21 12:48:25 +0200153 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
Marek Vasuta7416eb2023-05-28 23:00:30 +0200154#endif
Marek Vasutfd5c8842024-05-21 12:48:25 +0200155 fit,fdt-list = "of-list";
156 #address-cells = <1>;
157 offset = <0x58000>;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000158
Marek Vasutfd5c8842024-05-21 12:48:25 +0200159 images {
160 uboot {
161 description = "U-Boot (64-bit)";
162 type = "standalone";
163 arch = "arm64";
164 compression = "none";
165 load = <CONFIG_TEXT_BASE>;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000166
Marek Vasutfd5c8842024-05-21 12:48:25 +0200167 uboot_blob: blob-ext {
168 filename = "u-boot-nodtb.bin";
169 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000170 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000171
Marek Vasut1de0eb12022-12-22 01:46:37 +0100172#ifndef CONFIG_ARMV8_PSCI
Marek Vasutfd5c8842024-05-21 12:48:25 +0200173 atf {
174 description = "ARM Trusted Firmware";
175 type = "firmware";
176 arch = "arm64";
177 compression = "none";
178 load = <0x970000>;
179 entry = <0x970000>;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000180
Marek Vasutfd5c8842024-05-21 12:48:25 +0200181 atf_blob: atf-blob {
182 filename = "bl31.bin";
183 type = "atf-bl31";
184 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000185 };
Marek Vasut1de0eb12022-12-22 01:46:37 +0100186#endif
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000187
Marek Vasutfd5c8842024-05-21 12:48:25 +0200188 @fdt-SEQ {
189 description = "NAME";
190 type = "flat_dt";
191 compression = "none";
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000192
Marek Vasutfd5c8842024-05-21 12:48:25 +0200193 blob-ext {
194 filename = "u-boot.dtb";
195 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000196 };
197 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000198
Marek Vasutfd5c8842024-05-21 12:48:25 +0200199 configurations {
200 default = "@config-DEFAULT-SEQ";
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000201
Marek Vasutfd5c8842024-05-21 12:48:25 +0200202 @config-SEQ {
203 description = "NAME";
204 fdt = "fdt-SEQ";
205 firmware = "uboot";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100206#ifndef CONFIG_ARMV8_PSCI
Marek Vasutfd5c8842024-05-21 12:48:25 +0200207 loadables = "atf";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100208#endif
Marek Vasutfd5c8842024-05-21 12:48:25 +0200209 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000210 };
211 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200212#ifdef CONFIG_IMX_HAB
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000213 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200214#endif
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000215 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000216};