Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +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_J7200_R5_EVM |
| 9 | |
| 10 | &bcfg_yaml { |
| 11 | config = "board-cfg_j7200.yaml"; |
| 12 | }; |
| 13 | |
| 14 | &rcfg_yaml { |
| 15 | config = "rm-cfg_j7200.yaml"; |
| 16 | }; |
| 17 | |
| 18 | &pcfg_yaml { |
| 19 | config = "pm-cfg_j7200.yaml"; |
| 20 | }; |
| 21 | |
| 22 | &scfg_yaml { |
| 23 | config = "sec-cfg_j7200.yaml"; |
| 24 | }; |
| 25 | |
| 26 | &bcfg_yaml_tifs { |
| 27 | config = "board-cfg_j7200.yaml"; |
| 28 | }; |
| 29 | |
| 30 | &rcfg_yaml_tifs { |
| 31 | config = "rm-cfg_j7200.yaml"; |
| 32 | }; |
| 33 | |
| 34 | &pcfg_yaml_tifs { |
| 35 | config = "pm-cfg_j7200.yaml"; |
| 36 | }; |
| 37 | |
| 38 | &scfg_yaml_tifs { |
| 39 | config = "sec-cfg_j7200.yaml"; |
| 40 | }; |
| 41 | |
| 42 | &rcfg_yaml_dm { |
| 43 | config = "rm-cfg_j7200.yaml"; |
| 44 | }; |
| 45 | |
| 46 | &pcfg_yaml_dm { |
| 47 | config = "pm-cfg_j7200.yaml"; |
| 48 | }; |
| 49 | |
| 50 | &binman { |
| 51 | tiboot3-j7200_sr2-hs-evm.bin { |
| 52 | filename = "tiboot3-j7200_sr2-hs-evm.bin"; |
| 53 | ti-secure-rom { |
| 54 | content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>, |
| 55 | <&combined_dm_cfg>, <&sysfw_inner_cert>; |
| 56 | combined; |
| 57 | dm-data; |
| 58 | sysfw-inner-cert; |
| 59 | keyfile = "custMpk.pem"; |
| 60 | sw-rev = <1>; |
| 61 | content-sbl = <&u_boot_spl>; |
| 62 | content-sysfw = <&ti_fs_enc>; |
| 63 | content-sysfw-data = <&combined_tifs_cfg>; |
| 64 | content-sysfw-inner-cert = <&sysfw_inner_cert>; |
| 65 | content-dm-data = <&combined_dm_cfg>; |
| 66 | load = <0x41c00000>; |
| 67 | load-sysfw = <0x40000>; |
| 68 | load-sysfw-data = <0x7f000>; |
| 69 | load-dm-data = <0x41c80000>; |
| 70 | }; |
| 71 | u_boot_spl: u-boot-spl { |
| 72 | no-expanded; |
| 73 | }; |
| 74 | ti_fs_enc: ti-fs-enc.bin { |
| 75 | filename = "ti-sysfw/ti-fs-firmware-j7200_sr2-hs-enc.bin"; |
| 76 | type = "blob-ext"; |
| 77 | optional; |
| 78 | }; |
| 79 | combined_tifs_cfg: combined-tifs-cfg.bin { |
| 80 | filename = "combined-tifs-cfg.bin"; |
| 81 | type = "blob-ext"; |
| 82 | }; |
| 83 | sysfw_inner_cert: sysfw-inner-cert { |
| 84 | filename = "ti-sysfw/ti-fs-firmware-j7200_sr2-hs-cert.bin"; |
| 85 | type = "blob-ext"; |
| 86 | optional; |
| 87 | }; |
| 88 | combined_dm_cfg: combined-dm-cfg.bin { |
| 89 | filename = "combined-dm-cfg.bin"; |
| 90 | type = "blob-ext"; |
| 91 | }; |
| 92 | }; |
| 93 | }; |
| 94 | |
| 95 | &binman { |
| 96 | tiboot3-j7200_sr2-hs-fs-evm.bin { |
| 97 | filename = "tiboot3-j7200_sr2-hs-fs-evm.bin"; |
| 98 | ti-secure-rom { |
| 99 | content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>, |
| 100 | <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>; |
| 101 | combined; |
| 102 | dm-data; |
| 103 | sysfw-inner-cert; |
| 104 | keyfile = "custMpk.pem"; |
| 105 | sw-rev = <1>; |
| 106 | content-sbl = <&u_boot_spl_fs>; |
| 107 | content-sysfw = <&ti_fs_enc_fs>; |
| 108 | content-sysfw-data = <&combined_tifs_cfg_fs>; |
| 109 | content-sysfw-inner-cert = <&sysfw_inner_cert_fs>; |
| 110 | content-dm-data = <&combined_dm_cfg_fs>; |
| 111 | load = <0x41c00000>; |
| 112 | load-sysfw = <0x40000>; |
| 113 | load-sysfw-data = <0x7f000>; |
| 114 | load-dm-data = <0x41c80000>; |
| 115 | }; |
| 116 | u_boot_spl_fs: u-boot-spl { |
| 117 | no-expanded; |
| 118 | }; |
| 119 | ti_fs_enc_fs: ti-fs-enc.bin { |
| 120 | filename = "ti-sysfw/ti-fs-firmware-j7200_sr2-hs-fs-enc.bin"; |
| 121 | type = "blob-ext"; |
| 122 | optional; |
| 123 | }; |
| 124 | combined_tifs_cfg_fs: combined-tifs-cfg.bin { |
| 125 | filename = "combined-tifs-cfg.bin"; |
| 126 | type = "blob-ext"; |
| 127 | }; |
| 128 | sysfw_inner_cert_fs: sysfw-inner-cert { |
| 129 | filename = "ti-sysfw/ti-fs-firmware-j7200_sr2-hs-fs-cert.bin"; |
| 130 | type = "blob-ext"; |
| 131 | optional; |
| 132 | }; |
| 133 | combined_dm_cfg_fs: combined-dm-cfg.bin { |
| 134 | filename = "combined-dm-cfg.bin"; |
| 135 | type = "blob-ext"; |
| 136 | }; |
| 137 | }; |
| 138 | }; |
| 139 | |
| 140 | &binman { |
| 141 | tiboot3-j7200-gp-evm.bin { |
| 142 | filename = "tiboot3-j7200-gp-evm.bin"; |
| 143 | symlink = "tiboot3.bin"; |
| 144 | ti-secure-rom { |
| 145 | content = <&u_boot_spl_unsigned>, <&ti_fs_gp>, |
| 146 | <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>; |
| 147 | combined; |
| 148 | dm-data; |
| 149 | content-sbl = <&u_boot_spl_unsigned>; |
| 150 | load = <0x41c00000>; |
| 151 | content-sysfw = <&ti_fs_gp>; |
| 152 | load-sysfw = <0x40000>; |
| 153 | content-sysfw-data = <&combined_tifs_cfg_gp>; |
| 154 | load-sysfw-data = <0x7f000>; |
| 155 | content-dm-data = <&combined_dm_cfg_gp>; |
| 156 | load-dm-data = <0x41c80000>; |
| 157 | sw-rev = <1>; |
| 158 | keyfile = "ti-degenerate-key.pem"; |
| 159 | }; |
| 160 | u_boot_spl_unsigned: u-boot-spl { |
| 161 | no-expanded; |
| 162 | }; |
| 163 | ti_fs_gp: ti-fs-gp.bin { |
| 164 | filename = "ti-sysfw/ti-fs-firmware-j7200-gp.bin"; |
| 165 | type = "blob-ext"; |
| 166 | optional; |
| 167 | }; |
| 168 | combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin { |
| 169 | filename = "combined-tifs-cfg.bin"; |
| 170 | type = "blob-ext"; |
| 171 | }; |
| 172 | combined_dm_cfg_gp: combined-dm-cfg-gp.bin { |
| 173 | filename = "combined-dm-cfg.bin"; |
| 174 | type = "blob-ext"; |
| 175 | }; |
| 176 | }; |
| 177 | }; |
| 178 | |
| 179 | #endif |
| 180 | |
| 181 | #ifdef CONFIG_TARGET_J7200_A72_EVM |
| 182 | |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 183 | #define SPL_J7200_EVM_DTB "spl/dts/k3-j7200-common-proc-board.dtb" |
Manorit Chawdhry | 64ebddb | 2023-07-14 11:22:38 +0530 | [diff] [blame] | 184 | #define J7200_EVM_DTB "u-boot.dtb" |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 185 | |
| 186 | &binman { |
| 187 | ti-dm { |
| 188 | filename = "ti-dm.bin"; |
| 189 | blob-ext { |
| 190 | filename = "ti-dm/j7200/ipc_echo_testb_mcu1_0_release_strip.xer5f"; |
| 191 | }; |
| 192 | }; |
| 193 | ti-spl { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 194 | insert-template = <&ti_spl_template>; |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 195 | |
| 196 | fit { |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 197 | images { |
Manorit Chawdhry | ebea898 | 2023-12-29 16:16:31 +0530 | [diff] [blame] | 198 | atf { |
| 199 | ti-secure { |
| 200 | auth-in-place = <0xa02>; |
| 201 | |
| 202 | firewall-257-0 { |
| 203 | /* cpu_0_cpu_0_msmc Background Firewall */ |
| 204 | insert-template = <&firewall_bg_1>; |
| 205 | id = <257>; |
| 206 | region = <0>; |
| 207 | }; |
| 208 | |
| 209 | firewall-257-1 { |
| 210 | /* cpu_0_cpu_0_msmc Foreground Firewall */ |
| 211 | insert-template = <&firewall_armv8_atf_fg>; |
| 212 | id = <257>; |
| 213 | region = <1>; |
| 214 | }; |
| 215 | |
| 216 | /* firewall-4760-0 { |
| 217 | * nb_slv0__mem0 Background Firewall |
| 218 | * Already configured by the secure entity |
| 219 | * }; |
| 220 | */ |
| 221 | |
| 222 | firewall-4760-1 { |
| 223 | /* nb_slv0__mem0 Foreground Firewall */ |
| 224 | insert-template = <&firewall_armv8_atf_fg>; |
| 225 | id = <4760>; |
| 226 | region = <1>; |
| 227 | }; |
| 228 | |
| 229 | /* firewall-4761-0 { |
| 230 | * nb_slv1__mem0 Background Firewall |
| 231 | * Already configured by the secure entity |
| 232 | * }; |
| 233 | */ |
| 234 | |
| 235 | firewall-4761-1 { |
| 236 | /* nb_slv1__mem0 Foreground Firewall */ |
| 237 | insert-template = <&firewall_armv8_atf_fg>; |
| 238 | id = <4761>; |
| 239 | region = <1>; |
| 240 | }; |
| 241 | }; |
| 242 | }; |
| 243 | |
| 244 | tee { |
| 245 | ti-secure { |
| 246 | auth-in-place = <0xa02>; |
| 247 | |
| 248 | /* cpu_0_cpu_0_msmc region 0 and 1 configured |
| 249 | * during ATF Firewalling |
| 250 | */ |
| 251 | |
| 252 | firewall-257-2 { |
| 253 | /* cpu_0_cpu_0_msmc Foreground Firewall */ |
| 254 | insert-template = <&firewall_armv8_optee_fg>; |
| 255 | id = <257>; |
| 256 | region = <2>; |
| 257 | }; |
| 258 | |
| 259 | firewall-4762-0 { |
| 260 | /* nb_slv2__mem0 Background Firewall - 0 */ |
| 261 | insert-template = <&firewall_bg_3>; |
| 262 | id = <4762>; |
| 263 | region = <0>; |
| 264 | }; |
| 265 | |
| 266 | firewall-4762-1 { |
| 267 | /* nb_slv2__mem0 Foreground Firewall */ |
| 268 | insert-template = <&firewall_armv8_optee_fg>; |
| 269 | id = <4762>; |
| 270 | region = <1>; |
| 271 | }; |
| 272 | |
| 273 | firewall-4763-0 { |
| 274 | /* nb_slv3__mem0 Background Firewall - 0 */ |
| 275 | insert-template = <&firewall_bg_3>; |
| 276 | id = <4763>; |
| 277 | region = <0>; |
| 278 | }; |
| 279 | |
| 280 | firewall-4763-1 { |
| 281 | /* nb_slv3__mem0 Foreground Firewall */ |
| 282 | insert-template = <&firewall_armv8_optee_fg>; |
| 283 | id = <4763>; |
| 284 | region = <1>; |
| 285 | }; |
| 286 | }; |
| 287 | }; |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 288 | dm { |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 289 | ti-secure { |
| 290 | content = <&dm>; |
| 291 | keyfile = "custMpk.pem"; |
| 292 | }; |
Neha Malcom Francis | 8237821 | 2023-12-05 15:12:19 +0530 | [diff] [blame] | 293 | dm: ti-dm { |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 294 | filename = "ti-dm.bin"; |
| 295 | }; |
| 296 | }; |
| 297 | |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 298 | fdt-0 { |
| 299 | description = "k3-j7200-common-proc-board"; |
| 300 | type = "flat_dt"; |
| 301 | arch = "arm"; |
| 302 | compression = "none"; |
| 303 | ti-secure { |
| 304 | content = <&spl_j7200_evm_dtb>; |
| 305 | keyfile = "custMpk.pem"; |
| 306 | }; |
| 307 | spl_j7200_evm_dtb: blob-ext { |
| 308 | filename = SPL_J7200_EVM_DTB; |
| 309 | }; |
| 310 | }; |
| 311 | |
| 312 | }; |
| 313 | |
| 314 | configurations { |
| 315 | default = "conf-0"; |
| 316 | |
| 317 | conf-0 { |
| 318 | description = "k3-j7200-common-proc-board"; |
| 319 | firmware = "atf"; |
| 320 | loadables = "tee", "dm", "spl"; |
| 321 | fdt = "fdt-0"; |
| 322 | }; |
| 323 | }; |
| 324 | }; |
| 325 | }; |
| 326 | }; |
| 327 | |
| 328 | &binman { |
| 329 | u-boot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 330 | insert-template = <&u_boot_template>; |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 331 | |
| 332 | fit { |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 333 | images { |
| 334 | uboot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 335 | description = "U-Boot for J7200 Board"; |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 336 | }; |
| 337 | |
| 338 | fdt-0 { |
| 339 | description = "k3-j7200-common-proc-board"; |
| 340 | type = "flat_dt"; |
| 341 | arch = "arm"; |
| 342 | compression = "none"; |
| 343 | ti-secure { |
| 344 | content = <&j7200_evm_dtb>; |
| 345 | keyfile = "custMpk.pem"; |
| 346 | }; |
| 347 | j7200_evm_dtb: blob-ext { |
| 348 | filename = J7200_EVM_DTB; |
| 349 | }; |
| 350 | hash { |
| 351 | algo = "crc32"; |
| 352 | }; |
| 353 | }; |
| 354 | }; |
| 355 | |
| 356 | configurations { |
| 357 | default = "conf-0"; |
| 358 | |
| 359 | conf-0 { |
| 360 | description = "k3-j7200-common-proc-board"; |
| 361 | firmware = "uboot"; |
| 362 | loadables = "uboot"; |
| 363 | fdt = "fdt-0"; |
| 364 | }; |
| 365 | |
| 366 | }; |
| 367 | }; |
| 368 | }; |
| 369 | }; |
| 370 | |
| 371 | &binman { |
| 372 | ti-spl_unsigned { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 373 | insert-template = <&ti_spl_unsigned_template>; |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 374 | |
| 375 | fit { |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 376 | images { |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 377 | dm { |
Neha Malcom Francis | 8237821 | 2023-12-05 15:12:19 +0530 | [diff] [blame] | 378 | ti-dm { |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 379 | filename = "ti-dm.bin"; |
| 380 | }; |
| 381 | }; |
| 382 | |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 383 | fdt-1 { |
| 384 | description = "k3-j7200-common-proc-board"; |
| 385 | type = "flat_dt"; |
| 386 | arch = "arm"; |
| 387 | compression = "none"; |
| 388 | blob { |
| 389 | filename = SPL_J7200_EVM_DTB; |
| 390 | }; |
| 391 | }; |
| 392 | }; |
| 393 | |
| 394 | configurations { |
| 395 | default = "conf-1"; |
| 396 | |
| 397 | conf-1 { |
| 398 | description = "k3-j7200-common-proc-board"; |
| 399 | firmware = "atf"; |
| 400 | loadables = "tee", "dm", "spl"; |
| 401 | fdt = "fdt-1"; |
| 402 | }; |
| 403 | }; |
| 404 | }; |
| 405 | }; |
| 406 | }; |
| 407 | |
| 408 | &binman { |
| 409 | u-boot_unsigned { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 410 | insert-template = <&u_boot_unsigned_template>; |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 411 | |
| 412 | fit { |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 413 | images { |
| 414 | uboot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 415 | description = "U-Boot for J7200 Board"; |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 416 | }; |
| 417 | |
| 418 | fdt-1 { |
| 419 | description = "k3-j7200-common-proc-board"; |
| 420 | type = "flat_dt"; |
| 421 | arch = "arm"; |
| 422 | compression = "none"; |
| 423 | blob { |
| 424 | filename = J7200_EVM_DTB; |
| 425 | }; |
| 426 | hash { |
| 427 | algo = "crc32"; |
| 428 | }; |
| 429 | }; |
| 430 | }; |
| 431 | |
| 432 | configurations { |
| 433 | default = "conf-1"; |
| 434 | |
| 435 | conf-1 { |
| 436 | description = "k3-j7200-common-proc-board"; |
| 437 | firmware = "uboot"; |
| 438 | loadables = "uboot"; |
| 439 | fdt = "fdt-1"; |
| 440 | }; |
| 441 | }; |
| 442 | }; |
| 443 | }; |
| 444 | }; |
| 445 | #endif |