Wadim Egorov | abea324 | 2023-12-20 10:18:10 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Based on k3-am625-sk-binman.dtsi |
| 4 | * |
| 5 | * Copyright (C) 2022 - 2023 PHYTEC Messtechnik GmbH |
| 6 | * Author: Wadim Egorov <w.egorov@phytec.de> |
| 7 | */ |
| 8 | |
| 9 | #include "k3-binman.dtsi" |
| 10 | |
| 11 | #ifdef CONFIG_TARGET_PHYCORE_AM62X_R5 |
| 12 | &binman { |
| 13 | tiboot3-am62x-hs-phycore-som.bin { |
| 14 | filename = "tiboot3-am62x-hs-phycore-som.bin"; |
| 15 | ti-secure-rom { |
| 16 | content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>, |
| 17 | <&combined_dm_cfg>, <&sysfw_inner_cert>; |
| 18 | combined; |
| 19 | dm-data; |
| 20 | sysfw-inner-cert; |
| 21 | keyfile = "custMpk.pem"; |
| 22 | sw-rev = <1>; |
| 23 | content-sbl = <&u_boot_spl>; |
| 24 | content-sysfw = <&ti_fs_enc>; |
| 25 | content-sysfw-data = <&combined_tifs_cfg>; |
| 26 | content-sysfw-inner-cert = <&sysfw_inner_cert>; |
| 27 | content-dm-data = <&combined_dm_cfg>; |
| 28 | load = <0x43c00000>; |
| 29 | load-sysfw = <0x40000>; |
| 30 | load-sysfw-data = <0x67000>; |
| 31 | load-dm-data = <0x43c3a800>; |
| 32 | }; |
| 33 | u_boot_spl: u-boot-spl { |
| 34 | no-expanded; |
| 35 | }; |
| 36 | ti_fs_enc: ti-fs-enc.bin { |
| 37 | filename = "ti-sysfw/ti-fs-firmware-am62x-hs-enc.bin"; |
| 38 | type = "blob-ext"; |
| 39 | optional; |
| 40 | }; |
| 41 | combined_tifs_cfg: combined-tifs-cfg.bin { |
| 42 | filename = "combined-tifs-cfg.bin"; |
| 43 | type = "blob-ext"; |
| 44 | }; |
| 45 | sysfw_inner_cert: sysfw-inner-cert { |
| 46 | filename = "ti-sysfw/ti-fs-firmware-am62x-hs-cert.bin"; |
| 47 | type = "blob-ext"; |
| 48 | optional; |
| 49 | }; |
| 50 | combined_dm_cfg: combined-dm-cfg.bin { |
| 51 | filename = "combined-dm-cfg.bin"; |
| 52 | type = "blob-ext"; |
| 53 | }; |
| 54 | }; |
| 55 | }; |
| 56 | |
| 57 | &binman { |
| 58 | tiboot3-am62x-hs-fs-phycore-som.bin { |
| 59 | filename = "tiboot3-am62x-hs-fs-phycore-som.bin"; |
| 60 | symlink = "tiboot3.bin"; |
| 61 | ti-secure-rom { |
| 62 | content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>, |
| 63 | <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>; |
| 64 | combined; |
| 65 | dm-data; |
| 66 | sysfw-inner-cert; |
| 67 | keyfile = "custMpk.pem"; |
| 68 | sw-rev = <1>; |
| 69 | content-sbl = <&u_boot_spl_fs>; |
| 70 | content-sysfw = <&ti_fs_enc_fs>; |
| 71 | content-sysfw-data = <&combined_tifs_cfg_fs>; |
| 72 | content-sysfw-inner-cert = <&sysfw_inner_cert_fs>; |
| 73 | content-dm-data = <&combined_dm_cfg_fs>; |
| 74 | load = <0x43c00000>; |
| 75 | load-sysfw = <0x40000>; |
| 76 | load-sysfw-data = <0x67000>; |
| 77 | load-dm-data = <0x43c3a800>; |
| 78 | }; |
| 79 | u_boot_spl_fs: u-boot-spl { |
| 80 | no-expanded; |
| 81 | }; |
| 82 | ti_fs_enc_fs: ti-fs-enc.bin { |
| 83 | filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-enc.bin"; |
| 84 | type = "blob-ext"; |
| 85 | optional; |
| 86 | }; |
| 87 | combined_tifs_cfg_fs: combined-tifs-cfg.bin { |
| 88 | filename = "combined-tifs-cfg.bin"; |
| 89 | type = "blob-ext"; |
| 90 | }; |
| 91 | sysfw_inner_cert_fs: sysfw-inner-cert { |
| 92 | filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-cert.bin"; |
| 93 | type = "blob-ext"; |
| 94 | optional; |
| 95 | }; |
| 96 | combined_dm_cfg_fs: combined-dm-cfg.bin { |
| 97 | filename = "combined-dm-cfg.bin"; |
| 98 | type = "blob-ext"; |
| 99 | }; |
| 100 | }; |
| 101 | }; |
| 102 | |
| 103 | &binman { |
| 104 | tiboot3-am62x-gp-phycore-som.bin { |
| 105 | filename = "tiboot3-am62x-gp-phycore-som.bin"; |
| 106 | ti-secure-rom { |
| 107 | content = <&u_boot_spl_unsigned>, <&ti_fs_gp>, |
| 108 | <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>; |
| 109 | combined; |
| 110 | dm-data; |
| 111 | content-sbl = <&u_boot_spl_unsigned>; |
| 112 | load = <0x43c00000>; |
| 113 | content-sysfw = <&ti_fs_gp>; |
| 114 | load-sysfw = <0x40000>; |
| 115 | content-sysfw-data = <&combined_tifs_cfg_gp>; |
| 116 | load-sysfw-data = <0x67000>; |
| 117 | content-dm-data = <&combined_dm_cfg_gp>; |
| 118 | load-dm-data = <0x43c3a800>; |
| 119 | sw-rev = <1>; |
| 120 | keyfile = "ti-degenerate-key.pem"; |
| 121 | }; |
| 122 | u_boot_spl_unsigned: u-boot-spl { |
| 123 | no-expanded; |
| 124 | }; |
| 125 | ti_fs_gp: ti-fs-gp.bin { |
| 126 | filename = "ti-sysfw/ti-fs-firmware-am62x-gp.bin"; |
| 127 | type = "blob-ext"; |
| 128 | optional; |
| 129 | }; |
| 130 | combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin { |
| 131 | filename = "combined-tifs-cfg.bin"; |
| 132 | type = "blob-ext"; |
| 133 | }; |
| 134 | combined_dm_cfg_gp: combined-dm-cfg-gp.bin { |
| 135 | filename = "combined-dm-cfg.bin"; |
| 136 | type = "blob-ext"; |
| 137 | }; |
| 138 | }; |
| 139 | }; |
| 140 | #endif /* CONFIG_TARGET_PHYCORE_AM62X_R5 */ |
| 141 | |
| 142 | #ifdef CONFIG_TARGET_PHYCORE_AM62X_A53 |
Wadim Egorov | 1ea14d1 | 2024-04-19 08:51:15 +0200 | [diff] [blame] | 143 | #define SPL_AM625_PHYBOARD_LYRA_DTB "spl/dts/ti/k3-am625-phyboard-lyra-rdk.dtb" |
Wadim Egorov | abea324 | 2023-12-20 10:18:10 +0100 | [diff] [blame] | 144 | #define AM625_PHYBOARD_LYRA_DTB "u-boot.dtb" |
| 145 | |
| 146 | &binman { |
| 147 | ti-dm { |
| 148 | filename = "ti-dm.bin"; |
| 149 | blob-ext { |
| 150 | filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; |
| 151 | }; |
| 152 | }; |
Dhruva Gole | e236a92 | 2024-08-05 19:59:37 +0530 | [diff] [blame] | 153 | |
| 154 | tifsstub-hs { |
| 155 | filename = "tifsstub.bin_hs"; |
| 156 | ti-secure-rom { |
| 157 | content = <&tifsstub_hs_cert>; |
| 158 | core = "secure"; |
| 159 | load = <0x40000>; |
| 160 | sw-rev = <CONFIG_K3_X509_SWRV>; |
| 161 | keyfile = "custMpk.pem"; |
| 162 | countersign; |
| 163 | tifsstub; |
| 164 | }; |
| 165 | tifsstub_hs_cert: tifsstub-hs-cert.bin { |
| 166 | filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin"; |
| 167 | type = "blob-ext"; |
| 168 | optional; |
| 169 | }; |
| 170 | tifsstub_hs_enc: tifsstub-hs-enc.bin { |
| 171 | filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin"; |
| 172 | type = "blob-ext"; |
| 173 | optional; |
| 174 | }; |
| 175 | }; |
| 176 | |
| 177 | tifsstub-fs { |
| 178 | filename = "tifsstub.bin_fs"; |
| 179 | tifsstub_fs_cert: tifsstub-fs-cert.bin { |
| 180 | filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-cert.bin"; |
| 181 | type = "blob-ext"; |
| 182 | optional; |
| 183 | }; |
| 184 | tifsstub_fs_enc: tifsstub-fs-enc.bin { |
| 185 | filename = "ti-sysfw/ti-fs-stub-firmware-am62x-hs-enc.bin"; |
| 186 | type = "blob-ext"; |
| 187 | optional; |
| 188 | }; |
| 189 | |
| 190 | }; |
| 191 | |
| 192 | tifsstub-gp { |
| 193 | filename = "tifsstub.bin_gp"; |
| 194 | ti-secure-rom { |
| 195 | content = <&tifsstub_gp>; |
| 196 | core = "secure"; |
| 197 | load = <0x60000>; |
| 198 | sw-rev = <CONFIG_K3_X509_SWRV>; |
| 199 | keyfile = "ti-degenerate-key.pem"; |
| 200 | tifsstub; |
| 201 | }; |
| 202 | tifsstub_gp: tifsstub-gp.bin { |
| 203 | filename = "ti-sysfw/ti-fs-stub-firmware-am62x-gp.bin"; |
| 204 | type = "blob-ext"; |
| 205 | optional; |
| 206 | }; |
| 207 | }; |
| 208 | |
| 209 | |
Wadim Egorov | abea324 | 2023-12-20 10:18:10 +0100 | [diff] [blame] | 210 | ti-spl { |
| 211 | insert-template = <&ti_spl_template>; |
| 212 | |
| 213 | fit { |
| 214 | |
| 215 | images { |
Dhruva Gole | e236a92 | 2024-08-05 19:59:37 +0530 | [diff] [blame] | 216 | tifsstub-hs { |
| 217 | description = "TIFSSTUB"; |
| 218 | type = "firmware"; |
| 219 | arch = "arm32"; |
| 220 | compression = "none"; |
| 221 | os = "tifsstub-hs"; |
| 222 | load = <0x9dc00000>; |
| 223 | entry = <0x9dc00000>; |
| 224 | blob-ext { |
| 225 | filename = "tifsstub.bin_hs"; |
| 226 | }; |
| 227 | }; |
| 228 | |
| 229 | tifsstub-fs { |
| 230 | description = "TIFSSTUB"; |
| 231 | type = "firmware"; |
| 232 | arch = "arm32"; |
| 233 | compression = "none"; |
| 234 | os = "tifsstub-fs"; |
| 235 | load = <0x9dc00000>; |
| 236 | entry = <0x9dc00000>; |
| 237 | blob-ext { |
| 238 | filename = "tifsstub.bin_fs"; |
| 239 | }; |
| 240 | }; |
| 241 | |
| 242 | tifsstub-gp { |
| 243 | description = "TIFSSTUB"; |
| 244 | type = "firmware"; |
| 245 | arch = "arm32"; |
| 246 | compression = "none"; |
| 247 | os = "tifsstub-gp"; |
| 248 | load = <0x9dc00000>; |
| 249 | entry = <0x9dc00000>; |
| 250 | blob-ext { |
| 251 | filename = "tifsstub.bin_gp"; |
| 252 | }; |
| 253 | }; |
Wadim Egorov | abea324 | 2023-12-20 10:18:10 +0100 | [diff] [blame] | 254 | dm { |
| 255 | ti-secure { |
| 256 | content = <&dm>; |
| 257 | keyfile = "custMpk.pem"; |
| 258 | }; |
| 259 | dm: blob-ext { |
| 260 | filename = "ti-dm.bin"; |
| 261 | }; |
| 262 | }; |
| 263 | |
| 264 | fdt-0 { |
| 265 | description = "k3-am625-phyboard-lyra-rdk"; |
| 266 | type = "flat_dt"; |
| 267 | arch = "arm"; |
| 268 | compression = "none"; |
| 269 | ti-secure { |
| 270 | content = <&spl_am625_phyboard_lyra_dtb>; |
| 271 | keyfile = "custMpk.pem"; |
| 272 | }; |
| 273 | spl_am625_phyboard_lyra_dtb: blob-ext { |
| 274 | filename = SPL_AM625_PHYBOARD_LYRA_DTB; |
| 275 | }; |
| 276 | }; |
| 277 | }; |
| 278 | |
| 279 | configurations { |
| 280 | default = "conf-0"; |
| 281 | |
| 282 | conf-0 { |
| 283 | description = "k3-am625-phyboard-lyra-rdk"; |
| 284 | firmware = "atf"; |
Dhruva Gole | e236a92 | 2024-08-05 19:59:37 +0530 | [diff] [blame] | 285 | loadables = "tee", "tifsstub-hs", "tifsstub-fs", |
| 286 | "tifsstub-gp", "dm", "spl"; |
Wadim Egorov | abea324 | 2023-12-20 10:18:10 +0100 | [diff] [blame] | 287 | fdt = "fdt-0"; |
| 288 | }; |
| 289 | }; |
| 290 | }; |
| 291 | }; |
| 292 | }; |
| 293 | |
| 294 | &binman { |
| 295 | u-boot { |
| 296 | insert-template = <&u_boot_template>; |
| 297 | |
| 298 | fit { |
| 299 | images { |
| 300 | uboot { |
| 301 | description = "U-Boot for phyCORE-AM62x"; |
| 302 | }; |
| 303 | |
| 304 | fdt-0 { |
| 305 | description = "k3-am625-phyboard-lyra-rdk"; |
| 306 | type = "flat_dt"; |
| 307 | arch = "arm"; |
| 308 | compression = "none"; |
| 309 | ti-secure { |
| 310 | content = <&am625_phyboard_lyra_dtb>; |
| 311 | keyfile = "custMpk.pem"; |
| 312 | }; |
| 313 | am625_phyboard_lyra_dtb: blob-ext { |
| 314 | filename = AM625_PHYBOARD_LYRA_DTB; |
| 315 | }; |
| 316 | hash { |
| 317 | algo = "crc32"; |
| 318 | }; |
| 319 | }; |
| 320 | }; |
| 321 | |
| 322 | configurations { |
| 323 | default = "conf-0"; |
| 324 | |
| 325 | conf-0 { |
| 326 | description = "k3-am625-phyboard-lyra-rdk"; |
| 327 | firmware = "uboot"; |
| 328 | loadables = "uboot"; |
| 329 | fdt = "fdt-0"; |
| 330 | }; |
| 331 | }; |
| 332 | }; |
| 333 | }; |
| 334 | }; |
| 335 | |
| 336 | &binman { |
| 337 | ti-spl_unsigned { |
| 338 | insert-template = <&ti_spl_unsigned_template>; |
| 339 | |
| 340 | fit { |
| 341 | images { |
| 342 | dm { |
| 343 | blob-ext { |
| 344 | filename = "ti-dm.bin"; |
| 345 | }; |
| 346 | }; |
| 347 | |
| 348 | fdt-0 { |
| 349 | description = "k3-am625-phyboard-lyra-rdk"; |
| 350 | type = "flat_dt"; |
| 351 | arch = "arm"; |
| 352 | compression = "none"; |
| 353 | spl_am625_phyboard_lyra_dtb_unsigned: blob { |
| 354 | filename = SPL_AM625_PHYBOARD_LYRA_DTB; |
| 355 | }; |
| 356 | }; |
| 357 | }; |
| 358 | |
| 359 | configurations { |
| 360 | default = "conf-0"; |
| 361 | |
| 362 | conf-0 { |
| 363 | description = "k3-am625-phyboard-lyra-rdk"; |
| 364 | firmware = "atf"; |
Dhruva Gole | e236a92 | 2024-08-05 19:59:37 +0530 | [diff] [blame] | 365 | loadables = "tee", "tifsstub-hs", "tifsstub-fs", |
| 366 | "tifsstub-gp", "dm", "spl"; |
Wadim Egorov | abea324 | 2023-12-20 10:18:10 +0100 | [diff] [blame] | 367 | fdt = "fdt-0"; |
| 368 | }; |
| 369 | }; |
| 370 | }; |
| 371 | }; |
| 372 | }; |
| 373 | |
| 374 | &binman { |
| 375 | u-boot_unsigned { |
| 376 | insert-template = <&u_boot_unsigned_template>; |
| 377 | |
| 378 | fit { |
| 379 | images { |
| 380 | uboot { |
| 381 | description = "U-Boot for phyCORE-AM62x"; |
| 382 | }; |
| 383 | |
| 384 | fdt-0 { |
| 385 | description = "k3-am625-phyboard-lyra-rdk"; |
| 386 | type = "flat_dt"; |
| 387 | arch = "arm"; |
| 388 | compression = "none"; |
| 389 | am625_phyboard_lyra_dtb_unsigned: blob { |
| 390 | filename = AM625_PHYBOARD_LYRA_DTB; |
| 391 | }; |
| 392 | hash { |
| 393 | algo = "crc32"; |
| 394 | }; |
| 395 | }; |
| 396 | }; |
| 397 | |
| 398 | configurations { |
| 399 | default = "conf-0"; |
| 400 | |
| 401 | conf-0 { |
| 402 | description = "k3-am625-phyboard-lyra-rdk"; |
| 403 | firmware = "uboot"; |
| 404 | loadables = "uboot"; |
| 405 | fdt = "fdt-0"; |
| 406 | }; |
| 407 | }; |
| 408 | }; |
| 409 | }; |
| 410 | }; |
| 411 | #endif /* CONFIG_TARGET_PHYCORE_AM62X_A53 */ |