blob: 6ab8f66256edaa70556f8e776d7b1cca6b1d0172 [file] [log] [blame]
Jagan Tekic1f09502021-04-26 18:23:46 +05301// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2020 Jagan Teki <jagan@amarulasolutions.com>
4 */
5
Marcel Ziswiler7cf55972021-10-23 01:15:13 +02006/ {
7 binman: binman {
Marcel Ziswiler7cf55972021-10-23 01:15:13 +02008 };
Tim Harveybb6a4c52023-08-24 12:01:42 -07009
10#ifdef CONFIG_OPTEE
11 firmware {
12 optee {
13 compatible = "linaro,optee-tz";
14 method = "smc";
15 };
16 };
17#endif
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020018};
19
Tim Harvey93cac452023-08-24 12:03:56 -070020#ifdef CONFIG_FSL_CAAM
21&crypto {
22 bootph-pre-ram;
23};
24#endif
25
Marcel Ziswilerdbd5ca22022-11-07 22:22:41 +010026&soc {
Simon Glass8c103c32023-02-13 08:56:33 -070027 bootph-all;
28 bootph-pre-ram;
Jagan Tekic1f09502021-04-26 18:23:46 +053029};
30
31&aips1 {
Simon Glass8c103c32023-02-13 08:56:33 -070032 bootph-all;
33 bootph-pre-ram;
Jagan Tekic1f09502021-04-26 18:23:46 +053034};
35
36&aips2 {
Simon Glass8c103c32023-02-13 08:56:33 -070037 bootph-pre-ram;
Jagan Tekic1f09502021-04-26 18:23:46 +053038};
39
40&aips3 {
Simon Glass8c103c32023-02-13 08:56:33 -070041 bootph-pre-ram;
Jagan Tekic1f09502021-04-26 18:23:46 +053042};
43
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020044&binman {
Marek Vasut37e50622024-04-26 01:00:37 +020045 filename = "flash.bin";
46 section {
47 pad-byte = <0x00>;
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020048
Marek Vasut37e50622024-04-26 01:00:37 +020049#ifdef CONFIG_FSPI_CONF_HEADER
50 fspi_conf_block {
51 filename = CONFIG_FSPI_CONF_FILE;
Marcel Ziswilerf17fb6c2021-10-23 01:15:16 +020052 type = "blob-ext";
Marek Vasut37e50622024-04-26 01:00:37 +020053 size = <0x1000>;
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020054 };
Marek Vasut37e50622024-04-26 01:00:37 +020055#endif
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020056
Marek Vasut37e50622024-04-26 01:00:37 +020057 nxp-imx8mimage {
58 filename = "u-boot-spl-mkimage.bin";
59 nxp,boot-from = "sd";
60 nxp,rom-version = <1>;
61 nxp,loader-address = <CONFIG_SPL_TEXT_BASE>;
62 args; /* Needed by mkimage etype superclass */
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020063
Marek Vasut37e50622024-04-26 01:00:37 +020064 section {
65 align = <4>;
66 align-size = <4>;
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020067 filename = "u-boot-spl-ddr.bin";
Marek Vasut37e50622024-04-26 01:00:37 +020068 pad-byte = <0xff>;
69
70 u-boot-spl {
71 align-end = <4>;
72 filename = "u-boot-spl.bin";
73 };
74
75 ddr-1d-imem-fw {
76 filename = "lpddr4_pmu_train_1d_imem.bin";
77 align-end = <4>;
78 type = "blob-ext";
79 };
80
81 ddr-1d-dmem-fw {
82 filename = "lpddr4_pmu_train_1d_dmem.bin";
83 align-end = <4>;
84 type = "blob-ext";
85 };
86
87 ddr-2d-imem-fw {
88 filename = "lpddr4_pmu_train_2d_imem.bin";
89 align-end = <4>;
90 type = "blob-ext";
91 };
92
93 ddr-2d-dmem-fw {
94 filename = "lpddr4_pmu_train_2d_dmem.bin";
95 align-end = <4>;
96 type = "blob-ext";
97 };
Marcel Ziswiler7cf55972021-10-23 01:15:13 +020098 };
99 };
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200100
101 fit {
102 description = "Configuration to load ATF before U-Boot";
Marek Vasut6039e0e2023-05-28 23:00:30 +0200103#ifndef CONFIG_IMX_HAB
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200104 fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>;
Marek Vasut6039e0e2023-05-28 23:00:30 +0200105#endif
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200106 fit,fdt-list = "of-list";
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +0200107 #address-cells = <1>;
Marek Vasut37e50622024-04-26 01:00:37 +0200108#ifdef CONFIG_FSPI_CONF_HEADER
109 offset = <0x58C00>;
110#else
111 offset = <0x57c00>;
112#endif
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200113
114 images {
115 uboot {
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200116 arch = "arm64";
117 compression = "none";
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +0200118 description = "U-Boot (64-bit)";
Simon Glass98463902022-10-20 18:22:39 -0600119 load = <CONFIG_TEXT_BASE>;
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +0200120 type = "standalone";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200121
Patrick Wildt49f55652022-01-13 15:22:17 +0100122 uboot-blob {
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200123 filename = "u-boot-nodtb.bin";
Marcel Ziswilerf17fb6c2021-10-23 01:15:16 +0200124 type = "blob-ext";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200125 };
126 };
127
Marek Vasut9694c0532022-12-22 01:46:37 +0100128#ifndef CONFIG_ARMV8_PSCI
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200129 atf {
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200130 arch = "arm64";
131 compression = "none";
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +0200132 description = "ARM Trusted Firmware";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200133 entry = <0x920000>;
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +0200134 load = <0x920000>;
135 type = "firmware";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200136
Patrick Wildt49f55652022-01-13 15:22:17 +0100137 atf-blob {
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200138 filename = "bl31.bin";
Marcel Ziswiler310de882022-04-08 10:06:56 +0200139 type = "atf-bl31";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200140 };
141 };
Marek Vasut9694c0532022-12-22 01:46:37 +0100142#endif
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200143
144 binman_fip: fip {
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200145 arch = "arm64";
146 compression = "none";
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +0200147 description = "Trusted Firmware FIP";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200148 load = <0x40310000>;
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +0200149 type = "firmware";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200150 };
151
152 @fdt-SEQ {
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +0200153 compression = "none";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200154 description = "NAME";
155 type = "flat_dt";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200156
Patrick Wildt49f55652022-01-13 15:22:17 +0100157 uboot-fdt-blob {
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200158 filename = "u-boot.dtb";
Marcel Ziswilerf17fb6c2021-10-23 01:15:16 +0200159 type = "blob-ext";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200160 };
161 };
162 };
163
164 configurations {
165 default = "@config-DEFAULT-SEQ";
166
Simon Glass98244a82023-08-23 19:18:01 -0600167 @config-SEQ {
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200168 description = "NAME";
Marcel Ziswilerf08c3fee2021-10-23 01:15:14 +0200169 fdt = "fdt-SEQ";
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200170 firmware = "uboot";
Marek Vasut9694c0532022-12-22 01:46:37 +0100171#ifndef CONFIG_ARMV8_PSCI
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200172 loadables = "atf";
Marek Vasut9694c0532022-12-22 01:46:37 +0100173#endif
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200174 };
175 };
176 };
177 };
Marcel Ziswiler7cf55972021-10-23 01:15:13 +0200178};
179
Jagan Tekic1f09502021-04-26 18:23:46 +0530180&clk {
Simon Glass8c103c32023-02-13 08:56:33 -0700181 bootph-all;
182 bootph-pre-ram;
Jagan Tekic1f09502021-04-26 18:23:46 +0530183 /delete-property/ assigned-clocks;
184 /delete-property/ assigned-clock-parents;
185 /delete-property/ assigned-clock-rates;
186};
187
188&iomuxc {
Simon Glass8c103c32023-02-13 08:56:33 -0700189 bootph-pre-ram;
Jagan Tekic1f09502021-04-26 18:23:46 +0530190};
191
192&osc_24m {
Simon Glass8c103c32023-02-13 08:56:33 -0700193 bootph-all;
194 bootph-pre-ram;
Jagan Tekic1f09502021-04-26 18:23:46 +0530195};
Marcel Ziswiler24a7a3c2022-07-21 15:27:40 +0200196
Tim Harvey93cac452023-08-24 12:03:56 -0700197#ifdef CONFIG_FSL_CAAM
198&sec_jr0 {
199 bootph-pre-ram;
200};
201
202&sec_jr1 {
203 bootph-pre-ram;
204};
205
206&sec_jr2 {
207 bootph-pre-ram;
208};
209#endif
210
Marcel Ziswiler24a7a3c2022-07-21 15:27:40 +0200211&spba1 {
Simon Glass8c103c32023-02-13 08:56:33 -0700212 bootph-all;
213 bootph-pre-ram;
Marcel Ziswiler24a7a3c2022-07-21 15:27:40 +0200214};
215
216&spba2 {
Simon Glass8c103c32023-02-13 08:56:33 -0700217 bootph-all;
218 bootph-pre-ram;
Marcel Ziswiler24a7a3c2022-07-21 15:27:40 +0200219};