Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
Jan Kiszka | b2d24f9 | 2023-07-27 06:34:54 +0200 | [diff] [blame] | 3 | * Copyright (c) Siemens AG, 2020-2023 |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 4 | * |
| 5 | * Authors: |
| 6 | * Jan Kiszka <jan.kiszka@siemens.com> |
| 7 | * Chao Zeng <chao.zeng@siemens.com> |
| 8 | */ |
| 9 | |
| 10 | #include <config.h> |
| 11 | |
| 12 | / { |
Jan Kiszka | b2d24f9 | 2023-07-27 06:34:54 +0200 | [diff] [blame] | 13 | binman: binman { |
| 14 | multiple-images; |
| 15 | }; |
| 16 | }; |
| 17 | |
| 18 | &binman { |
| 19 | common_part: template { |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 20 | pad-byte = <0xff>; |
| 21 | size = <0x8c0000>; |
Jan Kiszka | cf422ca | 2023-02-28 19:19:15 +0100 | [diff] [blame] | 22 | allow-repack; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 23 | |
Jan Kiszka | b2d24f9 | 2023-07-27 06:34:54 +0200 | [diff] [blame] | 24 | blob-ext@0 { |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 25 | offset = <0x000000>; |
Ivan Mikhaylov | e1953e4 | 2021-12-09 16:10:53 +0000 | [diff] [blame] | 26 | missing-msg = "iot2050-seboot"; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 27 | }; |
| 28 | |
Jan Kiszka | b2d24f9 | 2023-07-27 06:34:54 +0200 | [diff] [blame] | 29 | fit@180000 { |
Jan Kiszka | a59bc02 | 2023-02-28 19:19:11 +0100 | [diff] [blame] | 30 | offset = <0x180000>; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 31 | filename = "tispl.bin"; |
Neha Malcom Francis | 48183b0 | 2023-07-22 00:14:41 +0530 | [diff] [blame] | 32 | pad-byte = <0xff>; |
| 33 | description = "Configuration to load ATF and SPL"; |
| 34 | |
| 35 | images { |
| 36 | atf { |
| 37 | description = "ARM Trusted Firmware"; |
| 38 | type = "firmware"; |
| 39 | arch = "arm64"; |
| 40 | compression = "none"; |
| 41 | os = "arm-trusted-firmware"; |
| 42 | load = <CONFIG_K3_ATF_LOAD_ADDR>; |
| 43 | entry = <CONFIG_K3_ATF_LOAD_ADDR>; |
| 44 | atf: atf-bl31 { |
| 45 | }; |
| 46 | }; |
| 47 | |
| 48 | tee { |
| 49 | description = "OP-TEE"; |
| 50 | type = "tee"; |
| 51 | arch = "arm64"; |
| 52 | compression = "none"; |
| 53 | os = "tee"; |
| 54 | load = <0x9e800000>; |
| 55 | entry = <0x9e800000>; |
| 56 | tee: tee-os { |
| 57 | }; |
| 58 | }; |
| 59 | |
| 60 | dm { |
| 61 | description = "DM binary"; |
| 62 | type = "firmware"; |
| 63 | arch = "arm32"; |
| 64 | compression = "none"; |
| 65 | os = "DM"; |
| 66 | load = <0x89000000>; |
| 67 | entry = <0x89000000>; |
| 68 | blob-ext { |
| 69 | filename = "/dev/null"; |
| 70 | }; |
| 71 | }; |
| 72 | |
| 73 | spl { |
| 74 | description = "SPL (64-bit)"; |
| 75 | type = "standalone"; |
| 76 | os = "U-Boot"; |
| 77 | arch = "arm64"; |
| 78 | compression = "none"; |
| 79 | load = <CONFIG_SPL_TEXT_BASE>; |
| 80 | entry = <CONFIG_SPL_TEXT_BASE>; |
| 81 | u_boot_spl_nodtb: blob-ext { |
| 82 | filename = "spl/u-boot-spl-nodtb.bin"; |
| 83 | }; |
| 84 | }; |
| 85 | |
| 86 | fdt-0 { |
| 87 | description = "k3-am65-iot2050-spl.dtb"; |
| 88 | type = "flat_dt"; |
| 89 | arch = "arm"; |
| 90 | compression = "none"; |
| 91 | spl_am65x_evm_dtb: blob-ext { |
| 92 | filename = "spl/dts/k3-am65-iot2050-spl.dtb"; |
| 93 | }; |
| 94 | }; |
| 95 | }; |
| 96 | |
| 97 | configurations { |
| 98 | default = "spl"; |
| 99 | spl { |
| 100 | fdt = "fdt-0"; |
| 101 | firmware = "atf"; |
| 102 | loadables = "tee", "dm", "spl"; |
| 103 | }; |
| 104 | }; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 105 | }; |
| 106 | |
Jan Kiszka | b2d24f9 | 2023-07-27 06:34:54 +0200 | [diff] [blame] | 107 | fit@380000 { |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 108 | description = "U-Boot for IOT2050"; |
Jan Kiszka | a59bc02 | 2023-02-28 19:19:11 +0100 | [diff] [blame] | 109 | offset = <0x380000>; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 110 | images { |
| 111 | u-boot { |
| 112 | description = "U-Boot"; |
| 113 | type = "standalone"; |
| 114 | arch = "arm64"; |
| 115 | os = "u-boot"; |
| 116 | compression = "none"; |
| 117 | load = <0x80800000>; |
| 118 | entry = <0x80800000>; |
| 119 | u-boot-nodtb { |
| 120 | }; |
Jan Kiszka | cf422ca | 2023-02-28 19:19:15 +0100 | [diff] [blame] | 121 | hash { |
| 122 | algo = "sha256"; |
| 123 | }; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 124 | }; |
| 125 | |
Su Baocheng | 8999cc5 | 2023-02-28 19:19:10 +0100 | [diff] [blame] | 126 | @fdt-SEQ { |
| 127 | description = "fdt-NAME"; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 128 | type = "flat_dt"; |
| 129 | arch = "arm64"; |
| 130 | compression = "none"; |
Jan Kiszka | e31f16c | 2023-02-28 19:19:23 +0100 | [diff] [blame] | 131 | hash { |
| 132 | algo = "sha256"; |
| 133 | }; |
| 134 | }; |
Jan Kiszka | e31f16c | 2023-02-28 19:19:23 +0100 | [diff] [blame] | 135 | |
Jan Kiszka | 14a2e81 | 2021-09-18 08:17:56 +0200 | [diff] [blame] | 136 | #ifdef CONFIG_WDT_K3_RTI_FW_FILE |
| 137 | k3-rti-wdt-firmware { |
| 138 | type = "firmware"; |
| 139 | load = <0x82000000>; |
| 140 | arch = "arm"; |
| 141 | compression = "none"; |
| 142 | blob-ext { |
| 143 | filename = CONFIG_WDT_K3_RTI_FW_FILE; |
| 144 | missing-msg = "k3-rti-wdt-firmware"; |
| 145 | }; |
Jan Kiszka | cf422ca | 2023-02-28 19:19:15 +0100 | [diff] [blame] | 146 | hash { |
| 147 | algo = "sha256"; |
| 148 | }; |
Jan Kiszka | 14a2e81 | 2021-09-18 08:17:56 +0200 | [diff] [blame] | 149 | }; |
| 150 | #endif |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 151 | }; |
| 152 | |
| 153 | configurations { |
Su Baocheng | 8999cc5 | 2023-02-28 19:19:10 +0100 | [diff] [blame] | 154 | @config-SEQ { |
| 155 | description = "NAME"; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 156 | firmware = "u-boot"; |
Su Baocheng | 8999cc5 | 2023-02-28 19:19:10 +0100 | [diff] [blame] | 157 | fdt = "fdt-SEQ"; |
Jan Kiszka | cf422ca | 2023-02-28 19:19:15 +0100 | [diff] [blame] | 158 | signature { |
| 159 | sign-images = "firmware", "fdt", "loadables"; |
| 160 | }; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 161 | }; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 162 | }; |
| 163 | }; |
| 164 | |
Jan Kiszka | cf422ca | 2023-02-28 19:19:15 +0100 | [diff] [blame] | 165 | fdtmap { |
| 166 | }; |
| 167 | |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 168 | /* primary env */ |
Jan Kiszka | b2d24f9 | 2023-07-27 06:34:54 +0200 | [diff] [blame] | 169 | fill@680000 { |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 170 | offset = <0x680000>; |
| 171 | size = <0x020000>; |
| 172 | fill-byte = [00]; |
| 173 | }; |
| 174 | /* secondary env */ |
Jan Kiszka | b2d24f9 | 2023-07-27 06:34:54 +0200 | [diff] [blame] | 175 | fill@6a0000 { |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 176 | offset = <0x6a0000>; |
| 177 | size = <0x020000>; |
| 178 | fill-byte = [00]; |
| 179 | }; |
| 180 | |
Jan Kiszka | b2d24f9 | 2023-07-27 06:34:54 +0200 | [diff] [blame] | 181 | /* OTP update command block */ |
| 182 | #ifdef CONFIG_IOT2050_EMBED_OTPCMD |
| 183 | blob-ext@6c0000 { |
Jan Kiszka | aebb5b9 | 2023-02-28 19:19:18 +0100 | [diff] [blame] | 184 | offset = <0x6c0000>; |
Jan Kiszka | b2d24f9 | 2023-07-27 06:34:54 +0200 | [diff] [blame] | 185 | |
Jan Kiszka | aebb5b9 | 2023-02-28 19:19:18 +0100 | [diff] [blame] | 186 | size = <0x010000>; |
| 187 | filename = "otpcmd.bin"; |
| 188 | missing-msg = "iot2050-otpcmd"; |
| 189 | }; |
| 190 | #else |
Jan Kiszka | b2d24f9 | 2023-07-27 06:34:54 +0200 | [diff] [blame] | 191 | fill@6c0000 { |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 192 | offset = <0x6c0000>; |
Jan Kiszka | a59bc02 | 2023-02-28 19:19:11 +0100 | [diff] [blame] | 193 | size = <0x010000>; |
| 194 | fill-byte = [ff]; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 195 | }; |
Jan Kiszka | b2d24f9 | 2023-07-27 06:34:54 +0200 | [diff] [blame] | 196 | #endif |
| 197 | }; |
| 198 | |
| 199 | flash-pg1 { |
| 200 | filename = "flash-pg1.bin"; |
| 201 | insert-template = <&common_part>; |
| 202 | |
| 203 | blob-ext@0 { |
| 204 | filename = "seboot_pg1.bin"; |
| 205 | }; |
| 206 | |
| 207 | fit@380000 { |
| 208 | fit,fdt-list-val = "k3-am6528-iot2050-basic", "k3-am6548-iot2050-advanced"; |
| 209 | |
| 210 | configurations { |
| 211 | default = "k3-am6528-iot2050-basic"; |
| 212 | @config-SEQ { |
| 213 | loadables = |
| 214 | #ifdef CONFIG_WDT_K3_RTI_FW_FILE |
| 215 | "k3-rti-wdt-firmware", |
| 216 | #endif |
| 217 | <>; |
| 218 | }; |
| 219 | }; |
| 220 | }; |
| 221 | }; |
| 222 | |
| 223 | flash-pg2 { |
| 224 | filename = "flash-pg2.bin"; |
| 225 | insert-template = <&common_part>; |
| 226 | |
| 227 | blob-ext@0 { |
| 228 | filename = "seboot_pg2.bin"; |
| 229 | }; |
| 230 | |
| 231 | fit@380000 { |
| 232 | fit,fdt-list-val = "k3-am6528-iot2050-basic-pg2", "k3-am6548-iot2050-advanced-pg2", "k3-am6548-iot2050-advanced-m2"; |
| 233 | |
| 234 | images { |
| 235 | bkey-usb3-overlay { |
| 236 | description = "M.2-bkey-usb3-overlay"; |
| 237 | type = "blob"; |
| 238 | load = <0x82100000>; |
| 239 | arch = "arm64"; |
| 240 | compression = "none"; |
| 241 | blob-ext { |
| 242 | filename = "k3-am6548-iot2050-advanced-m2-bkey-usb3-overlay.dtbo"; |
| 243 | }; |
| 244 | hash { |
| 245 | algo = "sha256"; |
| 246 | }; |
| 247 | }; |
| 248 | |
| 249 | bkey-ekey-pcie-overlay { |
| 250 | description = "M.2-bkey-ekey-pcie-overlay"; |
| 251 | type = "blob"; |
| 252 | load = <0x82110000>; |
| 253 | arch = "arm64"; |
| 254 | compression = "none"; |
| 255 | blob-ext { |
| 256 | filename = "k3-am6548-iot2050-advanced-m2-bkey-ekey-pcie-overlay.dtbo"; |
| 257 | }; |
| 258 | hash { |
| 259 | algo = "sha256"; |
| 260 | }; |
| 261 | }; |
| 262 | }; |
| 263 | |
| 264 | configurations { |
| 265 | default = "k3-am6528-iot2050-basic-pg2"; |
| 266 | @config-SEQ { |
| 267 | loadables = |
| 268 | #ifdef CONFIG_WDT_K3_RTI_FW_FILE |
| 269 | "k3-rti-wdt-firmware", |
Jan Kiszka | aebb5b9 | 2023-02-28 19:19:18 +0100 | [diff] [blame] | 270 | #endif |
Jan Kiszka | b2d24f9 | 2023-07-27 06:34:54 +0200 | [diff] [blame] | 271 | "bkey-usb3-overlay", |
| 272 | "bkey-ekey-pcie-overlay"; |
| 273 | }; |
| 274 | }; |
| 275 | }; |
Jan Kiszka | 4a88eb2 | 2021-09-18 08:17:52 +0200 | [diff] [blame] | 276 | }; |
| 277 | }; |