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