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 | |
Nishanth Menon | 53cc5b0 | 2024-06-05 10:27:52 -0500 | [diff] [blame] | 147 | #define SPL_AM62A7_SK_DTB "spl/dts/ti/k3-am62a7-sk.dtb" |
Manorit Chawdhry | 64ebddb | 2023-07-14 11:22:38 +0530 | [diff] [blame] | 148 | #define AM62A7_SK_DTB "u-boot.dtb" |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 149 | |
| 150 | &binman { |
| 151 | ti-dm { |
| 152 | filename = "ti-dm.bin"; |
| 153 | blob-ext { |
| 154 | filename = "ti-dm/am62axx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; |
Neha Malcom Francis | df41fc6 | 2024-05-29 13:18:49 +0530 | [diff] [blame] | 155 | optional; |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 156 | }; |
| 157 | }; |
Dhruva Gole | d980cb2 | 2024-06-07 14:26:40 +0530 | [diff] [blame] | 158 | |
| 159 | tifsstub-hs { |
| 160 | filename = "tifsstub.bin_hs"; |
| 161 | ti-secure-rom { |
| 162 | content = <&tifsstub_hs_cert>; |
| 163 | core = "secure"; |
| 164 | load = <0x60000>; |
| 165 | sw-rev = <CONFIG_K3_X509_SWRV>; |
| 166 | keyfile = "custMpk.pem"; |
| 167 | countersign; |
| 168 | tifsstub; |
| 169 | }; |
| 170 | tifsstub_hs_cert: tifsstub-hs-cert.bin { |
| 171 | filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-cert.bin"; |
| 172 | type = "blob-ext"; |
| 173 | optional; |
| 174 | }; |
| 175 | tifsstub_hs_enc: tifsstub-hs-enc.bin { |
| 176 | filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-enc.bin"; |
| 177 | type = "blob-ext"; |
| 178 | optional; |
| 179 | }; |
| 180 | }; |
| 181 | |
| 182 | tifsstub-fs { |
| 183 | filename = "tifsstub.bin_fs"; |
| 184 | tifsstub_fs_cert: tifsstub-fs-cert.bin { |
| 185 | filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-cert.bin"; |
| 186 | type = "blob-ext"; |
| 187 | optional; |
| 188 | }; |
| 189 | tifsstub_fs_enc: tifsstub-fs-enc.bin { |
| 190 | filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-hs-enc.bin"; |
| 191 | type = "blob-ext"; |
| 192 | optional; |
| 193 | }; |
| 194 | |
| 195 | }; |
| 196 | |
| 197 | tifsstub-gp { |
| 198 | filename = "tifsstub.bin_gp"; |
| 199 | ti-secure-rom { |
| 200 | content = <&tifsstub_gp>; |
| 201 | core = "secure"; |
| 202 | load = <0x60000>; |
| 203 | sw-rev = <CONFIG_K3_X509_SWRV>; |
| 204 | keyfile = "ti-degenerate-key.pem"; |
| 205 | tifsstub; |
| 206 | }; |
| 207 | tifsstub_gp: tifsstub-gp.bin { |
| 208 | filename = "ti-sysfw/ti-fs-stub-firmware-am62ax-gp.bin"; |
| 209 | type = "blob-ext"; |
| 210 | optional; |
| 211 | }; |
| 212 | }; |
| 213 | |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 214 | ti-spl { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 215 | insert-template = <&ti_spl_template>; |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 216 | |
| 217 | fit { |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 218 | images { |
Dhruva Gole | d980cb2 | 2024-06-07 14:26:40 +0530 | [diff] [blame] | 219 | tifsstub-hs { |
| 220 | description = "TIFSSTUB"; |
| 221 | type = "firmware"; |
| 222 | arch = "arm32"; |
| 223 | compression = "none"; |
| 224 | os = "tifsstub-hs"; |
| 225 | load = <0x9ca00000>; |
| 226 | entry = <0x9ca00000>; |
| 227 | blob-ext { |
| 228 | filename = "tifsstub.bin_hs"; |
| 229 | }; |
| 230 | }; |
| 231 | |
| 232 | tifsstub-fs { |
| 233 | description = "TIFSSTUB"; |
| 234 | type = "firmware"; |
| 235 | arch = "arm32"; |
| 236 | compression = "none"; |
| 237 | os = "tifsstub-fs"; |
| 238 | load = <0x9ca00000>; |
| 239 | entry = <0x9ca00000>; |
| 240 | blob-ext { |
| 241 | filename = "tifsstub.bin_fs"; |
| 242 | }; |
| 243 | }; |
| 244 | |
| 245 | tifsstub-gp { |
| 246 | description = "TIFSSTUB"; |
| 247 | type = "firmware"; |
| 248 | arch = "arm32"; |
| 249 | compression = "none"; |
| 250 | os = "tifsstub-gp"; |
| 251 | load = <0x9ca00000>; |
| 252 | entry = <0x9ca00000>; |
| 253 | blob-ext { |
| 254 | filename = "tifsstub.bin_gp"; |
| 255 | }; |
| 256 | }; |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 257 | dm { |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 258 | ti-secure { |
| 259 | content = <&dm>; |
| 260 | keyfile = "custMpk.pem"; |
| 261 | }; |
Neha Malcom Francis | 8237821 | 2023-12-05 15:12:19 +0530 | [diff] [blame] | 262 | dm: ti-dm { |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 263 | filename = "ti-dm.bin"; |
| 264 | }; |
| 265 | }; |
| 266 | |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 267 | fdt-0 { |
| 268 | description = "k3-am62a7-sk"; |
| 269 | type = "flat_dt"; |
| 270 | arch = "arm"; |
| 271 | compression = "none"; |
| 272 | ti-secure { |
| 273 | content = <&spl_am62a7_sk_dtb>; |
| 274 | keyfile = "custMpk.pem"; |
| 275 | }; |
| 276 | spl_am62a7_sk_dtb: blob-ext { |
| 277 | filename = SPL_AM62A7_SK_DTB; |
| 278 | }; |
| 279 | |
| 280 | }; |
| 281 | |
| 282 | }; |
| 283 | |
| 284 | configurations { |
| 285 | default = "conf-0"; |
| 286 | |
| 287 | conf-0 { |
| 288 | description = "k3-am62a7-sk"; |
| 289 | firmware = "atf"; |
Dhruva Gole | d980cb2 | 2024-06-07 14:26:40 +0530 | [diff] [blame] | 290 | loadables = "tee", "dm", "spl", |
| 291 | "tifsstub-hs", "tifsstub-fs", "tifsstub-gp"; |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 292 | fdt = "fdt-0"; |
| 293 | }; |
| 294 | }; |
| 295 | }; |
| 296 | }; |
| 297 | }; |
| 298 | |
| 299 | &binman { |
| 300 | u-boot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 301 | insert-template = <&u_boot_template>; |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 302 | |
| 303 | fit { |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 304 | images { |
| 305 | uboot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 306 | description = "U-Boot for AM62Ax Board"; |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 307 | }; |
| 308 | |
| 309 | fdt-0 { |
| 310 | description = "k3-am62a7-sk"; |
| 311 | type = "flat_dt"; |
| 312 | arch = "arm"; |
| 313 | compression = "none"; |
| 314 | ti-secure { |
| 315 | content = <&am62a7_sk_dtb>; |
| 316 | keyfile = "custMpk.pem"; |
| 317 | }; |
| 318 | am62a7_sk_dtb: blob-ext { |
| 319 | filename = AM62A7_SK_DTB; |
| 320 | }; |
| 321 | hash { |
| 322 | algo = "crc32"; |
| 323 | }; |
| 324 | }; |
| 325 | }; |
| 326 | |
| 327 | configurations { |
| 328 | default = "conf-0"; |
| 329 | |
| 330 | conf-0 { |
| 331 | description = "k3-am62a7-sk"; |
| 332 | firmware = "uboot"; |
| 333 | loadables = "uboot"; |
| 334 | fdt = "fdt-0"; |
| 335 | }; |
| 336 | |
| 337 | }; |
| 338 | }; |
| 339 | }; |
| 340 | }; |
| 341 | |
| 342 | &binman { |
| 343 | ti-spl_unsigned { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 344 | insert-template = <&ti_spl_unsigned_template>; |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 345 | |
| 346 | fit { |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 347 | images { |
Dhruva Gole | d980cb2 | 2024-06-07 14:26:40 +0530 | [diff] [blame] | 348 | tifsstub-hs { |
| 349 | description = "tifsstub"; |
| 350 | type = "firmware"; |
| 351 | arch = "arm32"; |
| 352 | compression = "none"; |
| 353 | os = "tifsstub-hs"; |
| 354 | load = <0x9ca00000>; |
| 355 | entry = <0x9ca00000>; |
| 356 | blob-ext { |
| 357 | filename = "tifsstub.bin_hs"; |
| 358 | }; |
| 359 | }; |
| 360 | |
| 361 | tifsstub-fs { |
| 362 | description = "tifsstub"; |
| 363 | type = "firmware"; |
| 364 | arch = "arm32"; |
| 365 | compression = "none"; |
| 366 | os = "tifsstub-fs"; |
| 367 | load = <0x9ca00000>; |
| 368 | entry = <0x9ca00000>; |
| 369 | blob-ext { |
| 370 | filename = "tifsstub.bin_fs"; |
| 371 | }; |
| 372 | }; |
| 373 | |
| 374 | tifsstub-gp { |
| 375 | description = "tifsstub"; |
| 376 | type = "firmware"; |
| 377 | arch = "arm32"; |
| 378 | compression = "none"; |
| 379 | os = "tifsstub-gp"; |
| 380 | load = <0x9ca00000>; |
| 381 | entry = <0x9ca00000>; |
| 382 | blob-ext { |
| 383 | filename = "tifsstub.bin_gp"; |
| 384 | }; |
| 385 | }; |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 386 | dm { |
Neha Malcom Francis | 8237821 | 2023-12-05 15:12:19 +0530 | [diff] [blame] | 387 | ti-dm { |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 388 | filename = "ti-dm.bin"; |
| 389 | }; |
| 390 | }; |
| 391 | |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 392 | fdt-0 { |
| 393 | description = "k3-am62a7-sk"; |
| 394 | type = "flat_dt"; |
| 395 | arch = "arm"; |
| 396 | compression = "none"; |
| 397 | blob { |
| 398 | filename = SPL_AM62A7_SK_DTB; |
| 399 | }; |
| 400 | }; |
| 401 | }; |
| 402 | |
| 403 | configurations { |
| 404 | default = "conf-0"; |
| 405 | |
| 406 | conf-0 { |
| 407 | description = "k3-am62a7-sk"; |
| 408 | firmware = "atf"; |
Dhruva Gole | d980cb2 | 2024-06-07 14:26:40 +0530 | [diff] [blame] | 409 | loadables = "tee", "dm", "spl", |
| 410 | "tifsstub-hs", "tifsstub-fs", "tifsstub-gp"; |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 411 | fdt = "fdt-0"; |
| 412 | }; |
| 413 | }; |
| 414 | }; |
| 415 | }; |
| 416 | }; |
| 417 | |
| 418 | &binman { |
| 419 | u-boot_unsigned { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 420 | insert-template = <&u_boot_unsigned_template>; |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 421 | |
| 422 | fit { |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 423 | images { |
| 424 | uboot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 425 | description = "U-Boot for AM62Ax Board"; |
Neha Malcom Francis | e482445 | 2023-07-22 00:14:40 +0530 | [diff] [blame] | 426 | }; |
| 427 | |
| 428 | fdt-0 { |
| 429 | description = "k3-am62a7-sk"; |
| 430 | type = "flat_dt"; |
| 431 | arch = "arm"; |
| 432 | compression = "none"; |
| 433 | blob { |
| 434 | filename = AM62A7_SK_DTB; |
| 435 | }; |
| 436 | hash { |
| 437 | algo = "crc32"; |
| 438 | }; |
| 439 | }; |
| 440 | }; |
| 441 | |
| 442 | configurations { |
| 443 | default = "conf-0"; |
| 444 | |
| 445 | conf-0 { |
| 446 | description = "k3-am62a7-sk"; |
| 447 | firmware = "uboot"; |
| 448 | loadables = "uboot"; |
| 449 | fdt = "fdt-0"; |
| 450 | }; |
| 451 | }; |
| 452 | }; |
| 453 | }; |
| 454 | }; |
| 455 | #endif |