Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +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_AM625_R5_EVM |
| 9 | |
| 10 | &binman { |
| 11 | tiboot3-am62x-hs-evm.bin { |
| 12 | filename = "tiboot3-am62x-hs-evm.bin"; |
| 13 | ti-secure-rom { |
| 14 | content = <&u_boot_spl>, <&ti_fs_enc>, <&combined_tifs_cfg>, |
| 15 | <&combined_dm_cfg>, <&sysfw_inner_cert>; |
| 16 | combined; |
| 17 | dm-data; |
| 18 | sysfw-inner-cert; |
| 19 | keyfile = "custMpk.pem"; |
| 20 | sw-rev = <1>; |
| 21 | content-sbl = <&u_boot_spl>; |
| 22 | content-sysfw = <&ti_fs_enc>; |
| 23 | content-sysfw-data = <&combined_tifs_cfg>; |
| 24 | content-sysfw-inner-cert = <&sysfw_inner_cert>; |
| 25 | content-dm-data = <&combined_dm_cfg>; |
| 26 | load = <0x43c00000>; |
| 27 | load-sysfw = <0x40000>; |
| 28 | load-sysfw-data = <0x67000>; |
| 29 | load-dm-data = <0x43c3a800>; |
| 30 | }; |
| 31 | u_boot_spl: u-boot-spl { |
| 32 | no-expanded; |
| 33 | }; |
| 34 | ti_fs_enc: ti-fs-enc.bin { |
| 35 | filename = "ti-sysfw/ti-fs-firmware-am62x-hs-enc.bin"; |
| 36 | type = "blob-ext"; |
| 37 | optional; |
| 38 | }; |
| 39 | combined_tifs_cfg: combined-tifs-cfg.bin { |
| 40 | filename = "combined-tifs-cfg.bin"; |
| 41 | type = "blob-ext"; |
| 42 | }; |
| 43 | sysfw_inner_cert: sysfw-inner-cert { |
| 44 | filename = "ti-sysfw/ti-fs-firmware-am62x-hs-cert.bin"; |
| 45 | type = "blob-ext"; |
| 46 | optional; |
| 47 | }; |
| 48 | combined_dm_cfg: combined-dm-cfg.bin { |
| 49 | filename = "combined-dm-cfg.bin"; |
| 50 | type = "blob-ext"; |
| 51 | }; |
| 52 | }; |
| 53 | }; |
| 54 | |
| 55 | &binman { |
| 56 | tiboot3-am62x-hs-fs-evm.bin { |
| 57 | filename = "tiboot3-am62x-hs-fs-evm.bin"; |
| 58 | symlink = "tiboot3.bin"; |
| 59 | ti-secure-rom { |
| 60 | content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>, |
| 61 | <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>; |
| 62 | combined; |
| 63 | dm-data; |
| 64 | sysfw-inner-cert; |
| 65 | keyfile = "custMpk.pem"; |
| 66 | sw-rev = <1>; |
| 67 | content-sbl = <&u_boot_spl_fs>; |
| 68 | content-sysfw = <&ti_fs_enc_fs>; |
| 69 | content-sysfw-data = <&combined_tifs_cfg_fs>; |
| 70 | content-sysfw-inner-cert = <&sysfw_inner_cert_fs>; |
| 71 | content-dm-data = <&combined_dm_cfg_fs>; |
| 72 | load = <0x43c00000>; |
| 73 | load-sysfw = <0x40000>; |
| 74 | load-sysfw-data = <0x67000>; |
| 75 | load-dm-data = <0x43c3a800>; |
| 76 | }; |
| 77 | u_boot_spl_fs: u-boot-spl { |
| 78 | no-expanded; |
| 79 | }; |
| 80 | ti_fs_enc_fs: ti-fs-enc.bin { |
| 81 | filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-enc.bin"; |
| 82 | type = "blob-ext"; |
| 83 | optional; |
| 84 | }; |
| 85 | combined_tifs_cfg_fs: combined-tifs-cfg.bin { |
| 86 | filename = "combined-tifs-cfg.bin"; |
| 87 | type = "blob-ext"; |
| 88 | }; |
| 89 | sysfw_inner_cert_fs: sysfw-inner-cert { |
| 90 | filename = "ti-sysfw/ti-fs-firmware-am62x-hs-fs-cert.bin"; |
| 91 | type = "blob-ext"; |
| 92 | optional; |
| 93 | }; |
| 94 | combined_dm_cfg_fs: combined-dm-cfg.bin { |
| 95 | filename = "combined-dm-cfg.bin"; |
| 96 | type = "blob-ext"; |
| 97 | }; |
| 98 | }; |
| 99 | }; |
| 100 | |
| 101 | &binman { |
| 102 | tiboot3-am62x-gp-evm.bin { |
| 103 | filename = "tiboot3-am62x-gp-evm.bin"; |
| 104 | ti-secure-rom { |
| 105 | content = <&u_boot_spl_unsigned>, <&ti_fs_gp>, |
| 106 | <&combined_tifs_cfg_gp>, <&combined_dm_cfg_gp>; |
| 107 | combined; |
| 108 | dm-data; |
| 109 | content-sbl = <&u_boot_spl_unsigned>; |
| 110 | load = <0x43c00000>; |
| 111 | content-sysfw = <&ti_fs_gp>; |
| 112 | load-sysfw = <0x40000>; |
| 113 | content-sysfw-data = <&combined_tifs_cfg_gp>; |
| 114 | load-sysfw-data = <0x67000>; |
| 115 | content-dm-data = <&combined_dm_cfg_gp>; |
| 116 | load-dm-data = <0x43c3a800>; |
| 117 | sw-rev = <1>; |
| 118 | keyfile = "ti-degenerate-key.pem"; |
| 119 | }; |
| 120 | u_boot_spl_unsigned: u-boot-spl { |
| 121 | no-expanded; |
| 122 | }; |
| 123 | ti_fs_gp: ti-fs-gp.bin { |
| 124 | filename = "ti-sysfw/ti-fs-firmware-am62x-gp.bin"; |
| 125 | type = "blob-ext"; |
| 126 | optional; |
| 127 | }; |
| 128 | combined_tifs_cfg_gp: combined-tifs-cfg-gp.bin { |
| 129 | filename = "combined-tifs-cfg.bin"; |
| 130 | type = "blob-ext"; |
| 131 | }; |
| 132 | combined_dm_cfg_gp: combined-dm-cfg-gp.bin { |
| 133 | filename = "combined-dm-cfg.bin"; |
| 134 | type = "blob-ext"; |
| 135 | }; |
| 136 | |
| 137 | }; |
| 138 | }; |
| 139 | |
| 140 | #endif |
| 141 | |
| 142 | #ifdef CONFIG_TARGET_AM625_A53_EVM |
| 143 | |
Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +0530 | [diff] [blame] | 144 | #define SPL_AM625_SK_DTB "spl/dts/k3-am625-sk.dtb" |
Manorit Chawdhry | 64ebddb | 2023-07-14 11:22:38 +0530 | [diff] [blame] | 145 | #define AM625_SK_DTB "u-boot.dtb" |
Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +0530 | [diff] [blame] | 146 | |
| 147 | &binman { |
| 148 | ti-dm { |
| 149 | filename = "ti-dm.bin"; |
| 150 | blob-ext { |
| 151 | filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; |
| 152 | }; |
| 153 | }; |
| 154 | ti-spl { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 155 | insert-template = <&ti_spl_template>; |
Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +0530 | [diff] [blame] | 156 | |
| 157 | fit { |
Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +0530 | [diff] [blame] | 158 | images { |
Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +0530 | [diff] [blame] | 159 | dm { |
Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +0530 | [diff] [blame] | 160 | ti-secure { |
| 161 | content = <&dm>; |
| 162 | keyfile = "custMpk.pem"; |
| 163 | }; |
| 164 | dm: blob-ext { |
| 165 | filename = "ti-dm.bin"; |
| 166 | }; |
| 167 | }; |
| 168 | |
Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +0530 | [diff] [blame] | 169 | fdt-0 { |
| 170 | description = "k3-am625-sk"; |
| 171 | type = "flat_dt"; |
| 172 | arch = "arm"; |
| 173 | compression = "none"; |
| 174 | ti-secure { |
| 175 | content = <&spl_am625_sk_dtb>; |
| 176 | keyfile = "custMpk.pem"; |
| 177 | }; |
| 178 | spl_am625_sk_dtb: blob-ext { |
| 179 | filename = SPL_AM625_SK_DTB; |
| 180 | }; |
| 181 | |
| 182 | }; |
| 183 | |
| 184 | }; |
| 185 | |
| 186 | configurations { |
| 187 | default = "conf-0"; |
| 188 | |
| 189 | conf-0 { |
| 190 | description = "k3-am625-sk"; |
| 191 | firmware = "atf"; |
| 192 | loadables = "tee", "dm", "spl"; |
| 193 | fdt = "fdt-0"; |
| 194 | }; |
| 195 | }; |
| 196 | }; |
| 197 | }; |
| 198 | }; |
| 199 | |
| 200 | &binman { |
| 201 | u-boot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 202 | insert-template = <&u_boot_template>; |
Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +0530 | [diff] [blame] | 203 | |
| 204 | fit { |
Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +0530 | [diff] [blame] | 205 | images { |
| 206 | uboot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 207 | description = "U-Boot for AM625 Board"; |
Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +0530 | [diff] [blame] | 208 | }; |
| 209 | |
| 210 | fdt-0 { |
| 211 | description = "k3-am625-sk"; |
| 212 | type = "flat_dt"; |
| 213 | arch = "arm"; |
| 214 | compression = "none"; |
| 215 | ti-secure { |
| 216 | content = <&am625_sk_dtb>; |
| 217 | keyfile = "custMpk.pem"; |
| 218 | }; |
| 219 | am625_sk_dtb: blob-ext { |
| 220 | filename = AM625_SK_DTB; |
| 221 | }; |
| 222 | hash { |
| 223 | algo = "crc32"; |
| 224 | }; |
| 225 | }; |
| 226 | }; |
| 227 | |
| 228 | configurations { |
| 229 | default = "conf-0"; |
| 230 | |
| 231 | conf-0 { |
| 232 | description = "k3-am625-sk"; |
| 233 | firmware = "uboot"; |
| 234 | loadables = "uboot"; |
| 235 | fdt = "fdt-0"; |
| 236 | }; |
| 237 | |
| 238 | }; |
| 239 | }; |
| 240 | }; |
| 241 | }; |
| 242 | |
| 243 | &binman { |
| 244 | ti-spl_unsigned { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 245 | insert-template = <&ti_spl_unsigned_template>; |
Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +0530 | [diff] [blame] | 246 | |
| 247 | fit { |
Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +0530 | [diff] [blame] | 248 | images { |
| 249 | |
Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +0530 | [diff] [blame] | 250 | dm { |
Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +0530 | [diff] [blame] | 251 | blob-ext { |
| 252 | filename = "ti-dm.bin"; |
| 253 | }; |
| 254 | }; |
| 255 | |
Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +0530 | [diff] [blame] | 256 | fdt-0 { |
| 257 | description = "k3-am625-sk"; |
| 258 | type = "flat_dt"; |
| 259 | arch = "arm"; |
| 260 | compression = "none"; |
Nishanth Menon | c3083d6 | 2023-08-25 13:03:02 -0500 | [diff] [blame] | 261 | spl_am625_sk_dtb_unsigned: blob { |
Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +0530 | [diff] [blame] | 262 | filename = SPL_AM625_SK_DTB; |
| 263 | }; |
| 264 | }; |
| 265 | }; |
| 266 | |
| 267 | configurations { |
| 268 | default = "conf-0"; |
| 269 | |
| 270 | conf-0 { |
| 271 | description = "k3-am625-sk"; |
| 272 | firmware = "atf"; |
| 273 | loadables = "tee", "dm", "spl"; |
| 274 | fdt = "fdt-0"; |
| 275 | }; |
| 276 | }; |
| 277 | }; |
| 278 | }; |
| 279 | }; |
| 280 | |
| 281 | &binman { |
| 282 | u-boot_unsigned { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 283 | insert-template = <&u_boot_unsigned_template>; |
Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +0530 | [diff] [blame] | 284 | |
| 285 | fit { |
Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +0530 | [diff] [blame] | 286 | images { |
| 287 | uboot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 288 | description = "U-Boot for AM625 Board"; |
Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +0530 | [diff] [blame] | 289 | }; |
| 290 | |
| 291 | fdt-0 { |
| 292 | description = "k3-am625-sk"; |
| 293 | type = "flat_dt"; |
| 294 | arch = "arm"; |
| 295 | compression = "none"; |
Nishanth Menon | c3083d6 | 2023-08-25 13:03:02 -0500 | [diff] [blame] | 296 | am625_sk_dtb_unsigned: blob { |
Neha Malcom Francis | 8f8f4fc | 2023-07-22 00:14:38 +0530 | [diff] [blame] | 297 | filename = AM625_SK_DTB; |
| 298 | }; |
| 299 | hash { |
| 300 | algo = "crc32"; |
| 301 | }; |
| 302 | }; |
| 303 | }; |
| 304 | |
| 305 | configurations { |
| 306 | default = "conf-0"; |
| 307 | |
| 308 | conf-0 { |
| 309 | description = "k3-am625-sk"; |
| 310 | firmware = "uboot"; |
| 311 | loadables = "uboot"; |
| 312 | fdt = "fdt-0"; |
| 313 | }; |
| 314 | }; |
| 315 | }; |
| 316 | }; |
| 317 | }; |
| 318 | #endif |