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 { |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 149 | dm { |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 150 | ti-secure { |
| 151 | content = <&dm>; |
| 152 | keyfile = "custMpk.pem"; |
| 153 | }; |
| 154 | dm: blob-ext { |
| 155 | filename = "ti-dm.bin"; |
| 156 | }; |
| 157 | }; |
| 158 | |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 159 | fdt-0 { |
| 160 | description = "k3-j721e-common-proc-board"; |
| 161 | type = "flat_dt"; |
| 162 | arch = "arm"; |
| 163 | compression = "none"; |
| 164 | ti-secure { |
| 165 | content = <&spl_j721e_evm_dtb>; |
| 166 | keyfile = "custMpk.pem"; |
| 167 | }; |
| 168 | spl_j721e_evm_dtb: blob-ext { |
| 169 | filename = SPL_J721E_EVM_DTB; |
| 170 | }; |
| 171 | }; |
| 172 | |
| 173 | fdt-1 { |
| 174 | description = "k3-j721e-sk"; |
| 175 | type = "flat_dt"; |
| 176 | arch = "arm"; |
| 177 | compression = "none"; |
| 178 | ti-secure { |
| 179 | content = <&spl_j721e_sk_dtb>; |
| 180 | keyfile = "custMpk.pem"; |
| 181 | |
| 182 | }; |
| 183 | spl_j721e_sk_dtb: blob-ext { |
| 184 | filename = SPL_J721E_SK_DTB; |
| 185 | }; |
| 186 | }; |
| 187 | }; |
| 188 | |
| 189 | configurations { |
| 190 | default = "conf-0"; |
| 191 | |
| 192 | conf-0 { |
| 193 | description = "k3-j721e-common-proc-board"; |
| 194 | firmware = "atf"; |
| 195 | loadables = "tee", "dm", "spl"; |
| 196 | fdt = "fdt-0"; |
| 197 | }; |
| 198 | |
| 199 | conf-1 { |
| 200 | description = "k3-j721e-sk"; |
| 201 | firmware = "atf"; |
| 202 | loadables = "tee", "dm", "spl"; |
| 203 | fdt = "fdt-1"; |
| 204 | }; |
| 205 | }; |
| 206 | }; |
| 207 | }; |
| 208 | }; |
| 209 | |
| 210 | &binman { |
| 211 | u-boot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 212 | insert-template = <&u_boot_template>; |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 213 | fit { |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 214 | |
| 215 | images { |
| 216 | uboot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 217 | description = "U-Boot for J721E Board"; |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 218 | }; |
| 219 | |
| 220 | fdt-0 { |
| 221 | description = "k3-j721e-common-proc-board"; |
| 222 | type = "flat_dt"; |
| 223 | arch = "arm"; |
| 224 | compression = "none"; |
| 225 | ti-secure { |
| 226 | content = <&j721e_evm_dtb>; |
| 227 | keyfile = "custMpk.pem"; |
| 228 | |
| 229 | }; |
| 230 | j721e_evm_dtb: blob-ext { |
| 231 | filename = J721E_EVM_DTB; |
| 232 | }; |
| 233 | hash { |
| 234 | algo = "crc32"; |
| 235 | }; |
| 236 | }; |
| 237 | |
| 238 | fdt-1 { |
| 239 | description = "k3-j721e-sk"; |
| 240 | type = "flat_dt"; |
| 241 | arch = "arm"; |
| 242 | compression = "none"; |
| 243 | ti-secure { |
| 244 | content = <&j721e_sk_dtb>; |
| 245 | keyfile = "custMpk.pem"; |
| 246 | |
| 247 | }; |
| 248 | j721e_sk_dtb: blob-ext { |
| 249 | filename = J721E_SK_DTB; |
| 250 | }; |
| 251 | hash { |
| 252 | algo = "crc32"; |
| 253 | }; |
| 254 | }; |
| 255 | }; |
| 256 | |
| 257 | configurations { |
| 258 | default = "conf-0"; |
| 259 | |
| 260 | conf-0 { |
| 261 | description = "k3-j721e-common-proc-board"; |
| 262 | firmware = "uboot"; |
| 263 | loadables = "uboot"; |
| 264 | fdt = "fdt-0"; |
| 265 | }; |
| 266 | |
| 267 | conf-1 { |
| 268 | description = "k3-j721e-sk"; |
| 269 | firmware = "uboot"; |
| 270 | loadables = "uboot"; |
| 271 | fdt = "fdt-1"; |
| 272 | }; |
| 273 | }; |
| 274 | }; |
| 275 | }; |
| 276 | }; |
| 277 | |
| 278 | &binman { |
| 279 | ti-spl_unsigned { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 280 | insert-template = <&ti_spl_unsigned_template>; |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 281 | |
| 282 | fit { |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 283 | images { |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 284 | dm { |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 285 | blob-ext { |
| 286 | filename = "ti-dm.bin"; |
| 287 | }; |
| 288 | }; |
| 289 | |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 290 | fdt-0 { |
| 291 | description = "k3-j721e-common-proc-board"; |
| 292 | type = "flat_dt"; |
| 293 | arch = "arm"; |
| 294 | compression = "none"; |
| 295 | blob { |
| 296 | filename = SPL_J721E_EVM_DTB; |
| 297 | }; |
| 298 | }; |
| 299 | |
| 300 | fdt-1 { |
| 301 | description = "k3-j721e-sk"; |
| 302 | type = "flat_dt"; |
| 303 | arch = "arm"; |
| 304 | compression = "none"; |
| 305 | blob { |
| 306 | filename = SPL_J721E_SK_DTB; |
| 307 | }; |
| 308 | }; |
| 309 | }; |
| 310 | |
| 311 | configurations { |
| 312 | default = "conf-0"; |
| 313 | |
| 314 | conf-0 { |
| 315 | description = "k3-j721e-common-proc-board"; |
| 316 | firmware = "atf"; |
| 317 | loadables = "tee", "dm", "spl"; |
| 318 | fdt = "fdt-0"; |
| 319 | }; |
| 320 | |
| 321 | conf-1 { |
| 322 | description = "k3-j721e-sk"; |
| 323 | firmware = "atf"; |
| 324 | loadables = "tee", "dm", "spl"; |
| 325 | fdt = "fdt-1"; |
| 326 | }; |
| 327 | }; |
| 328 | }; |
| 329 | }; |
| 330 | }; |
| 331 | |
| 332 | &binman { |
| 333 | u-boot_unsigned { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 334 | insert-template = <&u_boot_unsigned_template>; |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 335 | |
| 336 | fit { |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 337 | images { |
| 338 | uboot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 339 | description = "U-Boot for J721E Board"; |
Neha Malcom Francis | 20a9004 | 2023-07-22 00:14:28 +0530 | [diff] [blame] | 340 | }; |
| 341 | |
| 342 | fdt-0 { |
| 343 | description = "k3-j721e-common-proc-board"; |
| 344 | type = "flat_dt"; |
| 345 | arch = "arm"; |
| 346 | compression = "none"; |
| 347 | blob { |
| 348 | filename = J721E_EVM_DTB; |
| 349 | }; |
| 350 | hash { |
| 351 | algo = "crc32"; |
| 352 | }; |
| 353 | }; |
| 354 | |
| 355 | fdt-1 { |
| 356 | description = "k3-j721e-sk"; |
| 357 | type = "flat_dt"; |
| 358 | arch = "arm"; |
| 359 | compression = "none"; |
| 360 | blob { |
| 361 | filename = J721E_SK_DTB; |
| 362 | }; |
| 363 | hash { |
| 364 | algo = "crc32"; |
| 365 | }; |
| 366 | }; |
| 367 | }; |
| 368 | |
| 369 | configurations { |
| 370 | default = "conf-0"; |
| 371 | |
| 372 | conf-0 { |
| 373 | description = "k3-j721e-common-proc-board"; |
| 374 | firmware = "uboot"; |
| 375 | loadables = "uboot"; |
| 376 | fdt = "fdt-0"; |
| 377 | }; |
| 378 | |
| 379 | conf-1 { |
| 380 | description = "k3-j721e-sk"; |
| 381 | firmware = "uboot"; |
| 382 | loadables = "uboot"; |
| 383 | fdt = "fdt-1"; |
| 384 | }; |
| 385 | }; |
| 386 | }; |
| 387 | }; |
| 388 | }; |
| 389 | #endif |