Neha Malcom Francis | 4ad962d | 2023-07-22 00:14:32 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2022-2023 Texas Instruments Incorporated - https://www.ti.com/ |
| 4 | */ |
| 5 | |
| 6 | #include "k3-binman.dtsi" |
| 7 | |
| 8 | #ifdef CONFIG_TARGET_AM654_R5_EVM |
| 9 | |
| 10 | &binman { |
| 11 | tiboot3-am65x_sr2-hs-evm.bin { |
| 12 | filename = "tiboot3-am65x_sr2-hs-evm.bin"; |
| 13 | ti-secure-rom { |
| 14 | content = <&u_boot_spl>; |
| 15 | core = "public"; |
| 16 | load = <CONFIG_SPL_TEXT_BASE>; |
| 17 | keyfile = "custMpk.pem"; |
| 18 | }; |
| 19 | u_boot_spl: u-boot-spl { |
| 20 | no-expanded; |
| 21 | }; |
| 22 | }; |
| 23 | sysfw { |
| 24 | filename = "sysfw.bin"; |
| 25 | ti-secure-rom { |
| 26 | content = <&ti_sci_cert>; |
| 27 | core = "secure"; |
| 28 | load = <0x40000>; |
| 29 | keyfile = "custMpk.pem"; |
| 30 | countersign; |
| 31 | }; |
| 32 | ti_sci_cert: ti-sci-cert.bin { |
| 33 | filename = "ti-sysfw/ti-sci-firmware-am65x_sr2-hs-cert.bin"; |
| 34 | type = "blob-ext"; |
| 35 | optional; |
| 36 | }; |
| 37 | ti-sci-firmware-am65x-hs-enc.bin { |
| 38 | filename = "ti-sysfw/ti-sci-firmware-am65x_sr2-hs-enc.bin"; |
| 39 | type = "blob-ext"; |
| 40 | optional; |
| 41 | }; |
| 42 | }; |
| 43 | itb { |
| 44 | filename = "sysfw-am65x_sr2-hs-evm.itb"; |
| 45 | fit { |
| 46 | description = "SYSFW and Config fragments"; |
| 47 | #address-cells = <1>; |
| 48 | images { |
| 49 | sysfw.bin { |
| 50 | description = "sysfw"; |
| 51 | type = "firmware"; |
| 52 | arch = "arm"; |
| 53 | compression = "none"; |
| 54 | blob-ext { |
| 55 | filename = "sysfw.bin"; |
| 56 | }; |
| 57 | }; |
| 58 | board-cfg.bin { |
| 59 | description = "board-cfg"; |
| 60 | type = "firmware"; |
| 61 | arch = "arm"; |
| 62 | compression = "none"; |
| 63 | ti-secure { |
| 64 | content = <&board_cfg>; |
| 65 | keyfile = "custMpk.pem"; |
| 66 | }; |
| 67 | board_cfg: board-cfg { |
| 68 | filename = "board-cfg.bin"; |
| 69 | type = "blob-ext"; |
| 70 | }; |
| 71 | }; |
| 72 | pm-cfg.bin { |
| 73 | description = "pm-cfg"; |
| 74 | type = "firmware"; |
| 75 | arch = "arm"; |
| 76 | compression = "none"; |
| 77 | ti-secure { |
| 78 | content = <&pm_cfg>; |
| 79 | keyfile = "custMpk.pem"; |
| 80 | }; |
| 81 | pm_cfg: pm-cfg { |
| 82 | filename = "pm-cfg.bin"; |
| 83 | type = "blob-ext"; |
| 84 | }; |
| 85 | }; |
| 86 | rm-cfg.bin { |
| 87 | description = "rm-cfg"; |
| 88 | type = "firmware"; |
| 89 | arch = "arm"; |
| 90 | compression = "none"; |
| 91 | ti-secure { |
| 92 | content = <&rm_cfg>; |
| 93 | keyfile = "custMpk.pem";\ |
| 94 | }; |
| 95 | rm_cfg: rm-cfg { |
| 96 | filename = "rm-cfg.bin"; |
| 97 | type = "blob-ext"; |
| 98 | }; |
| 99 | }; |
| 100 | sec-cfg.bin { |
| 101 | description = "sec-cfg"; |
| 102 | type = "firmware"; |
| 103 | arch = "arm"; |
| 104 | compression = "none"; |
| 105 | ti-secure { |
| 106 | content = <&sec_cfg>; |
| 107 | keyfile = "custMpk.pem"; |
| 108 | }; |
| 109 | sec_cfg: sec-cfg { |
| 110 | filename = "sec-cfg.bin"; |
| 111 | type = "blob-ext"; |
| 112 | }; |
| 113 | }; |
| 114 | }; |
| 115 | }; |
| 116 | }; |
| 117 | }; |
| 118 | |
| 119 | &binman { |
| 120 | tiboot3-am65x_sr2-gp-evm.bin { |
| 121 | filename = "tiboot3-am65x_sr2-gp-evm.bin"; |
| 122 | symlink = "tiboot3.bin"; |
| 123 | ti-secure-rom { |
| 124 | content = <&u_boot_spl_unsigned>; |
| 125 | core = "public"; |
| 126 | load = <CONFIG_SPL_TEXT_BASE>; |
| 127 | sw-rev = <CONFIG_K3_X509_SWRV>; |
| 128 | keyfile = "ti-degenerate-key.pem"; |
| 129 | }; |
| 130 | u_boot_spl_unsigned: u-boot-spl { |
| 131 | no-expanded; |
| 132 | }; |
| 133 | }; |
| 134 | sysfw_gp { |
| 135 | filename = "sysfw.bin_gp"; |
| 136 | ti-secure-rom { |
| 137 | content = <&ti_sci>; |
| 138 | core = "secure"; |
| 139 | load = <0x40000>; |
| 140 | sw-rev = <CONFIG_K3_X509_SWRV>; |
| 141 | keyfile = "ti-degenerate-key.pem"; |
| 142 | }; |
| 143 | ti_sci: ti-sci.bin { |
| 144 | filename = "ti-sysfw/ti-sci-firmware-am65x_sr2-gp.bin"; |
| 145 | type = "blob-ext"; |
| 146 | optional; |
| 147 | }; |
| 148 | }; |
| 149 | itb_gp { |
| 150 | filename = "sysfw-am65x_sr2-gp-evm.itb"; |
| 151 | symlink = "sysfw.itb"; |
| 152 | fit { |
| 153 | description = "SYSFW and Config fragments"; |
| 154 | #address-cells = <1>; |
| 155 | images { |
| 156 | sysfw.bin { |
| 157 | description = "sysfw"; |
| 158 | type = "firmware"; |
| 159 | arch = "arm"; |
| 160 | compression = "none"; |
| 161 | blob-ext { |
| 162 | filename = "sysfw.bin_gp"; |
| 163 | }; |
| 164 | }; |
| 165 | board-cfg.bin { |
| 166 | description = "board-cfg"; |
| 167 | type = "firmware"; |
| 168 | arch = "arm"; |
| 169 | compression = "none"; |
| 170 | blob-ext { |
| 171 | filename = "board-cfg.bin"; |
| 172 | }; |
| 173 | }; |
| 174 | pm-cfg.bin { |
| 175 | description = "pm-cfg"; |
| 176 | type = "firmware"; |
| 177 | arch = "arm"; |
| 178 | compression = "none"; |
| 179 | blob-ext { |
| 180 | filename = "pm-cfg.bin"; |
| 181 | }; |
| 182 | }; |
| 183 | rm-cfg.bin { |
| 184 | description = "rm-cfg"; |
| 185 | type = "firmware"; |
| 186 | arch = "arm"; |
| 187 | compression = "none"; |
| 188 | blob-ext { |
| 189 | filename = "rm-cfg.bin"; |
| 190 | }; |
| 191 | }; |
| 192 | sec-cfg.bin { |
| 193 | description = "sec-cfg"; |
| 194 | type = "firmware"; |
| 195 | arch = "arm"; |
| 196 | compression = "none"; |
| 197 | blob-ext { |
| 198 | filename = "sec-cfg.bin"; |
| 199 | }; |
| 200 | }; |
| 201 | }; |
| 202 | }; |
| 203 | }; |
| 204 | }; |
| 205 | #endif |
| 206 | |
| 207 | #ifdef CONFIG_TARGET_AM654_A53_EVM |
| 208 | |
| 209 | #define SPL_NODTB "spl/u-boot-spl-nodtb.bin" |
| 210 | #define SPL_AM654_EVM_DTB "spl/dts/k3-am654-base-board.dtb" |
| 211 | |
| 212 | #define UBOOT_NODTB "u-boot-nodtb.bin" |
Manorit Chawdhry | 64ebddb | 2023-07-14 11:22:38 +0530 | [diff] [blame] | 213 | #define AM654_EVM_DTB "u-boot.dtb" |
Neha Malcom Francis | 4ad962d | 2023-07-22 00:14:32 +0530 | [diff] [blame] | 214 | |
| 215 | &binman { |
| 216 | ti-spl { |
| 217 | filename = "tispl.bin"; |
| 218 | pad-byte = <0xff>; |
| 219 | |
| 220 | fit { |
| 221 | description = "Configuration to load ATF and SPL"; |
| 222 | #address-cells = <1>; |
| 223 | |
| 224 | images { |
| 225 | |
| 226 | atf { |
| 227 | description = "ARM Trusted Firmware"; |
| 228 | type = "firmware"; |
| 229 | arch = "arm64"; |
| 230 | compression = "none"; |
| 231 | os = "arm-trusted-firmware"; |
| 232 | load = <CONFIG_K3_ATF_LOAD_ADDR>; |
| 233 | entry = <CONFIG_K3_ATF_LOAD_ADDR>; |
| 234 | ti-secure { |
| 235 | content = <&atf>; |
| 236 | keyfile = "custMpk.pem"; |
| 237 | }; |
| 238 | atf: atf-bl31 { |
| 239 | }; |
| 240 | }; |
| 241 | |
| 242 | tee { |
| 243 | description = "OP-TEE"; |
| 244 | type = "tee"; |
| 245 | arch = "arm64"; |
| 246 | compression = "none"; |
| 247 | os = "tee"; |
| 248 | load = <0x9e800000>; |
| 249 | entry = <0x9e800000>; |
| 250 | ti-secure { |
| 251 | content = <&tee>; |
| 252 | keyfile = "custMpk.pem"; |
| 253 | }; |
| 254 | tee: tee-os { |
| 255 | }; |
| 256 | }; |
| 257 | |
| 258 | dm { |
| 259 | description = "DM binary"; |
| 260 | type = "firmware"; |
| 261 | arch = "arm32"; |
| 262 | compression = "none"; |
| 263 | os = "DM"; |
| 264 | load = <0x89000000>; |
| 265 | entry = <0x89000000>; |
| 266 | blob-ext { |
| 267 | filename = "/dev/null"; |
| 268 | }; |
| 269 | }; |
| 270 | |
| 271 | spl { |
| 272 | description = "SPL (64-bit)"; |
| 273 | type = "standalone"; |
| 274 | os = "U-Boot"; |
| 275 | arch = "arm64"; |
| 276 | compression = "none"; |
| 277 | load = <CONFIG_SPL_TEXT_BASE>; |
| 278 | entry = <CONFIG_SPL_TEXT_BASE>; |
| 279 | ti-secure { |
| 280 | content = <&u_boot_spl_nodtb>; |
| 281 | keyfile = "custMpk.pem"; |
| 282 | |
| 283 | }; |
| 284 | u_boot_spl_nodtb: blob-ext { |
| 285 | filename = SPL_NODTB; |
| 286 | }; |
| 287 | }; |
| 288 | |
| 289 | fdt-0 { |
| 290 | description = "k3-am654-base-board"; |
| 291 | type = "flat_dt"; |
| 292 | arch = "arm"; |
| 293 | compression = "none"; |
| 294 | ti-secure { |
| 295 | content = <&spl_am65x_evm_dtb>; |
| 296 | keyfile = "custMpk.pem"; |
| 297 | }; |
| 298 | spl_am65x_evm_dtb: blob-ext { |
| 299 | filename = SPL_AM654_EVM_DTB; |
| 300 | }; |
| 301 | }; |
| 302 | }; |
| 303 | |
| 304 | configurations { |
| 305 | default = "conf-0"; |
| 306 | |
| 307 | conf-0 { |
| 308 | description = "k3-am654-base-board"; |
| 309 | firmware = "atf"; |
| 310 | loadables = "tee", "dm", "spl"; |
| 311 | fdt = "fdt-0"; |
| 312 | }; |
| 313 | }; |
| 314 | }; |
| 315 | }; |
| 316 | }; |
| 317 | |
| 318 | &binman { |
| 319 | u-boot { |
| 320 | filename = "u-boot.img"; |
| 321 | pad-byte = <0xff>; |
| 322 | |
| 323 | fit { |
| 324 | description = "FIT image with multiple configurations"; |
| 325 | |
| 326 | images { |
| 327 | uboot { |
| 328 | description = "U-Boot for AM65 board"; |
| 329 | type = "firmware"; |
| 330 | os = "u-boot"; |
| 331 | arch = "arm"; |
| 332 | compression = "none"; |
| 333 | load = <CONFIG_TEXT_BASE>; |
| 334 | ti-secure { |
| 335 | content = <&u_boot_nodtb>; |
| 336 | keyfile = "custMpk.pem"; |
| 337 | }; |
| 338 | u_boot_nodtb: u-boot-nodtb { |
| 339 | }; |
| 340 | hash { |
| 341 | algo = "crc32"; |
| 342 | }; |
| 343 | }; |
| 344 | |
| 345 | fdt-0 { |
| 346 | description = "k3-am654-base-board"; |
| 347 | type = "flat_dt"; |
| 348 | arch = "arm"; |
| 349 | compression = "none"; |
| 350 | ti-secure { |
| 351 | content = <&am65x_evm_dtb>; |
| 352 | keyfile = "custMpk.pem"; |
| 353 | |
| 354 | }; |
| 355 | am65x_evm_dtb: blob-ext { |
| 356 | filename = AM654_EVM_DTB; |
| 357 | }; |
| 358 | hash { |
| 359 | algo = "crc32"; |
| 360 | }; |
| 361 | }; |
| 362 | |
| 363 | }; |
| 364 | |
| 365 | configurations { |
| 366 | default = "conf-0"; |
| 367 | |
| 368 | conf-0 { |
| 369 | description = "k3-am654-base-board"; |
| 370 | firmware = "uboot"; |
| 371 | loadables = "uboot"; |
| 372 | fdt = "fdt-0"; |
| 373 | }; |
| 374 | }; |
| 375 | }; |
| 376 | }; |
| 377 | }; |
| 378 | |
| 379 | &binman { |
| 380 | ti-spl_unsigned { |
| 381 | filename = "tispl.bin_unsigned"; |
| 382 | pad-byte = <0xff>; |
| 383 | |
| 384 | fit { |
| 385 | description = "Configuration to load ATF and SPL"; |
| 386 | #address-cells = <1>; |
| 387 | |
| 388 | images { |
| 389 | |
| 390 | atf { |
| 391 | description = "ARM Trusted Firmware"; |
| 392 | type = "firmware"; |
| 393 | arch = "arm64"; |
| 394 | compression = "none"; |
| 395 | os = "arm-trusted-firmware"; |
| 396 | load = <CONFIG_K3_ATF_LOAD_ADDR>; |
| 397 | entry = <CONFIG_K3_ATF_LOAD_ADDR>; |
| 398 | atf-bl31 { |
| 399 | filename = "bl31.bin"; |
| 400 | }; |
| 401 | }; |
| 402 | |
| 403 | tee { |
| 404 | description = "OP-TEE"; |
| 405 | type = "tee"; |
| 406 | arch = "arm64"; |
| 407 | compression = "none"; |
| 408 | os = "tee"; |
| 409 | load = <0x9e800000>; |
| 410 | entry = <0x9e800000>; |
| 411 | tee-os { |
| 412 | filename = "tee-raw.bin"; |
| 413 | }; |
| 414 | }; |
| 415 | |
| 416 | dm { |
| 417 | description = "DM binary"; |
| 418 | type = "firmware"; |
| 419 | arch = "arm32"; |
| 420 | compression = "none"; |
| 421 | os = "DM"; |
| 422 | load = <0x89000000>; |
| 423 | entry = <0x89000000>; |
| 424 | blob-ext { |
| 425 | filename = "/dev/null"; |
| 426 | }; |
| 427 | }; |
| 428 | |
| 429 | spl { |
| 430 | description = "SPL (64-bit)"; |
| 431 | type = "standalone"; |
| 432 | os = "U-Boot"; |
| 433 | arch = "arm64"; |
| 434 | compression = "none"; |
| 435 | load = <CONFIG_SPL_TEXT_BASE>; |
| 436 | entry = <CONFIG_SPL_TEXT_BASE>; |
| 437 | blob-ext { |
| 438 | filename = SPL_NODTB; |
| 439 | }; |
| 440 | }; |
| 441 | |
| 442 | fdt-0 { |
| 443 | description = "k3-j721e-common-proc-board"; |
| 444 | type = "flat_dt"; |
| 445 | arch = "arm"; |
| 446 | compression = "none"; |
| 447 | blob { |
| 448 | filename = SPL_AM654_EVM_DTB; |
| 449 | }; |
| 450 | }; |
| 451 | }; |
| 452 | |
| 453 | configurations { |
| 454 | default = "conf-0"; |
| 455 | |
| 456 | conf-0 { |
| 457 | description = "k3-am654-base-board"; |
| 458 | firmware = "atf"; |
| 459 | loadables = "tee", "dm", "spl"; |
| 460 | fdt = "fdt-0"; |
| 461 | }; |
| 462 | }; |
| 463 | }; |
| 464 | }; |
| 465 | }; |
| 466 | |
| 467 | &binman { |
| 468 | u-boot_unsigned { |
| 469 | filename = "u-boot.img_unsigned"; |
| 470 | pad-byte = <0xff>; |
| 471 | |
| 472 | fit { |
| 473 | description = "FIT image with multiple configurations"; |
| 474 | |
| 475 | images { |
| 476 | uboot { |
| 477 | description = "U-Boot for AM65 board"; |
| 478 | type = "firmware"; |
| 479 | os = "u-boot"; |
| 480 | arch = "arm"; |
| 481 | compression = "none"; |
| 482 | load = <CONFIG_TEXT_BASE>; |
| 483 | blob { |
| 484 | filename = UBOOT_NODTB; |
| 485 | }; |
| 486 | hash { |
| 487 | algo = "crc32"; |
| 488 | }; |
| 489 | }; |
| 490 | |
| 491 | fdt-0 { |
| 492 | description = "k3-am654-base-board"; |
| 493 | type = "flat_dt"; |
| 494 | arch = "arm"; |
| 495 | compression = "none"; |
| 496 | blob { |
| 497 | filename = AM654_EVM_DTB; |
| 498 | }; |
| 499 | hash { |
| 500 | algo = "crc32"; |
| 501 | }; |
| 502 | }; |
| 503 | }; |
| 504 | |
| 505 | configurations { |
| 506 | default = "conf-0"; |
| 507 | |
| 508 | conf-0 { |
| 509 | description = "k3-am654-base-board"; |
| 510 | firmware = "uboot"; |
| 511 | loadables = "uboot"; |
| 512 | fdt = "fdt-0"; |
| 513 | }; |
| 514 | }; |
| 515 | }; |
| 516 | }; |
| 517 | }; |
| 518 | #endif |