Teresa Remmet | 3e94fbd | 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 | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 9 | }; |
Tim Harvey | 2ae9f5a | 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 | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 19 | }; |
20 | |||||
Tim Harvey | 0951b9a | 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 | cdfde79 | 2022-11-07 22:22:39 +0100 | [diff] [blame] | 27 | &soc { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 28 | bootph-all; |
29 | bootph-pre-ram; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 30 | }; |
31 | |||||
32 | &clk { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 33 | bootph-pre-ram; |
34 | bootph-all; | ||||
Ye Li | f93d54d | 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 | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 38 | }; |
39 | |||||
40 | &osc_32k { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 41 | bootph-pre-ram; |
42 | bootph-all; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 43 | }; |
44 | |||||
45 | &osc_24m { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 46 | bootph-pre-ram; |
47 | bootph-all; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 48 | }; |
49 | |||||
50 | &aips1 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 51 | bootph-pre-ram; |
52 | bootph-all; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 53 | }; |
54 | |||||
55 | &aips2 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 56 | bootph-pre-ram; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 57 | }; |
58 | |||||
59 | &aips3 { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 60 | bootph-pre-ram; |
Adam Ford | 0a357f9 | 2023-05-30 17:45:58 -0500 | [diff] [blame] | 61 | spba-bus@30800000 { |
62 | bootph-pre-ram; | ||||
63 | }; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 64 | }; |
65 | |||||
66 | &iomuxc { | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 67 | bootph-pre-ram; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 68 | }; |
69 | |||||
Tim Harvey | 0951b9a | 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 | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 84 | &binman { |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 85 | filename = "flash.bin"; |
86 | section { | ||||
87 | pad-byte = <0x00>; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 88 | |
Marek Vasut | fd5c884 | 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 | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 92 | nxp,loader-address = <CONFIG_SPL_TEXT_BASE>; |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 93 | nxp,unlock; |
Marek Vasut | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 94 | args; /* Needed by mkimage etype superclass */ |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 95 | #endif |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 96 | |
Marek Vasut | fd5c884 | 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 */ | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 103 | |
Marek Vasut | fd5c884 | 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>; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 109 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 110 | u-boot-spl { |
111 | align-end = <4>; | ||||
112 | }; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 113 | |
Marek Vasut | fd5c884 | 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 | }; | ||||
Teresa Remmet | 1d05e8e | 2021-08-26 10:54:09 +0200 | [diff] [blame] | 119 | |
Marek Vasut | fd5c884 | 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 | }; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 125 | |
Marek Vasut | fd5c884 | 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 | f44c738 | 2024-04-26 01:00:37 +0200 | [diff] [blame] | 137 | }; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 138 | }; |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 139 | #ifdef CONFIG_IMX_HAB |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 140 | }; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 141 | |
Marek Vasut | fd5c884 | 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>; | ||||
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 Vasut | 2b93821 | 2024-09-24 15:02:09 +0200 | [diff] [blame] | 151 | filename = "u-boot.itb"; |
Marek Vasut | a7416eb | 2023-05-28 23:00:30 +0200 | [diff] [blame] | 152 | #ifndef CONFIG_IMX_HAB |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 153 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
Marek Vasut | a7416eb | 2023-05-28 23:00:30 +0200 | [diff] [blame] | 154 | #endif |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 155 | fit,fdt-list = "of-list"; |
156 | #address-cells = <1>; | ||||
157 | offset = <0x58000>; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 158 | |
Marek Vasut | fd5c884 | 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>; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 166 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 167 | uboot_blob: blob-ext { |
168 | filename = "u-boot-nodtb.bin"; | ||||
169 | }; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 170 | }; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 171 | |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 172 | #ifndef CONFIG_ARMV8_PSCI |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 173 | atf { |
174 | description = "ARM Trusted Firmware"; | ||||
175 | type = "firmware"; | ||||
176 | arch = "arm64"; | ||||
177 | compression = "none"; | ||||
178 | load = <0x970000>; | ||||
179 | entry = <0x970000>; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 180 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 181 | atf_blob: atf-blob { |
182 | filename = "bl31.bin"; | ||||
183 | type = "atf-bl31"; | ||||
184 | }; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 185 | }; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 186 | #endif |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 187 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 188 | @fdt-SEQ { |
189 | description = "NAME"; | ||||
190 | type = "flat_dt"; | ||||
191 | compression = "none"; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 192 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 193 | blob-ext { |
194 | filename = "u-boot.dtb"; | ||||
195 | }; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 196 | }; |
197 | }; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 198 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 199 | configurations { |
200 | default = "@config-DEFAULT-SEQ"; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 201 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 202 | @config-SEQ { |
203 | description = "NAME"; | ||||
204 | fdt = "fdt-SEQ"; | ||||
205 | firmware = "uboot"; | ||||
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 206 | #ifndef CONFIG_ARMV8_PSCI |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 207 | loadables = "atf"; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 208 | #endif |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 209 | }; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 210 | }; |
211 | }; | ||||
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 212 | #ifdef CONFIG_IMX_HAB |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 213 | }; |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 214 | #endif |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 215 | }; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 216 | }; |