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