Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 1 | // 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 Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 9 | }; |
Tim Harvey | 93aa969 | 2023-08-24 12:01:43 -0700 | [diff] [blame] | 10 | |
11 | #ifdef CONFIG_OPTEE | ||||
12 | firmware { | ||||
13 | optee { | ||||
14 | compatible = "linaro,optee-tz"; | ||||
15 | method = "smc"; | ||||
16 | }; | ||||
17 | }; | ||||
18 | #endif | ||||
Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 19 | }; |
20 | |||||
Tim Harvey | 93cac45 | 2023-08-24 12:03:56 -0700 | [diff] [blame] | 21 | #ifdef CONFIG_FSL_CAAM |
22 | &crypto { | ||||
23 | bootph-pre-ram; | ||||
24 | }; | ||||
25 | #endif | ||||
26 | |||||
Marcel Ziswiler | 0b42fdc | 2022-11-07 22:22:39 +0100 | [diff] [blame] | 27 | &soc { |
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 28 | bootph-all; |
29 | bootph-pre-ram; | ||||
Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 30 | }; |
31 | |||||
32 | &clk { | ||||
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 33 | bootph-pre-ram; |
34 | bootph-all; | ||||
Ye Li | 3581349 | 2021-08-17 14:32:04 +0800 | [diff] [blame] | 35 | /delete-property/ assigned-clocks; |
36 | /delete-property/ assigned-clock-parents; | ||||
37 | /delete-property/ assigned-clock-rates; | ||||
Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 38 | }; |
39 | |||||
40 | &osc_32k { | ||||
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 41 | bootph-pre-ram; |
42 | bootph-all; | ||||
Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 43 | }; |
44 | |||||
45 | &osc_24m { | ||||
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 46 | bootph-pre-ram; |
47 | bootph-all; | ||||
Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 48 | }; |
49 | |||||
50 | &aips1 { | ||||
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 51 | bootph-pre-ram; |
52 | bootph-all; | ||||
Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 53 | }; |
54 | |||||
55 | &aips2 { | ||||
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 56 | bootph-pre-ram; |
Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 57 | }; |
58 | |||||
59 | &aips3 { | ||||
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 60 | bootph-pre-ram; |
Adam Ford | 451799a | 2023-05-30 17:45:58 -0500 | [diff] [blame] | 61 | spba-bus@30800000 { |
62 | bootph-pre-ram; | ||||
63 | }; | ||||
Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 64 | }; |
65 | |||||
66 | &iomuxc { | ||||
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 67 | bootph-pre-ram; |
Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 68 | }; |
69 | |||||
Tim Harvey | 93cac45 | 2023-08-24 12:03:56 -0700 | [diff] [blame] | 70 | #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 Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 84 | &binman { |
Marek Vasut | 37e5062 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 85 | filename = "flash.bin"; |
86 | section { | ||||
87 | pad-byte = <0x00>; | ||||
Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 88 | |
Marek Vasut | d415a48 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 89 | #ifdef CONFIG_IMX_HAB |
90 | nxp-imx8mcst@0 { | ||||
91 | filename = "u-boot-spl-mkimage.signed.bin"; | ||||
Marek Vasut | 37e5062 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 92 | nxp,loader-address = <CONFIG_SPL_TEXT_BASE>; |
Marek Vasut | d415a48 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 93 | nxp,unlock; |
Marek Vasut | 37e5062 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 94 | args; /* Needed by mkimage etype superclass */ |
Marek Vasut | d415a48 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 95 | #endif |
Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 96 | |
Marek Vasut | d415a48 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 97 | 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 */ | ||||
Marek Vasut | 37e5062 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 103 | |
Marek Vasut | d415a48 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 104 | section { |
105 | filename = "u-boot-spl-ddr.bin"; | ||||
106 | pad-byte = <0xff>; | ||||
107 | align-size = <4>; | ||||
108 | align = <4>; | ||||
Marek Vasut | 37e5062 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 109 | |
Marek Vasut | d415a48 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 110 | u-boot-spl { |
111 | align-end = <4>; | ||||
112 | }; | ||||
Marek Vasut | 37e5062 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 113 | |
Marek Vasut | d415a48 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 114 | ddr-1d-imem-fw { |
115 | filename = "lpddr4_pmu_train_1d_imem_202006.bin"; | ||||
116 | type = "blob-ext"; | ||||
117 | align-end = <4>; | ||||
118 | }; | ||||
Marek Vasut | 37e5062 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 119 | |
Marek Vasut | d415a48 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 120 | ddr-1d-dmem-fw { |
121 | filename = "lpddr4_pmu_train_1d_dmem_202006.bin"; | ||||
122 | type = "blob-ext"; | ||||
123 | align-end = <4>; | ||||
124 | }; | ||||
Marek Vasut | 37e5062 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 125 | |
Marek Vasut | d415a48 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 126 | 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 Vasut | 37e5062 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 137 | }; |
Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 138 | }; |
Marek Vasut | d415a48 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 139 | #ifdef CONFIG_IMX_HAB |
Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 140 | }; |
Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 141 | |
Marek Vasut | d415a48 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 142 | nxp-imx8mcst@1 { |
143 | filename = "u-boot-fit.signed.bin"; | ||||
144 | nxp,loader-address = <CONFIG_SPL_LOAD_FIT_ADDRESS>; | ||||
Marek Vasut | 37e5062 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 145 | offset = <0x58000>; |
Marek Vasut | d415a48 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 146 | args; /* Needed by mkimage etype superclass */ |
Marek Vasut | 9694c053 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 147 | #endif |
Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 148 | |
Marek Vasut | d415a48 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 149 | binman_imx_fit: fit { |
150 | description = "Configuration to load ATF before U-Boot"; | ||||
Marek Vasut | be847fa | 2024-09-24 15:02:09 +0200 | [diff] [blame^] | 151 | filename = "u-boot.itb"; |
Marek Vasut | d415a48 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 152 | #ifndef CONFIG_IMX_HAB |
153 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; | ||||
154 | #endif | ||||
155 | fit,fdt-list = "of-list"; | ||||
156 | #address-cells = <1>; | ||||
157 | offset = <0x58000>; | ||||
Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 158 | |
Marek Vasut | d415a48 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 159 | images { |
160 | uboot { | ||||
161 | description = "U-Boot (64-bit)"; | ||||
162 | type = "standalone"; | ||||
163 | arch = "arm64"; | ||||
164 | compression = "none"; | ||||
165 | load = <CONFIG_TEXT_BASE>; | ||||
166 | |||||
167 | uboot_blob: blob-ext { | ||||
168 | filename = "u-boot-nodtb.bin"; | ||||
169 | }; | ||||
170 | }; | ||||
171 | |||||
172 | #ifndef CONFIG_ARMV8_PSCI | ||||
173 | atf { | ||||
174 | description = "ARM Trusted Firmware"; | ||||
175 | type = "firmware"; | ||||
176 | arch = "arm64"; | ||||
177 | compression = "none"; | ||||
178 | load = <0x970000>; | ||||
179 | entry = <0x970000>; | ||||
180 | |||||
181 | atf_blob: atf-blob { | ||||
182 | filename = "bl31.bin"; | ||||
183 | type = "atf-bl31"; | ||||
184 | }; | ||||
185 | }; | ||||
186 | #endif | ||||
187 | |||||
188 | @fdt-SEQ { | ||||
189 | description = "NAME"; | ||||
190 | type = "flat_dt"; | ||||
191 | compression = "none"; | ||||
192 | |||||
193 | blob-ext { | ||||
194 | filename = "u-boot.dtb"; | ||||
195 | }; | ||||
196 | }; | ||||
197 | }; | ||||
198 | |||||
199 | configurations { | ||||
200 | default = "@config-DEFAULT-SEQ"; | ||||
201 | |||||
202 | @config-SEQ { | ||||
203 | description = "NAME"; | ||||
204 | fdt = "fdt-SEQ"; | ||||
205 | firmware = "uboot"; | ||||
206 | #ifndef CONFIG_ARMV8_PSCI | ||||
207 | loadables = "atf"; | ||||
208 | #endif | ||||
Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 209 | }; |
210 | }; | ||||
211 | }; | ||||
Marek Vasut | d415a48 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 212 | #ifdef CONFIG_IMX_HAB |
Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 213 | }; |
Marek Vasut | d415a48 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 214 | #endif |
Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 215 | }; |
Teresa Remmet | dafb164 | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 216 | }; |