Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +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_J721E_R5_EVM |
| 9 | |
| 10 | &binman { |
| 11 | tiboot3-j721e_sr1_1-hs-evm.bin { |
| 12 | filename = "tiboot3-j721e_sr1_1-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_fs_cert>; |
| 27 | core = "secure"; |
| 28 | load = <0x40000>; |
| 29 | keyfile = "custMpk.pem"; |
| 30 | countersign; |
| 31 | }; |
| 32 | ti_fs_cert: ti-fs-cert.bin { |
| 33 | filename = "ti-sysfw/ti-fs-firmware-j721e_sr1_1-hs-cert.bin"; |
| 34 | type = "blob-ext"; |
| 35 | optional; |
| 36 | }; |
| 37 | ti-fs-firmware-j721e_sr1_1-hs-enc.bin { |
| 38 | filename = "ti-sysfw/ti-fs-firmware-j721e_sr1_1-hs-enc.bin"; |
| 39 | type = "blob-ext"; |
| 40 | optional; |
| 41 | }; |
| 42 | }; |
| 43 | itb { |
| 44 | filename = "sysfw-j721e_sr1_1-hs-evm.itb"; |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 45 | insert-template = <&itb_template>; |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 46 | }; |
| 47 | }; |
| 48 | |
| 49 | &binman { |
| 50 | tiboot3-j721e_sr2-hs-fs-evm.bin { |
| 51 | filename = "tiboot3-j721e_sr2-hs-fs-evm.bin"; |
| 52 | ti-secure-rom { |
| 53 | content = <&u_boot_spl_fs>; |
| 54 | core = "public"; |
| 55 | load = <CONFIG_SPL_TEXT_BASE>; |
| 56 | keyfile = "custMpk.pem"; |
| 57 | }; |
| 58 | u_boot_spl_fs: u-boot-spl { |
| 59 | no-expanded; |
| 60 | }; |
| 61 | }; |
| 62 | sysfw_fs { |
| 63 | filename = "sysfw.bin_fs"; |
| 64 | ti-fs-cert-fs.bin { |
| 65 | filename = "ti-sysfw/ti-fs-firmware-j721e_sr2-hs-fs-cert.bin"; |
| 66 | type = "blob-ext"; |
| 67 | optional; |
| 68 | }; |
| 69 | ti-fs-firmware-j721e-hs-fs-enc.bin { |
| 70 | filename = "ti-sysfw/ti-fs-firmware-j721e_sr2-hs-fs-enc.bin"; |
| 71 | type = "blob-ext"; |
| 72 | optional; |
| 73 | }; |
| 74 | }; |
| 75 | itb_fs { |
| 76 | filename = "sysfw-j721e_sr2-hs-fs-evm.itb"; |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 77 | insert-template = <&itb_unsigned_template>; |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 78 | }; |
| 79 | }; |
| 80 | |
| 81 | &binman { |
| 82 | tiboot3-j721e-gp-evm.bin { |
| 83 | filename = "tiboot3-j721e-gp-evm.bin"; |
| 84 | symlink = "tiboot3.bin"; |
| 85 | ti-secure-rom { |
| 86 | content = <&u_boot_spl_unsigned>; |
| 87 | core = "public"; |
| 88 | load = <CONFIG_SPL_TEXT_BASE>; |
| 89 | sw-rev = <CONFIG_K3_X509_SWRV>; |
| 90 | keyfile = "ti-degenerate-key.pem"; |
| 91 | }; |
| 92 | u_boot_spl_unsigned: u-boot-spl { |
| 93 | no-expanded; |
| 94 | }; |
| 95 | }; |
| 96 | sysfw_gp { |
| 97 | filename = "sysfw.bin_gp"; |
| 98 | ti-secure-rom { |
| 99 | content = <&ti_fs>; |
| 100 | core = "secure"; |
| 101 | load = <0x40000>; |
| 102 | sw-rev = <CONFIG_K3_X509_SWRV>; |
| 103 | keyfile = "ti-degenerate-key.pem"; |
| 104 | }; |
| 105 | ti_fs: ti-fs.bin { |
| 106 | filename = "ti-sysfw/ti-fs-firmware-j721e-gp.bin"; |
| 107 | type = "blob-ext"; |
| 108 | optional; |
| 109 | }; |
| 110 | }; |
| 111 | itb_gp { |
| 112 | filename = "sysfw-j721e-gp-evm.itb"; |
| 113 | symlink = "sysfw.itb"; |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 114 | insert-template = <&itb_unsigned_template>; |
| 115 | |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 116 | fit { |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 117 | images { |
| 118 | sysfw.bin { |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 119 | blob-ext { |
| 120 | filename = "sysfw.bin_gp"; |
| 121 | }; |
| 122 | }; |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 123 | }; |
| 124 | }; |
| 125 | }; |
| 126 | }; |
| 127 | #endif |
| 128 | |
| 129 | #ifdef CONFIG_TARGET_J721E_A72_EVM |
| 130 | |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 131 | #define SPL_J721E_EVM_DTB "spl/dts/k3-j721e-common-proc-board.dtb" |
| 132 | #define SPL_J721E_SK_DTB "spl/dts/k3-j721e-sk.dtb" |
| 133 | |
Manorit Chawdhry | 64ebddb | 2023-07-14 11:22:38 +0530 | [diff] [blame] | 134 | #define J721E_EVM_DTB "u-boot.dtb" |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 135 | #define J721E_SK_DTB "arch/arm/dts/k3-j721e-sk.dtb" |
| 136 | |
| 137 | &binman { |
| 138 | ti-dm { |
| 139 | filename = "ti-dm.bin"; |
| 140 | blob-ext { |
| 141 | filename = "ti-dm/j721e/ipc_echo_testb_mcu1_0_release_strip.xer5f"; |
| 142 | }; |
| 143 | }; |
| 144 | ti-spl { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 145 | insert-template = <&ti_spl_template>; |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 146 | |
| 147 | fit { |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 148 | images { |
Manorit Chawdhry | 5fa5cd4 | 2023-12-29 16:16:29 +0530 | [diff] [blame^] | 149 | atf { |
| 150 | ti-secure { |
| 151 | auth-in-place = <0xa02>; |
| 152 | |
| 153 | firewall-257-0 { |
| 154 | /* cpu_0_cpu_0_msmc Background Firewall */ |
| 155 | insert-template = <&firewall_bg_1>; |
| 156 | id = <257>; |
| 157 | region = <0>; |
| 158 | }; |
| 159 | |
| 160 | firewall-257-1 { |
| 161 | /* cpu_0_cpu_0_msmc Foreground Firewall */ |
| 162 | insert-template = <&firewall_armv8_atf_fg>; |
| 163 | id = <257>; |
| 164 | region = <1>; |
| 165 | }; |
| 166 | |
| 167 | firewall-284-0 { |
| 168 | /* dru_0_msmc Background Firewall */ |
| 169 | insert-template = <&firewall_bg_3>; |
| 170 | id = <284>; |
| 171 | region = <0>; |
| 172 | }; |
| 173 | |
| 174 | firewall-284-1 { |
| 175 | /* dru_0_msmc Foreground Firewall */ |
| 176 | insert-template = <&firewall_armv8_atf_fg>; |
| 177 | id = <284>; |
| 178 | region = <1>; |
| 179 | }; |
| 180 | |
| 181 | /* firewall-4760-0 { |
| 182 | * nb_slv0__mem0 Background Firewall |
| 183 | * Already configured by the secure entity |
| 184 | * }; |
| 185 | */ |
| 186 | |
| 187 | firewall-4760-1 { |
| 188 | /* nb_slv0__mem0 Foreground Firewall */ |
| 189 | insert-template = <&firewall_armv8_atf_fg>; |
| 190 | id = <4760>; |
| 191 | region = <1>; |
| 192 | }; |
| 193 | |
| 194 | /* firewall-4761-0 { |
| 195 | * nb_slv1__mem0 Background Firewall |
| 196 | * Already configured by the secure entity |
| 197 | * }; |
| 198 | */ |
| 199 | |
| 200 | firewall-4761-1 { |
| 201 | /* nb_slv1__mem0 Foreground Firewall */ |
| 202 | insert-template = <&firewall_armv8_atf_fg>; |
| 203 | id = <4761>; |
| 204 | region = <1>; |
| 205 | }; |
| 206 | |
| 207 | }; |
| 208 | }; |
| 209 | |
| 210 | tee { |
| 211 | ti-secure { |
| 212 | auth-in-place = <0xa02>; |
| 213 | |
| 214 | /* cpu_0_cpu_0_msmc region 0 and 1 configured |
| 215 | * during ATF Firewalling |
| 216 | */ |
| 217 | |
| 218 | firewall-257-2 { |
| 219 | /* cpu_0_cpu_0_msmc Foreground Firewall */ |
| 220 | insert-template = <&firewall_armv8_optee_fg>; |
| 221 | id = <257>; |
| 222 | region = <2>; |
| 223 | }; |
| 224 | |
| 225 | /* dru_0_msmc region 0 and 1 configured |
| 226 | * during ATF Firewalling |
| 227 | */ |
| 228 | |
| 229 | firewall-284-2 { |
| 230 | /* dru_0_msmc Foreground Firewall */ |
| 231 | insert-template = <&firewall_armv8_optee_fg>; |
| 232 | id = <284>; |
| 233 | region = <2>; |
| 234 | }; |
| 235 | |
| 236 | firewall-4762-0 { |
| 237 | /* nb_slv2__mem0 Background Firewall */ |
| 238 | insert-template = <&firewall_bg_3>; |
| 239 | id = <4762>; |
| 240 | region = <0>; |
| 241 | }; |
| 242 | |
| 243 | firewall-4762-1 { |
| 244 | /* nb_slv2__mem0 Foreground Firewall */ |
| 245 | insert-template = <&firewall_armv8_optee_fg>; |
| 246 | id = <4762>; |
| 247 | region = <1>; |
| 248 | }; |
| 249 | |
| 250 | firewall-4763-0 { |
| 251 | /* nb_slv3__mem0 Background Firewall */ |
| 252 | insert-template = <&firewall_bg_3>; |
| 253 | id = <4763>; |
| 254 | region = <0>; |
| 255 | }; |
| 256 | |
| 257 | firewall-4763-1 { |
| 258 | /* nb_slv3__mem0 Foreground Firewall */ |
| 259 | insert-template = <&firewall_armv8_optee_fg>; |
| 260 | id = <4763>; |
| 261 | region = <1>; |
| 262 | }; |
| 263 | }; |
| 264 | }; |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 265 | dm { |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 266 | ti-secure { |
| 267 | content = <&dm>; |
| 268 | keyfile = "custMpk.pem"; |
| 269 | }; |
Neha Malcom Francis | 8237821 | 2023-12-05 15:12:19 +0530 | [diff] [blame] | 270 | dm: ti-dm { |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 271 | filename = "ti-dm.bin"; |
| 272 | }; |
| 273 | }; |
| 274 | |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 275 | fdt-0 { |
| 276 | description = "k3-j721e-common-proc-board"; |
| 277 | type = "flat_dt"; |
| 278 | arch = "arm"; |
| 279 | compression = "none"; |
| 280 | ti-secure { |
| 281 | content = <&spl_j721e_evm_dtb>; |
| 282 | keyfile = "custMpk.pem"; |
| 283 | }; |
| 284 | spl_j721e_evm_dtb: blob-ext { |
| 285 | filename = SPL_J721E_EVM_DTB; |
| 286 | }; |
| 287 | }; |
| 288 | |
| 289 | fdt-1 { |
| 290 | description = "k3-j721e-sk"; |
| 291 | type = "flat_dt"; |
| 292 | arch = "arm"; |
| 293 | compression = "none"; |
| 294 | ti-secure { |
| 295 | content = <&spl_j721e_sk_dtb>; |
| 296 | keyfile = "custMpk.pem"; |
| 297 | |
| 298 | }; |
| 299 | spl_j721e_sk_dtb: blob-ext { |
| 300 | filename = SPL_J721E_SK_DTB; |
| 301 | }; |
| 302 | }; |
| 303 | }; |
| 304 | |
| 305 | configurations { |
| 306 | default = "conf-0"; |
| 307 | |
| 308 | conf-0 { |
| 309 | description = "k3-j721e-common-proc-board"; |
| 310 | firmware = "atf"; |
| 311 | loadables = "tee", "dm", "spl"; |
| 312 | fdt = "fdt-0"; |
| 313 | }; |
| 314 | |
| 315 | conf-1 { |
| 316 | description = "k3-j721e-sk"; |
| 317 | firmware = "atf"; |
| 318 | loadables = "tee", "dm", "spl"; |
| 319 | fdt = "fdt-1"; |
| 320 | }; |
| 321 | }; |
| 322 | }; |
| 323 | }; |
| 324 | }; |
| 325 | |
| 326 | &binman { |
| 327 | u-boot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 328 | insert-template = <&u_boot_template>; |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 329 | fit { |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 330 | |
| 331 | images { |
| 332 | uboot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 333 | description = "U-Boot for J721E Board"; |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 334 | }; |
| 335 | |
| 336 | fdt-0 { |
| 337 | description = "k3-j721e-common-proc-board"; |
| 338 | type = "flat_dt"; |
| 339 | arch = "arm"; |
| 340 | compression = "none"; |
| 341 | ti-secure { |
| 342 | content = <&j721e_evm_dtb>; |
| 343 | keyfile = "custMpk.pem"; |
| 344 | |
| 345 | }; |
| 346 | j721e_evm_dtb: blob-ext { |
| 347 | filename = J721E_EVM_DTB; |
| 348 | }; |
| 349 | hash { |
| 350 | algo = "crc32"; |
| 351 | }; |
| 352 | }; |
| 353 | |
| 354 | fdt-1 { |
| 355 | description = "k3-j721e-sk"; |
| 356 | type = "flat_dt"; |
| 357 | arch = "arm"; |
| 358 | compression = "none"; |
| 359 | ti-secure { |
| 360 | content = <&j721e_sk_dtb>; |
| 361 | keyfile = "custMpk.pem"; |
| 362 | |
| 363 | }; |
| 364 | j721e_sk_dtb: blob-ext { |
| 365 | filename = J721E_SK_DTB; |
| 366 | }; |
| 367 | hash { |
| 368 | algo = "crc32"; |
| 369 | }; |
| 370 | }; |
| 371 | }; |
| 372 | |
| 373 | configurations { |
| 374 | default = "conf-0"; |
| 375 | |
| 376 | conf-0 { |
| 377 | description = "k3-j721e-common-proc-board"; |
| 378 | firmware = "uboot"; |
| 379 | loadables = "uboot"; |
| 380 | fdt = "fdt-0"; |
| 381 | }; |
| 382 | |
| 383 | conf-1 { |
| 384 | description = "k3-j721e-sk"; |
| 385 | firmware = "uboot"; |
| 386 | loadables = "uboot"; |
| 387 | fdt = "fdt-1"; |
| 388 | }; |
| 389 | }; |
| 390 | }; |
| 391 | }; |
| 392 | }; |
| 393 | |
| 394 | &binman { |
| 395 | ti-spl_unsigned { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 396 | insert-template = <&ti_spl_unsigned_template>; |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 397 | |
| 398 | fit { |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 399 | images { |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 400 | dm { |
Neha Malcom Francis | 8237821 | 2023-12-05 15:12:19 +0530 | [diff] [blame] | 401 | ti-dm { |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 402 | filename = "ti-dm.bin"; |
| 403 | }; |
| 404 | }; |
| 405 | |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 406 | fdt-0 { |
| 407 | description = "k3-j721e-common-proc-board"; |
| 408 | type = "flat_dt"; |
| 409 | arch = "arm"; |
| 410 | compression = "none"; |
| 411 | blob { |
| 412 | filename = SPL_J721E_EVM_DTB; |
| 413 | }; |
| 414 | }; |
| 415 | |
| 416 | fdt-1 { |
| 417 | description = "k3-j721e-sk"; |
| 418 | type = "flat_dt"; |
| 419 | arch = "arm"; |
| 420 | compression = "none"; |
| 421 | blob { |
| 422 | filename = SPL_J721E_SK_DTB; |
| 423 | }; |
| 424 | }; |
| 425 | }; |
| 426 | |
| 427 | configurations { |
| 428 | default = "conf-0"; |
| 429 | |
| 430 | conf-0 { |
| 431 | description = "k3-j721e-common-proc-board"; |
| 432 | firmware = "atf"; |
| 433 | loadables = "tee", "dm", "spl"; |
| 434 | fdt = "fdt-0"; |
| 435 | }; |
| 436 | |
| 437 | conf-1 { |
| 438 | description = "k3-j721e-sk"; |
| 439 | firmware = "atf"; |
| 440 | loadables = "tee", "dm", "spl"; |
| 441 | fdt = "fdt-1"; |
| 442 | }; |
| 443 | }; |
| 444 | }; |
| 445 | }; |
| 446 | }; |
| 447 | |
| 448 | &binman { |
| 449 | u-boot_unsigned { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 450 | insert-template = <&u_boot_unsigned_template>; |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 451 | |
| 452 | fit { |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 453 | images { |
| 454 | uboot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 455 | description = "U-Boot for J721E Board"; |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 456 | }; |
| 457 | |
| 458 | fdt-0 { |
| 459 | description = "k3-j721e-common-proc-board"; |
| 460 | type = "flat_dt"; |
| 461 | arch = "arm"; |
| 462 | compression = "none"; |
| 463 | blob { |
| 464 | filename = J721E_EVM_DTB; |
| 465 | }; |
| 466 | hash { |
| 467 | algo = "crc32"; |
| 468 | }; |
| 469 | }; |
| 470 | |
| 471 | fdt-1 { |
| 472 | description = "k3-j721e-sk"; |
| 473 | type = "flat_dt"; |
| 474 | arch = "arm"; |
| 475 | compression = "none"; |
| 476 | blob { |
| 477 | filename = J721E_SK_DTB; |
| 478 | }; |
| 479 | hash { |
| 480 | algo = "crc32"; |
| 481 | }; |
| 482 | }; |
| 483 | }; |
| 484 | |
| 485 | configurations { |
| 486 | default = "conf-0"; |
| 487 | |
| 488 | conf-0 { |
| 489 | description = "k3-j721e-common-proc-board"; |
| 490 | firmware = "uboot"; |
| 491 | loadables = "uboot"; |
| 492 | fdt = "fdt-0"; |
| 493 | }; |
| 494 | |
| 495 | conf-1 { |
| 496 | description = "k3-j721e-sk"; |
| 497 | firmware = "uboot"; |
| 498 | loadables = "uboot"; |
| 499 | fdt = "fdt-1"; |
| 500 | }; |
| 501 | }; |
| 502 | }; |
| 503 | }; |
| 504 | }; |
| 505 | #endif |