Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
2 | /* | ||||
3 | * Copyright (C) 2020 Jagan Teki <jagan@amarulasolutions.com> | ||||
4 | */ | ||||
5 | |||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 6 | / { |
7 | binman: binman { | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 8 | }; |
Tim Harvey | b34f5a1 | 2023-08-24 12:01:42 -0700 | [diff] [blame] | 9 | |
10 | #ifdef CONFIG_OPTEE | ||||
11 | firmware { | ||||
12 | optee { | ||||
13 | compatible = "linaro,optee-tz"; | ||||
14 | method = "smc"; | ||||
15 | }; | ||||
16 | }; | ||||
17 | #endif | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 18 | }; |
19 | |||||
Tim Harvey | 0951b9a | 2023-08-24 12:03:56 -0700 | [diff] [blame] | 20 | #ifdef CONFIG_FSL_CAAM |
21 | &crypto { | ||||
22 | bootph-pre-ram; | ||||
23 | }; | ||||
24 | #endif | ||||
25 | |||||
Marcel Ziswiler | 6dd051a | 2022-11-07 22:22:41 +0100 | [diff] [blame] | 26 | &soc { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 27 | bootph-all; |
28 | bootph-pre-ram; | ||||
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 29 | }; |
30 | |||||
31 | &aips1 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 32 | bootph-all; |
33 | bootph-pre-ram; | ||||
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 34 | }; |
35 | |||||
36 | &aips2 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 37 | bootph-pre-ram; |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 38 | }; |
39 | |||||
40 | &aips3 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 41 | bootph-pre-ram; |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 42 | }; |
43 | |||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 44 | &binman { |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 45 | filename = "flash.bin"; |
46 | section { | ||||
47 | pad-byte = <0x00>; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 48 | |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 49 | #ifdef CONFIG_FSPI_CONF_HEADER |
50 | fspi_conf_block { | ||||
51 | filename = CONFIG_FSPI_CONF_FILE; | ||||
Marcel Ziswiler | 3c2534a | 2021-10-23 01:15:16 +0200 | [diff] [blame] | 52 | type = "blob-ext"; |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 53 | size = <0x1000>; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 54 | }; |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 55 | #endif |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 56 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 57 | #ifdef CONFIG_IMX_HAB |
58 | nxp-imx8mcst@0 { | ||||
59 | filename = "u-boot-spl-mkimage.signed.bin"; | ||||
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 60 | nxp,loader-address = <CONFIG_SPL_TEXT_BASE>; |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 61 | nxp,unlock; |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 62 | args; /* Needed by mkimage etype superclass */ |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 63 | #endif |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 64 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 65 | binman_imx_spl: nxp-imx8mimage { |
66 | filename = "u-boot-spl-mkimage.bin"; | ||||
67 | nxp,boot-from = "sd"; | ||||
68 | nxp,rom-version = <1>; | ||||
69 | nxp,loader-address = <CONFIG_SPL_TEXT_BASE>; | ||||
70 | args; /* Needed by mkimage etype superclass */ | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 71 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 72 | section { |
73 | align = <4>; | ||||
74 | align-size = <4>; | ||||
75 | filename = "u-boot-spl-ddr.bin"; | ||||
76 | pad-byte = <0xff>; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 77 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 78 | u-boot-spl { |
79 | align-end = <4>; | ||||
80 | filename = "u-boot-spl.bin"; | ||||
81 | }; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 82 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 83 | ddr-1d-imem-fw { |
84 | filename = "lpddr4_pmu_train_1d_imem.bin"; | ||||
85 | align-end = <4>; | ||||
86 | type = "blob-ext"; | ||||
87 | }; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 88 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 89 | ddr-1d-dmem-fw { |
90 | filename = "lpddr4_pmu_train_1d_dmem.bin"; | ||||
91 | align-end = <4>; | ||||
92 | type = "blob-ext"; | ||||
93 | }; | ||||
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 94 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 95 | ddr-2d-imem-fw { |
96 | filename = "lpddr4_pmu_train_2d_imem.bin"; | ||||
97 | align-end = <4>; | ||||
98 | type = "blob-ext"; | ||||
99 | }; | ||||
100 | |||||
101 | ddr-2d-dmem-fw { | ||||
102 | filename = "lpddr4_pmu_train_2d_dmem.bin"; | ||||
103 | align-end = <4>; | ||||
104 | type = "blob-ext"; | ||||
105 | }; | ||||
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 106 | }; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 107 | }; |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 108 | #ifdef CONFIG_IMX_HAB |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 109 | }; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 110 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 111 | nxp-imx8mcst@1 { |
112 | filename = "u-boot-fit.signed.bin"; | ||||
113 | nxp,loader-address = <CONFIG_SPL_LOAD_FIT_ADDRESS>; | ||||
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 114 | #ifdef CONFIG_FSPI_CONF_HEADER |
115 | offset = <0x58C00>; | ||||
116 | #else | ||||
117 | offset = <0x57c00>; | ||||
118 | #endif | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 119 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 120 | args; /* Needed by mkimage etype superclass */ |
121 | #endif | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 122 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 123 | binman_imx_fit: fit { |
124 | description = "Configuration to load ATF before U-Boot"; | ||||
125 | #ifndef CONFIG_IMX_HAB | ||||
126 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; | ||||
127 | #endif | ||||
128 | fit,fdt-list = "of-list"; | ||||
129 | #address-cells = <1>; | ||||
130 | #ifdef CONFIG_FSPI_CONF_HEADER | ||||
131 | offset = <0x58C00>; | ||||
132 | #else | ||||
133 | offset = <0x57c00>; | ||||
134 | #endif | ||||
135 | |||||
136 | images { | ||||
137 | uboot { | ||||
138 | arch = "arm64"; | ||||
139 | compression = "none"; | ||||
140 | description = "U-Boot (64-bit)"; | ||||
141 | load = <CONFIG_TEXT_BASE>; | ||||
142 | type = "standalone"; | ||||
143 | |||||
144 | uboot-blob { | ||||
145 | filename = "u-boot-nodtb.bin"; | ||||
146 | type = "blob-ext"; | ||||
147 | }; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 148 | }; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 149 | |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 150 | #ifndef CONFIG_ARMV8_PSCI |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 151 | atf { |
152 | arch = "arm64"; | ||||
153 | compression = "none"; | ||||
154 | description = "ARM Trusted Firmware"; | ||||
155 | entry = <0x920000>; | ||||
156 | load = <0x920000>; | ||||
157 | type = "firmware"; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 158 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 159 | atf-blob { |
160 | filename = "bl31.bin"; | ||||
161 | type = "atf-bl31"; | ||||
162 | }; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 163 | }; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 164 | #endif |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 165 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 166 | binman_fip: fip { |
167 | arch = "arm64"; | ||||
168 | compression = "none"; | ||||
169 | description = "Trusted Firmware FIP"; | ||||
170 | load = <0x40310000>; | ||||
171 | type = "firmware"; | ||||
172 | }; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 173 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 174 | @fdt-SEQ { |
175 | compression = "none"; | ||||
176 | description = "NAME"; | ||||
177 | type = "flat_dt"; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 178 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 179 | uboot-fdt-blob { |
180 | filename = "u-boot.dtb"; | ||||
181 | type = "blob-ext"; | ||||
182 | }; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 183 | }; |
184 | }; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 185 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 186 | configurations { |
187 | default = "@config-DEFAULT-SEQ"; | ||||
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 188 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 189 | @config-SEQ { |
190 | description = "NAME"; | ||||
191 | fdt = "fdt-SEQ"; | ||||
192 | firmware = "uboot"; | ||||
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 193 | #ifndef CONFIG_ARMV8_PSCI |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 194 | loadables = "atf"; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 195 | #endif |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 196 | }; |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 197 | }; |
198 | }; | ||||
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 199 | #ifdef CONFIG_IMX_HAB |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 200 | }; |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 201 | #endif |
Marcel Ziswiler | d56d117 | 2021-10-23 01:15:13 +0200 | [diff] [blame] | 202 | }; |
203 | }; | ||||
204 | |||||
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 205 | &clk { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 206 | bootph-all; |
207 | bootph-pre-ram; | ||||
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 208 | /delete-property/ assigned-clocks; |
209 | /delete-property/ assigned-clock-parents; | ||||
210 | /delete-property/ assigned-clock-rates; | ||||
211 | }; | ||||
212 | |||||
213 | &iomuxc { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 214 | bootph-pre-ram; |
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 215 | }; |
216 | |||||
217 | &osc_24m { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 218 | bootph-all; |
219 | bootph-pre-ram; | ||||
Jagan Teki | 73d5118 | 2021-04-26 18:23:46 +0530 | [diff] [blame] | 220 | }; |
Marcel Ziswiler | ca453f2 | 2022-07-21 15:27:40 +0200 | [diff] [blame] | 221 | |
Tim Harvey | 0951b9a | 2023-08-24 12:03:56 -0700 | [diff] [blame] | 222 | #ifdef CONFIG_FSL_CAAM |
223 | &sec_jr0 { | ||||
224 | bootph-pre-ram; | ||||
225 | }; | ||||
226 | |||||
227 | &sec_jr1 { | ||||
228 | bootph-pre-ram; | ||||
229 | }; | ||||
230 | |||||
231 | &sec_jr2 { | ||||
232 | bootph-pre-ram; | ||||
233 | }; | ||||
234 | #endif | ||||
235 | |||||
Marcel Ziswiler | ca453f2 | 2022-07-21 15:27:40 +0200 | [diff] [blame] | 236 | &spba1 { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 237 | bootph-all; |
238 | bootph-pre-ram; | ||||
Marcel Ziswiler | ca453f2 | 2022-07-21 15:27:40 +0200 | [diff] [blame] | 239 | }; |
240 | |||||
241 | &spba2 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 242 | bootph-all; |
243 | bootph-pre-ram; | ||||
Marcel Ziswiler | ca453f2 | 2022-07-21 15:27:40 +0200 | [diff] [blame] | 244 | }; |