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