blob: f2655a4d0c88d4145dc184c8c952bd0c6c5887b8 [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 Vasuta7416eb2023-05-28 23:00:30 +0200151#ifndef CONFIG_IMX_HAB
Marek Vasutfd5c8842024-05-21 12:48:25 +0200152 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
Marek Vasuta7416eb2023-05-28 23:00:30 +0200153#endif
Marek Vasutfd5c8842024-05-21 12:48:25 +0200154 fit,fdt-list = "of-list";
155 #address-cells = <1>;
156 offset = <0x58000>;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000157
Marek Vasutfd5c8842024-05-21 12:48:25 +0200158 images {
159 uboot {
160 description = "U-Boot (64-bit)";
161 type = "standalone";
162 arch = "arm64";
163 compression = "none";
164 load = <CONFIG_TEXT_BASE>;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000165
Marek Vasutfd5c8842024-05-21 12:48:25 +0200166 uboot_blob: blob-ext {
167 filename = "u-boot-nodtb.bin";
168 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000169 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000170
Marek Vasut1de0eb12022-12-22 01:46:37 +0100171#ifndef CONFIG_ARMV8_PSCI
Marek Vasutfd5c8842024-05-21 12:48:25 +0200172 atf {
173 description = "ARM Trusted Firmware";
174 type = "firmware";
175 arch = "arm64";
176 compression = "none";
177 load = <0x970000>;
178 entry = <0x970000>;
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000179
Marek Vasutfd5c8842024-05-21 12:48:25 +0200180 atf_blob: atf-blob {
181 filename = "bl31.bin";
182 type = "atf-bl31";
183 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000184 };
Marek Vasut1de0eb12022-12-22 01:46:37 +0100185#endif
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000186
Marek Vasutfd5c8842024-05-21 12:48:25 +0200187 @fdt-SEQ {
188 description = "NAME";
189 type = "flat_dt";
190 compression = "none";
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000191
Marek Vasutfd5c8842024-05-21 12:48:25 +0200192 blob-ext {
193 filename = "u-boot.dtb";
194 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000195 };
196 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000197
Marek Vasutfd5c8842024-05-21 12:48:25 +0200198 configurations {
199 default = "@config-DEFAULT-SEQ";
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000200
Marek Vasutfd5c8842024-05-21 12:48:25 +0200201 @config-SEQ {
202 description = "NAME";
203 fdt = "fdt-SEQ";
204 firmware = "uboot";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100205#ifndef CONFIG_ARMV8_PSCI
Marek Vasutfd5c8842024-05-21 12:48:25 +0200206 loadables = "atf";
Marek Vasut1de0eb12022-12-22 01:46:37 +0100207#endif
Marek Vasutfd5c8842024-05-21 12:48:25 +0200208 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000209 };
210 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200211#ifdef CONFIG_IMX_HAB
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000212 };
Marek Vasutfd5c8842024-05-21 12:48:25 +0200213#endif
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000214 };
Teresa Remmet3e94fbd2021-07-07 12:57:57 +0000215};