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 | a7416eb | 2023-05-28 23:00:30 +0200 | [diff] [blame] | 151 | #ifndef CONFIG_IMX_HAB |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 152 | fit,external-offset = <CONFIG_FIT_EXTERNAL_OFFSET>; |
Marek Vasut | a7416eb | 2023-05-28 23:00:30 +0200 | [diff] [blame] | 153 | #endif |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 154 | fit,fdt-list = "of-list"; |
155 | #address-cells = <1>; | ||||
156 | offset = <0x58000>; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 157 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 158 | images { |
159 | uboot { | ||||
160 | description = "U-Boot (64-bit)"; | ||||
161 | type = "standalone"; | ||||
162 | arch = "arm64"; | ||||
163 | compression = "none"; | ||||
164 | load = <CONFIG_TEXT_BASE>; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 165 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 166 | uboot_blob: blob-ext { |
167 | filename = "u-boot-nodtb.bin"; | ||||
168 | }; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 169 | }; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 170 | |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 171 | #ifndef CONFIG_ARMV8_PSCI |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 172 | atf { |
173 | description = "ARM Trusted Firmware"; | ||||
174 | type = "firmware"; | ||||
175 | arch = "arm64"; | ||||
176 | compression = "none"; | ||||
177 | load = <0x970000>; | ||||
178 | entry = <0x970000>; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 179 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 180 | atf_blob: atf-blob { |
181 | filename = "bl31.bin"; | ||||
182 | type = "atf-bl31"; | ||||
183 | }; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 184 | }; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 185 | #endif |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 186 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 187 | @fdt-SEQ { |
188 | description = "NAME"; | ||||
189 | type = "flat_dt"; | ||||
190 | compression = "none"; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 191 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 192 | blob-ext { |
193 | filename = "u-boot.dtb"; | ||||
194 | }; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 195 | }; |
196 | }; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 197 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 198 | configurations { |
199 | default = "@config-DEFAULT-SEQ"; | ||||
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 200 | |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 201 | @config-SEQ { |
202 | description = "NAME"; | ||||
203 | fdt = "fdt-SEQ"; | ||||
204 | firmware = "uboot"; | ||||
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 205 | #ifndef CONFIG_ARMV8_PSCI |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 206 | loadables = "atf"; |
Marek Vasut | 1de0eb1 | 2022-12-22 01:46:37 +0100 | [diff] [blame] | 207 | #endif |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 208 | }; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 209 | }; |
210 | }; | ||||
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 211 | #ifdef CONFIG_IMX_HAB |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 212 | }; |
Marek Vasut | fd5c884 | 2024-05-21 12:48:25 +0200 | [diff] [blame] | 213 | #endif |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 214 | }; |
Teresa Remmet | 3e94fbd | 2021-07-07 12:57:57 +0000 | [diff] [blame] | 215 | }; |