Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
| 2 | /* |
| 3 | * Copyright 2023 Toradex |
| 4 | */ |
| 5 | |
| 6 | #include "k3-binman.dtsi" |
| 7 | |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 8 | #ifndef CONFIG_ARM64 |
| 9 | |
| 10 | &bcfg_yaml { |
| 11 | schema = "../../ti/common/schema.yaml"; |
| 12 | }; |
| 13 | |
| 14 | &pcfg_yaml { |
| 15 | schema = "../../ti/common/schema.yaml"; |
| 16 | }; |
| 17 | |
| 18 | &rcfg_yaml { |
| 19 | schema = "../../ti/common/schema.yaml"; |
| 20 | }; |
| 21 | |
| 22 | &scfg_yaml { |
| 23 | schema = "../../ti/common/schema.yaml"; |
| 24 | }; |
| 25 | |
| 26 | /* combined-tifs-cfg */ |
| 27 | |
| 28 | &bcfg_yaml_tifs { |
| 29 | schema = "../../ti/common/schema.yaml"; |
| 30 | }; |
| 31 | |
| 32 | &pcfg_yaml_tifs { |
| 33 | schema = "../../ti/common/schema.yaml"; |
| 34 | }; |
| 35 | |
| 36 | &rcfg_yaml_tifs { |
| 37 | schema = "../../ti/common/schema.yaml"; |
| 38 | }; |
| 39 | |
| 40 | &scfg_yaml_tifs { |
| 41 | schema = "../../ti/common/schema.yaml"; |
| 42 | }; |
| 43 | |
| 44 | /* combined-dm-cfg */ |
| 45 | |
| 46 | &pcfg_yaml_dm { |
| 47 | schema = "../../ti/common/schema.yaml"; |
| 48 | }; |
| 49 | |
| 50 | &rcfg_yaml_dm { |
| 51 | schema = "../../ti/common/schema.yaml"; |
| 52 | }; |
| 53 | |
| 54 | /* combined-sysfw-cfg */ |
| 55 | |
| 56 | &bcfg_yaml_sysfw { |
| 57 | schema = "../../ti/common/schema.yaml"; |
| 58 | }; |
| 59 | |
| 60 | &pcfg_yaml_sysfw { |
| 61 | schema = "../../ti/common/schema.yaml"; |
| 62 | }; |
| 63 | |
| 64 | &rcfg_yaml_sysfw { |
| 65 | schema = "../../ti/common/schema.yaml"; |
| 66 | }; |
| 67 | |
| 68 | &scfg_yaml_sysfw { |
| 69 | schema = "../../ti/common/schema.yaml"; |
| 70 | }; |
| 71 | |
| 72 | #endif /* CONFIG_ARM64 */ |
| 73 | |
| 74 | #ifdef CONFIG_TARGET_VERDIN_AM62_R5 |
| 75 | |
| 76 | &binman { |
| 77 | tiboot3-am62x-hs-verdin.bin { |
| 78 | filename = "tiboot3-am62x-hs-verdin.bin"; |
| 79 | ti-secure-rom { |
| 80 | content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>, |
| 81 | <&combined_dm_cfg>, <&sysfw_inner_cert>; |
| 82 | combined; |
| 83 | dm-data; |
| 84 | sysfw-inner-cert; |
| 85 | keyfile = "custMpk.pem"; |
| 86 | sw-rev = <1>; |
| 87 | content-sbl = <&u_boot_spl>; |
| 88 | content-sysfw = <&ti_fs_enc>; |
| 89 | content-sysfw-data = <&combined_tifs_cfg>; |
| 90 | content-sysfw-inner-cert = <&sysfw_inner_cert>; |
| 91 | content-dm-data = <&combined_dm_cfg>; |
| 92 | load = <0x43c00000>; |
| 93 | load-sysfw = <0x40000>; |
| 94 | load-sysfw-data = <0x67000>; |
| 95 | load-dm-data = <0x43c3a800>; |
| 96 | }; |
| 97 | u_boot_spl: u-boot-spl { |
| 98 | no-expanded; |
| 99 | }; |
| 100 | ti_fs_enc: ti-fs-enc.bin { |
| 101 | filename = "ti-sysfw/ti-fs-firmware-am62x-hs-enc.bin"; |
| 102 | type = "blob-ext"; |
| 103 | optional; |
| 104 | }; |
| 105 | combined_tifs_cfg: combined-tifs-cfg.bin { |
| 106 | filename = "combined-tifs-cfg.bin"; |
| 107 | type = "blob-ext"; |
| 108 | }; |
| 109 | sysfw_inner_cert: sysfw-inner-cert { |
| 110 | filename = "ti-sysfw/ti-fs-firmware-am62x-hs-cert.bin"; |
| 111 | type = "blob-ext"; |
| 112 | optional; |
| 113 | }; |
| 114 | combined_dm_cfg: combined-dm-cfg.bin { |
| 115 | filename = "combined-dm-cfg.bin"; |
| 116 | type = "blob-ext"; |
| 117 | }; |
| 118 | }; |
| 119 | }; |
| 120 | |
| 121 | &binman { |
| 122 | tiboot3-am62x-hs-fs-verdin.bin { |
| 123 | filename = "tiboot3-am62x-hs-fs-verdin.bin"; |
| 124 | symlink = "tiboot3.bin"; |
| 125 | ti-secure-rom { |
| 126 | content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>, |
| 127 | <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>; |
| 128 | combined; |
| 129 | dm-data; |
| 130 | sysfw-inner-cert; |
| 131 | keyfile = "custMpk.pem"; |
| 132 | sw-rev = <1>; |
| 133 | content-sbl = <&u_boot_spl_fs>; |
| 134 | content-sysfw = <&ti_fs_enc_fs>; |
| 135 | content-sysfw-data = <&combined_tifs_cfg_fs>; |
| 136 | content-sysfw-inner-cert = <&sysfw_inner_cert_fs>; |
| 137 | content-dm-data = <&combined_dm_cfg_fs>; |
| 138 | load = <0x43c00000>; |
| 139 | load-sysfw = <0x40000>; |
| 140 | load-sysfw-data = <0x67000>; |
| 141 | load-dm-data = <0x43c3a800>; |
| 142 | }; |
| 143 | u_boot_spl_fs: u-boot-spl { |
| 144 | no-expanded; |
| 145 | }; |
| 146 | ti_fs_enc_fs: ti-fs-enc.bin { |
| 147 | filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-enc.bin"; |
| 148 | type = "blob-ext"; |
| 149 | optional; |
| 150 | }; |
| 151 | combined_tifs_cfg_fs: combined-tifs-cfg.bin { |
| 152 | filename = "combined-tifs-cfg.bin"; |
| 153 | type = "blob-ext"; |
| 154 | }; |
| 155 | sysfw_inner_cert_fs: sysfw-inner-cert { |
| 156 | filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-cert.bin"; |
| 157 | type = "blob-ext"; |
| 158 | optional; |
| 159 | }; |
| 160 | combined_dm_cfg_fs: combined-dm-cfg.bin { |
| 161 | filename = "combined-dm-cfg.bin"; |
| 162 | type = "blob-ext"; |
| 163 | }; |
| 164 | }; |
| 165 | }; |
| 166 | |
| 167 | &binman { |
| 168 | tiboot3-am62x-gp-verdin.bin { |
| 169 | filename = "tiboot3-am62x-gp-verdin.bin"; |
| 170 | ti-secure-rom { |
| 171 | content = <&u_boot_spl_unsigned>, <&ti_fs_gp>, |
| 172 | <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>; |
| 173 | combined; |
| 174 | dm-data; |
| 175 | content-sbl = <&u_boot_spl_unsigned>; |
| 176 | load = <0x43c00000>; |
| 177 | content-sysfw = <&ti_fs_gp>; |
| 178 | load-sysfw = <0x40000>; |
| 179 | content-sysfw-data = <&combined_tifs_cfg_gp>; |
| 180 | load-sysfw-data = <0x67000>; |
| 181 | content-dm-data = <&combined_dm_cfg_gp>; |
| 182 | load-dm-data = <0x43c3a800>; |
| 183 | sw-rev = <1>; |
| 184 | keyfile = "ti-degenerate-key.pem"; |
| 185 | }; |
| 186 | u_boot_spl_unsigned: u-boot-spl { |
| 187 | no-expanded; |
| 188 | }; |
| 189 | ti_fs_gp: ti-fs-gp.bin { |
| 190 | filename = "ti-sysfw/ti-fs-firmware-am62x-gp.bin"; |
| 191 | type = "blob-ext"; |
| 192 | optional; |
| 193 | }; |
| 194 | combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin { |
| 195 | filename = "combined-tifs-cfg.bin"; |
| 196 | type = "blob-ext"; |
| 197 | }; |
| 198 | combined_dm_cfg_gp: combined-dm-cfg-gp.bin { |
| 199 | filename = "combined-dm-cfg.bin"; |
| 200 | type = "blob-ext"; |
| 201 | }; |
| 202 | }; |
| 203 | }; |
| 204 | |
| 205 | #endif /* CONFIG_TARGET_VERDIN_AM62_R5 */ |
| 206 | |
| 207 | #ifdef CONFIG_TARGET_VERDIN_AM62_A53 |
| 208 | |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 209 | #define SPL_VERDIN_AM62_DTB "spl/dts/k3-am625-verdin-wifi-dev.dtb" |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 210 | #define VERDIN_AM62_DTB "u-boot.dtb" |
| 211 | |
| 212 | &binman { |
| 213 | ti-dm { |
| 214 | filename = "ti-dm.bin"; |
| 215 | blob-ext { |
| 216 | filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; |
| 217 | }; |
| 218 | }; |
| 219 | ti-spl { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 220 | insert-template = <&ti_spl_template>; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 221 | |
| 222 | fit { |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 223 | |
| 224 | images { |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 225 | dm { |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 226 | ti-secure { |
| 227 | content = <&dm>; |
| 228 | keyfile = "custMpk.pem"; |
| 229 | }; |
| 230 | dm: blob-ext { |
| 231 | filename = "ti-dm.bin"; |
| 232 | }; |
| 233 | }; |
| 234 | |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 235 | fdt-0 { |
| 236 | description = "k3-am625-verdin-wifi-dev"; |
| 237 | type = "flat_dt"; |
| 238 | arch = "arm"; |
| 239 | compression = "none"; |
| 240 | ti-secure { |
| 241 | content = <&spl_verdin_am62_dtb>; |
| 242 | keyfile = "custMpk.pem"; |
| 243 | }; |
| 244 | spl_verdin_am62_dtb: blob-ext { |
| 245 | filename = SPL_VERDIN_AM62_DTB; |
| 246 | }; |
| 247 | }; |
| 248 | }; |
| 249 | |
| 250 | configurations { |
| 251 | default = "conf-0"; |
| 252 | |
| 253 | conf-0 { |
| 254 | description = "k3-am625-verdin-wifi-dev"; |
| 255 | firmware = "atf"; |
| 256 | loadables = "tee", "dm", "spl"; |
| 257 | fdt = "fdt-0"; |
| 258 | }; |
| 259 | }; |
| 260 | }; |
| 261 | }; |
| 262 | }; |
| 263 | |
| 264 | &binman { |
| 265 | u-boot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 266 | insert-template = <&u_boot_template>; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 267 | |
| 268 | fit { |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 269 | images { |
| 270 | uboot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 271 | description = "U-Boot fot AM625 Verdin Board"; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 272 | }; |
| 273 | |
| 274 | fdt-0 { |
| 275 | description = "k3-am625-verdin-wifi-dev"; |
| 276 | type = "flat_dt"; |
| 277 | arch = "arm"; |
| 278 | compression = "none"; |
| 279 | ti-secure { |
| 280 | content = <&verdin_am62_dtb>; |
| 281 | keyfile = "custMpk.pem"; |
| 282 | }; |
| 283 | verdin_am62_dtb: blob-ext { |
| 284 | filename = VERDIN_AM62_DTB; |
| 285 | }; |
| 286 | hash { |
| 287 | algo = "crc32"; |
| 288 | }; |
| 289 | }; |
| 290 | }; |
| 291 | |
| 292 | configurations { |
| 293 | default = "conf-0"; |
| 294 | |
| 295 | conf-0 { |
| 296 | description = "k3-am625-verdin-wifi-dev"; |
| 297 | firmware = "uboot"; |
| 298 | loadables = "uboot"; |
| 299 | fdt = "fdt-0"; |
| 300 | }; |
| 301 | }; |
| 302 | }; |
| 303 | }; |
| 304 | }; |
| 305 | |
| 306 | &binman { |
| 307 | ti-spl_unsigned { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 308 | insert-template = <&ti_spl_unsigned_template>; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 309 | |
| 310 | fit { |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 311 | images { |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 312 | dm { |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 313 | blob-ext { |
| 314 | filename = "ti-dm.bin"; |
| 315 | }; |
| 316 | }; |
| 317 | |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 318 | fdt-0 { |
| 319 | description = "k3-am625-verdin-wifi-dev"; |
| 320 | type = "flat_dt"; |
| 321 | arch = "arm"; |
| 322 | compression = "none"; |
| 323 | blob { |
| 324 | filename = SPL_VERDIN_AM62_DTB; |
| 325 | }; |
| 326 | }; |
| 327 | }; |
| 328 | |
| 329 | configurations { |
| 330 | default = "conf-0"; |
| 331 | |
| 332 | conf-0 { |
| 333 | description = "k3-am625-verdin-wifi-dev"; |
| 334 | firmware = "atf"; |
| 335 | loadables = "tee", "dm", "spl"; |
| 336 | fdt = "fdt-0"; |
| 337 | }; |
| 338 | }; |
| 339 | }; |
| 340 | }; |
| 341 | }; |
| 342 | |
| 343 | &binman { |
| 344 | u-boot_unsigned { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 345 | insert-template = <&u_boot_unsigned_template>; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 346 | |
| 347 | fit { |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 348 | images { |
| 349 | uboot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 350 | description = "U-Boot for AM625 Verdin Board"; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 351 | }; |
| 352 | |
| 353 | fdt-0 { |
| 354 | description = "k3-am625-verdin-wifi-dev"; |
| 355 | type = "flat_dt"; |
| 356 | arch = "arm"; |
| 357 | compression = "none"; |
| 358 | blob { |
| 359 | filename = VERDIN_AM62_DTB; |
| 360 | }; |
| 361 | hash { |
| 362 | algo = "crc32"; |
| 363 | }; |
| 364 | }; |
| 365 | }; |
| 366 | |
| 367 | configurations { |
| 368 | default = "conf-0"; |
| 369 | |
| 370 | conf-0 { |
| 371 | description = "k3-am625-verdin-wifi-dev"; |
| 372 | firmware = "uboot"; |
| 373 | loadables = "uboot"; |
| 374 | fdt = "fdt-0"; |
| 375 | }; |
| 376 | }; |
| 377 | }; |
| 378 | }; |
| 379 | }; |
| 380 | |
| 381 | #endif /* CONFIG_TARGET_VERDIN_AM62_A53 */ |