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