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 { |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 198 | dm { |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 199 | ti-secure { |
| 200 | content = <&dm>; |
| 201 | keyfile = "custMpk.pem"; |
| 202 | }; |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 203 | dm: blob-ext { |
| 204 | filename = "ti-dm.bin"; |
| 205 | }; |
| 206 | }; |
| 207 | |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 208 | fdt-0 { |
| 209 | description = "k3-j7200-common-proc-board"; |
| 210 | type = "flat_dt"; |
| 211 | arch = "arm"; |
| 212 | compression = "none"; |
| 213 | ti-secure { |
| 214 | content = <&spl_j7200_evm_dtb>; |
| 215 | keyfile = "custMpk.pem"; |
| 216 | }; |
| 217 | spl_j7200_evm_dtb: blob-ext { |
| 218 | filename = SPL_J7200_EVM_DTB; |
| 219 | }; |
| 220 | }; |
| 221 | |
| 222 | }; |
| 223 | |
| 224 | configurations { |
| 225 | default = "conf-0"; |
| 226 | |
| 227 | conf-0 { |
| 228 | description = "k3-j7200-common-proc-board"; |
| 229 | firmware = "atf"; |
| 230 | loadables = "tee", "dm", "spl"; |
| 231 | fdt = "fdt-0"; |
| 232 | }; |
| 233 | }; |
| 234 | }; |
| 235 | }; |
| 236 | }; |
| 237 | |
| 238 | &binman { |
| 239 | u-boot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame^] | 240 | insert-template = <&u_boot_template>; |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 241 | |
| 242 | fit { |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 243 | images { |
| 244 | uboot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame^] | 245 | description = "U-Boot for J7200 Board"; |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 246 | }; |
| 247 | |
| 248 | fdt-0 { |
| 249 | description = "k3-j7200-common-proc-board"; |
| 250 | type = "flat_dt"; |
| 251 | arch = "arm"; |
| 252 | compression = "none"; |
| 253 | ti-secure { |
| 254 | content = <&j7200_evm_dtb>; |
| 255 | keyfile = "custMpk.pem"; |
| 256 | }; |
| 257 | j7200_evm_dtb: blob-ext { |
| 258 | filename = J7200_EVM_DTB; |
| 259 | }; |
| 260 | hash { |
| 261 | algo = "crc32"; |
| 262 | }; |
| 263 | }; |
| 264 | }; |
| 265 | |
| 266 | configurations { |
| 267 | default = "conf-0"; |
| 268 | |
| 269 | conf-0 { |
| 270 | description = "k3-j7200-common-proc-board"; |
| 271 | firmware = "uboot"; |
| 272 | loadables = "uboot"; |
| 273 | fdt = "fdt-0"; |
| 274 | }; |
| 275 | |
| 276 | }; |
| 277 | }; |
| 278 | }; |
| 279 | }; |
| 280 | |
| 281 | &binman { |
| 282 | ti-spl_unsigned { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame^] | 283 | insert-template = <&ti_spl_unsigned_template>; |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 284 | |
| 285 | fit { |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 286 | images { |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 287 | dm { |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 288 | blob-ext { |
| 289 | filename = "ti-dm.bin"; |
| 290 | }; |
| 291 | }; |
| 292 | |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 293 | fdt-1 { |
| 294 | description = "k3-j7200-common-proc-board"; |
| 295 | type = "flat_dt"; |
| 296 | arch = "arm"; |
| 297 | compression = "none"; |
| 298 | blob { |
| 299 | filename = SPL_J7200_EVM_DTB; |
| 300 | }; |
| 301 | }; |
| 302 | }; |
| 303 | |
| 304 | configurations { |
| 305 | default = "conf-1"; |
| 306 | |
| 307 | conf-1 { |
| 308 | description = "k3-j7200-common-proc-board"; |
| 309 | firmware = "atf"; |
| 310 | loadables = "tee", "dm", "spl"; |
| 311 | fdt = "fdt-1"; |
| 312 | }; |
| 313 | }; |
| 314 | }; |
| 315 | }; |
| 316 | }; |
| 317 | |
| 318 | &binman { |
| 319 | u-boot_unsigned { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame^] | 320 | insert-template = <&u_boot_unsigned_template>; |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 321 | |
| 322 | fit { |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 323 | images { |
| 324 | uboot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame^] | 325 | description = "U-Boot for J7200 Board"; |
Neha Malcom Francis | 30dcda2 | 2023-07-22 00:14:30 +0530 | [diff] [blame] | 326 | }; |
| 327 | |
| 328 | fdt-1 { |
| 329 | description = "k3-j7200-common-proc-board"; |
| 330 | type = "flat_dt"; |
| 331 | arch = "arm"; |
| 332 | compression = "none"; |
| 333 | blob { |
| 334 | filename = J7200_EVM_DTB; |
| 335 | }; |
| 336 | hash { |
| 337 | algo = "crc32"; |
| 338 | }; |
| 339 | }; |
| 340 | }; |
| 341 | |
| 342 | configurations { |
| 343 | default = "conf-1"; |
| 344 | |
| 345 | conf-1 { |
| 346 | description = "k3-j7200-common-proc-board"; |
| 347 | firmware = "uboot"; |
| 348 | loadables = "uboot"; |
| 349 | fdt = "fdt-1"; |
| 350 | }; |
| 351 | }; |
| 352 | }; |
| 353 | }; |
| 354 | }; |
| 355 | #endif |