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