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