blob: 4fadcaea509370ec5af89e873ebfec1e1460668c [file] [log] [blame]
Teresa Remmetdafb1642021-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 Harvey93aa9692023-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 Remmetdafb1642021-07-07 12:57:57 +000020};
21
Tim Harvey93cac452023-08-24 12:03:56 -070022#ifdef CONFIG_FSL_CAAM
23&crypto {
24 bootph-pre-ram;
25};
26#endif
27
Marcel Ziswiler0b42fdc2022-11-07 22:22:39 +010028&soc {
Simon Glass8c103c32023-02-13 08:56:33 -070029 bootph-all;
30 bootph-pre-ram;
Teresa Remmetdafb1642021-07-07 12:57:57 +000031};
32
33&clk {
Simon Glass8c103c32023-02-13 08:56:33 -070034 bootph-pre-ram;
35 bootph-all;
Ye Li35813492021-08-17 14:32:04 +080036 /delete-property/ assigned-clocks;
37 /delete-property/ assigned-clock-parents;
38 /delete-property/ assigned-clock-rates;
Teresa Remmetdafb1642021-07-07 12:57:57 +000039};
40
41&osc_32k {
Simon Glass8c103c32023-02-13 08:56:33 -070042 bootph-pre-ram;
43 bootph-all;
Teresa Remmetdafb1642021-07-07 12:57:57 +000044};
45
46&osc_24m {
Simon Glass8c103c32023-02-13 08:56:33 -070047 bootph-pre-ram;
48 bootph-all;
Teresa Remmetdafb1642021-07-07 12:57:57 +000049};
50
51&aips1 {
Simon Glass8c103c32023-02-13 08:56:33 -070052 bootph-pre-ram;
53 bootph-all;
Teresa Remmetdafb1642021-07-07 12:57:57 +000054};
55
56&aips2 {
Simon Glass8c103c32023-02-13 08:56:33 -070057 bootph-pre-ram;
Teresa Remmetdafb1642021-07-07 12:57:57 +000058};
59
60&aips3 {
Simon Glass8c103c32023-02-13 08:56:33 -070061 bootph-pre-ram;
Adam Ford451799a2023-05-30 17:45:58 -050062 spba-bus@30800000 {
63 bootph-pre-ram;
64 };
Teresa Remmetdafb1642021-07-07 12:57:57 +000065};
66
67&iomuxc {
Simon Glass8c103c32023-02-13 08:56:33 -070068 bootph-pre-ram;
Teresa Remmetdafb1642021-07-07 12:57:57 +000069};
70
Tim Harvey93cac452023-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 Remmetdafb1642021-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 Fan25daa2c2022-07-26 16:41:20 +080096 ddr-1d-imem-fw {
Teresa Remmetdafb1642021-07-07 12:57:57 +000097 filename = "lpddr4_pmu_train_1d_imem_202006.bin";
Peng Fan25daa2c2022-07-26 16:41:20 +080098 type = "blob-ext";
Peng Fanc065a6c2022-07-26 16:41:22 +080099 align-end = <4>;
Teresa Remmetdafb1642021-07-07 12:57:57 +0000100 };
101
Peng Fan25daa2c2022-07-26 16:41:20 +0800102 ddr-1d-dmem-fw {
Teresa Remmetdafb1642021-07-07 12:57:57 +0000103 filename = "lpddr4_pmu_train_1d_dmem_202006.bin";
Peng Fan25daa2c2022-07-26 16:41:20 +0800104 type = "blob-ext";
Peng Fanc065a6c2022-07-26 16:41:22 +0800105 align-end = <4>;
Teresa Remmetdafb1642021-07-07 12:57:57 +0000106 };
107
Peng Fan25daa2c2022-07-26 16:41:20 +0800108 ddr-2d-imem-fw {
Teresa Remmetdafb1642021-07-07 12:57:57 +0000109 filename = "lpddr4_pmu_train_2d_imem_202006.bin";
Peng Fan25daa2c2022-07-26 16:41:20 +0800110 type = "blob-ext";
Peng Fanc065a6c2022-07-26 16:41:22 +0800111 align-end = <4>;
Teresa Remmetdafb1642021-07-07 12:57:57 +0000112 };
113
Peng Fan25daa2c2022-07-26 16:41:20 +0800114 ddr-2d-dmem-fw {
Teresa Remmetdafb1642021-07-07 12:57:57 +0000115 filename = "lpddr4_pmu_train_2d_dmem_202006.bin";
Peng Fan25daa2c2022-07-26 16:41:20 +0800116 type = "blob-ext";
Peng Fanc065a6c2022-07-26 16:41:22 +0800117 align-end = <4>;
Teresa Remmetdafb1642021-07-07 12:57:57 +0000118 };
119 };
120
Teresa Remmet42cef892021-08-26 10:54:09 +0200121 spl {
122 filename = "spl.bin";
123
Teresa Remmetdafb1642021-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 Vasut6039e0e2023-05-28 23:00:30 +0200138#ifndef CONFIG_IMX_HAB
Teresa Remmetdafb1642021-07-07 12:57:57 +0000139 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
Marek Vasut6039e0e2023-05-28 23:00:30 +0200140#endif
Tim Harvey6a21c692022-04-15 13:41:54 -0700141 fit,fdt-list = "of-list";
142 #address-cells = <1>;
Teresa Remmetdafb1642021-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 Glass98463902022-10-20 18:22:39 -0600150 load = <CONFIG_TEXT_BASE>;
Teresa Remmetdafb1642021-07-07 12:57:57 +0000151
152 uboot_blob: blob-ext {
153 filename = "u-boot-nodtb.bin";
154 };
155 };
156
Marek Vasut9694c0532022-12-22 01:46:37 +0100157#ifndef CONFIG_ARMV8_PSCI
Teresa Remmetdafb1642021-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 Ziswiler310de882022-04-08 10:06:56 +0200166 atf_blob: atf-blob {
Teresa Remmetdafb1642021-07-07 12:57:57 +0000167 filename = "bl31.bin";
Marcel Ziswiler310de882022-04-08 10:06:56 +0200168 type = "atf-bl31";
Teresa Remmetdafb1642021-07-07 12:57:57 +0000169 };
170 };
Marek Vasut9694c0532022-12-22 01:46:37 +0100171#endif
Teresa Remmetdafb1642021-07-07 12:57:57 +0000172
Tim Harvey6a21c692022-04-15 13:41:54 -0700173 @fdt-SEQ {
Teresa Remmetdafb1642021-07-07 12:57:57 +0000174 description = "NAME";
175 type = "flat_dt";
176 compression = "none";
177
Simon Glass98244a82023-08-23 19:18:01 -0600178 blob-ext {
Teresa Remmetdafb1642021-07-07 12:57:57 +0000179 filename = "u-boot.dtb";
180 };
181 };
182 };
183
184 configurations {
Tim Harvey6a21c692022-04-15 13:41:54 -0700185 default = "@config-DEFAULT-SEQ";
Teresa Remmetdafb1642021-07-07 12:57:57 +0000186
Simon Glass98244a82023-08-23 19:18:01 -0600187 @config-SEQ {
Teresa Remmetdafb1642021-07-07 12:57:57 +0000188 description = "NAME";
Tim Harvey6a21c692022-04-15 13:41:54 -0700189 fdt = "fdt-SEQ";
Teresa Remmetdafb1642021-07-07 12:57:57 +0000190 firmware = "uboot";
Marek Vasut9694c0532022-12-22 01:46:37 +0100191#ifndef CONFIG_ARMV8_PSCI
Teresa Remmetdafb1642021-07-07 12:57:57 +0000192 loadables = "atf";
Marek Vasut9694c0532022-12-22 01:46:37 +0100193#endif
Teresa Remmetdafb1642021-07-07 12:57:57 +0000194 };
195 };
196 };
197 };
Teresa Remmet42cef892021-08-26 10:54:09 +0200198
199 imx-boot {
200 filename = "flash.bin";
201 pad-byte = <0x00>;
202
Rasmus Villemoes9960d4a2023-09-19 11:28:47 +0200203 spl {
Teresa Remmet42cef892021-08-26 10:54:09 +0200204 filename = "spl.bin";
205 offset = <0x0>;
Rasmus Villemoes9960d4a2023-09-19 11:28:47 +0200206 type = "blob-ext";
Teresa Remmet42cef892021-08-26 10:54:09 +0200207 };
208
Rasmus Villemoes9960d4a2023-09-19 11:28:47 +0200209 binman_uboot: uboot {
Teresa Remmet42cef892021-08-26 10:54:09 +0200210 filename = "u-boot.itb";
211 offset = <0x58000>;
Rasmus Villemoes9960d4a2023-09-19 11:28:47 +0200212 type = "blob-ext";
Teresa Remmet42cef892021-08-26 10:54:09 +0200213 };
214 };
Teresa Remmetdafb1642021-07-07 12:57:57 +0000215};