Bryan Brattlof | 702196b | 2024-03-12 15:20:28 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ |
| 4 | */ |
| 5 | |
| 6 | #include "k3-binman.dtsi" |
| 7 | |
| 8 | #if IS_ENABLED(CONFIG_TARGET_AM62P5_R5_EVM) |
| 9 | |
| 10 | &binman { |
| 11 | tiboot3-am62px-hs-fs-evm.bin { |
| 12 | filename = "tiboot3-am62px-hs-fs-evm.bin"; |
| 13 | symlink = "tiboot3.bin"; |
| 14 | |
| 15 | ti-secure-rom { |
| 16 | content = <&u_boot_spl_fs>, <&ti_fs_enc_fs>, <&combined_tifs_cfg_fs>, |
| 17 | <&combined_dm_cfg_fs>, <&sysfw_inner_cert_fs>; |
| 18 | combined; |
| 19 | dm-data; |
| 20 | sysfw-inner-cert; |
| 21 | keyfile = "custMpk.pem"; |
| 22 | sw-rev = <1>; |
| 23 | content-sbl = <&u_boot_spl_fs>; |
| 24 | content-sysfw = <&ti_fs_enc_fs>; |
| 25 | content-sysfw-data = <&combined_tifs_cfg_fs>; |
| 26 | content-sysfw-inner-cert = <&sysfw_inner_cert_fs>; |
| 27 | content-dm-data = <&combined_dm_cfg_fs>; |
| 28 | load = <0x43c00000>; |
| 29 | load-sysfw = <0x40000>; |
| 30 | load-sysfw-data = <0x67000>; |
| 31 | load-dm-data = <0x43c4a800>; |
| 32 | }; |
| 33 | |
| 34 | u_boot_spl_fs: u-boot-spl { |
| 35 | no-expanded; |
| 36 | }; |
| 37 | |
| 38 | ti_fs_enc_fs: ti-fs-enc.bin { |
| 39 | filename = "ti-sysfw/ti-fs-firmware-am62px-hs-fs-enc.bin"; |
| 40 | type = "blob-ext"; |
| 41 | optional; |
| 42 | }; |
| 43 | |
| 44 | combined_tifs_cfg_fs: combined-tifs-cfg.bin { |
| 45 | filename = "combined-tifs-cfg.bin"; |
| 46 | type = "blob-ext"; |
| 47 | }; |
| 48 | |
| 49 | sysfw_inner_cert_fs: sysfw-inner-cert { |
| 50 | filename = "ti-sysfw/ti-fs-firmware-am62px-hs-fs-cert.bin"; |
| 51 | type = "blob-ext"; |
| 52 | optional; |
| 53 | }; |
| 54 | |
| 55 | combined_dm_cfg_fs: combined-dm-cfg.bin { |
| 56 | filename = "combined-dm-cfg.bin"; |
| 57 | type = "blob-ext"; |
| 58 | }; |
| 59 | }; |
Bryan Brattlof | 5576107 | 2024-12-10 15:43:30 -0600 | [diff] [blame] | 60 | |
| 61 | tiboot3-am62px-hs-evm.bin { |
| 62 | filename = "tiboot3-am62px-hs-evm.bin"; |
| 63 | |
| 64 | ti-secure-rom { |
| 65 | content = <&u_boot_spl_hs>, <&ti_fs_enc_hs>, <&combined_tifs_cfg_hs>, |
| 66 | <&combined_dm_cfg_hs>, <&sysfw_inner_cert_hs>; |
| 67 | combined; |
| 68 | dm-data; |
| 69 | sysfw-inner-cert; |
| 70 | keyfile = "custMpk.pem"; |
| 71 | sw-rev = <1>; |
| 72 | content-sbl = <&u_boot_spl_hs>; |
| 73 | content-sysfw = <&ti_fs_enc_hs>; |
| 74 | content-sysfw-data = <&combined_tifs_cfg_hs>; |
| 75 | content-sysfw-inner-cert = <&sysfw_inner_cert_hs>; |
| 76 | content-dm-data = <&combined_dm_cfg_hs>; |
| 77 | load = <0x43c00000>; |
| 78 | load-sysfw = <0x40000>; |
| 79 | load-sysfw-data = <0x67000>; |
| 80 | load-dm-data = <0x43c4a800>; |
| 81 | }; |
| 82 | |
| 83 | u_boot_spl_hs: u-boot-spl { |
| 84 | no-expanded; |
| 85 | }; |
| 86 | |
| 87 | ti_fs_enc_hs: ti-fs-enc.bin { |
| 88 | filename = "ti-sysfw/ti-fs-firmware-am62px-hs-enc.bin"; |
| 89 | type = "blob-ext"; |
| 90 | optional; |
| 91 | }; |
| 92 | |
| 93 | combined_tifs_cfg_hs: combined-tifs-cfg.bin { |
| 94 | filename = "combined-tifs-cfg.bin"; |
| 95 | type = "blob-ext"; |
| 96 | }; |
| 97 | |
| 98 | sysfw_inner_cert_hs: sysfw-inner-cert { |
| 99 | filename = "ti-sysfw/ti-fs-firmware-am62px-hs-cert.bin"; |
| 100 | type = "blob-ext"; |
| 101 | optional; |
| 102 | }; |
| 103 | |
| 104 | combined_dm_cfg_hs: combined-dm-cfg.bin { |
| 105 | filename = "combined-dm-cfg.bin"; |
| 106 | type = "blob-ext"; |
| 107 | }; |
| 108 | }; |
Bryan Brattlof | 702196b | 2024-03-12 15:20:28 -0500 | [diff] [blame] | 109 | }; |
| 110 | |
Jonathan Humphreys | 99e108f | 2024-05-31 17:51:07 -0500 | [diff] [blame] | 111 | #include "k3-binman-capsule-r5.dtsi" |
| 112 | |
| 113 | // Capsule update GUIDs in string form. See am62px_evm.h |
| 114 | #define AM62PX_SK_TIBOOT3_IMAGE_GUID_STR "b08471b7-be2d-4489-87a1-cab28a0cf743" |
| 115 | |
| 116 | &capsule_tiboot3 { |
| 117 | efi-capsule { |
| 118 | image-guid = AM62PX_SK_TIBOOT3_IMAGE_GUID_STR; |
| 119 | }; |
| 120 | }; |
| 121 | |
Bryan Brattlof | 702196b | 2024-03-12 15:20:28 -0500 | [diff] [blame] | 122 | #endif /* CONFIG_TARGET_AM62P5_R5_EVM */ |
| 123 | |
| 124 | #if IS_ENABLED(CONFIG_TARGET_AM62P5_A53_EVM) |
| 125 | |
| 126 | #define SPL_AM62PX_SK_DTB "spl/dts/ti/k3-am62p5-sk.dtb" |
| 127 | #define AM62PX_SK_DTB "u-boot.dtb" |
| 128 | |
| 129 | &binman { |
Dhruva Gole | 7ba3bf6 | 2024-06-07 14:26:41 +0530 | [diff] [blame] | 130 | tifsstub-hs { |
| 131 | filename = "tifsstub.bin_hs"; |
| 132 | ti-secure-rom { |
| 133 | content = <&tifsstub_hs_cert>; |
| 134 | core = "secure"; |
| 135 | load = <0x60000>; |
| 136 | sw-rev = <CONFIG_K3_X509_SWRV>; |
| 137 | keyfile = "custMpk.pem"; |
| 138 | countersign; |
| 139 | tifsstub; |
| 140 | }; |
| 141 | tifsstub_hs_cert: tifsstub-hs-cert.bin { |
| 142 | filename = "ti-sysfw/ti-fs-stub-firmware-am62px-hs-cert.bin"; |
| 143 | type = "blob-ext"; |
| 144 | optional; |
| 145 | }; |
| 146 | tifsstub_hs_enc: tifsstub-hs-enc.bin { |
| 147 | filename = "ti-sysfw/ti-fs-stub-firmware-am62px-hs-enc.bin"; |
| 148 | type = "blob-ext"; |
| 149 | optional; |
| 150 | }; |
| 151 | }; |
| 152 | |
| 153 | tifsstub-fs { |
| 154 | filename = "tifsstub.bin_fs"; |
| 155 | tifsstub_fs_cert: tifsstub-fs-cert.bin { |
| 156 | filename = "ti-sysfw/ti-fs-stub-firmware-am62px-hs-cert.bin"; |
| 157 | type = "blob-ext"; |
| 158 | optional; |
| 159 | }; |
| 160 | tifsstub_fs_enc: tifsstub-fs-enc.bin { |
| 161 | filename = "ti-sysfw/ti-fs-stub-firmware-am62px-hs-enc.bin"; |
| 162 | type = "blob-ext"; |
| 163 | optional; |
| 164 | }; |
| 165 | |
| 166 | }; |
Bryan Brattlof | 702196b | 2024-03-12 15:20:28 -0500 | [diff] [blame] | 167 | |
| 168 | ti-spl { |
| 169 | insert-template = <&ti_spl_template>; |
| 170 | |
| 171 | fit { |
| 172 | images { |
Dhruva Gole | 7ba3bf6 | 2024-06-07 14:26:41 +0530 | [diff] [blame] | 173 | tifsstub-hs { |
| 174 | description = "TIFSSTUB"; |
| 175 | type = "firmware"; |
| 176 | arch = "arm32"; |
| 177 | compression = "none"; |
| 178 | os = "tifsstub-hs"; |
| 179 | load = <0x9ca00000>; |
| 180 | entry = <0x9ca00000>; |
| 181 | blob-ext { |
| 182 | filename = "tifsstub.bin_hs"; |
| 183 | }; |
| 184 | }; |
| 185 | |
| 186 | tifsstub-fs { |
| 187 | description = "TIFSSTUB"; |
| 188 | type = "firmware"; |
| 189 | arch = "arm32"; |
| 190 | compression = "none"; |
| 191 | os = "tifsstub-fs"; |
| 192 | load = <0x9ca00000>; |
| 193 | entry = <0x9ca00000>; |
| 194 | blob-ext { |
| 195 | filename = "tifsstub.bin_fs"; |
| 196 | }; |
| 197 | }; |
Bryan Brattlof | 702196b | 2024-03-12 15:20:28 -0500 | [diff] [blame] | 198 | dm { |
| 199 | ti-secure { |
| 200 | content = <&dm>; |
| 201 | keyfile = "custMpk.pem"; |
| 202 | }; |
| 203 | |
| 204 | dm: ti-dm { |
Andrew Davis | 7ed4a85 | 2025-04-25 17:54:03 -0500 | [diff] [blame] | 205 | filename = "ti-dm/am62pxx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; |
| 206 | optional; |
Bryan Brattlof | 702196b | 2024-03-12 15:20:28 -0500 | [diff] [blame] | 207 | }; |
| 208 | }; |
| 209 | |
| 210 | fdt-0 { |
| 211 | description = "k3-am62p5-sk"; |
| 212 | type = "flat_dt"; |
| 213 | arch = "arm"; |
| 214 | compression = "none"; |
| 215 | |
| 216 | ti-secure { |
| 217 | content = <&spl_am62p5_sk_dtb>; |
| 218 | keyfile = "custMpk.pem"; |
| 219 | }; |
| 220 | |
| 221 | spl_am62p5_sk_dtb: blob-ext { |
| 222 | filename = SPL_AM62PX_SK_DTB; |
| 223 | }; |
| 224 | |
| 225 | }; |
| 226 | |
| 227 | }; |
| 228 | |
| 229 | configurations { |
| 230 | default = "conf-0"; |
| 231 | |
| 232 | conf-0 { |
| 233 | description = "k3-am62px-sk"; |
| 234 | firmware = "atf"; |
Dhruva Gole | 7ba3bf6 | 2024-06-07 14:26:41 +0530 | [diff] [blame] | 235 | loadables = "tee", "dm", "spl", |
| 236 | "tifsstub-hs", "tifsstub-fs"; |
Bryan Brattlof | 702196b | 2024-03-12 15:20:28 -0500 | [diff] [blame] | 237 | fdt = "fdt-0"; |
| 238 | }; |
| 239 | }; |
| 240 | }; |
| 241 | }; |
| 242 | }; |
| 243 | |
| 244 | &binman { |
| 245 | u-boot { |
| 246 | insert-template = <&u_boot_template>; |
| 247 | |
| 248 | fit { |
| 249 | images { |
| 250 | uboot { |
| 251 | description = "U-Boot for AM62P5 Boards"; |
| 252 | }; |
| 253 | |
| 254 | fdt-0 { |
| 255 | description = "k3-am62px-sk"; |
| 256 | type = "flat_dt"; |
| 257 | arch = "arm"; |
| 258 | compression = "none"; |
| 259 | |
| 260 | ti-secure { |
| 261 | content = <&am62px_sk_dtb>; |
| 262 | keyfile = "custMpk.pem"; |
| 263 | }; |
| 264 | |
| 265 | am62px_sk_dtb: blob-ext { |
| 266 | filename = AM62PX_SK_DTB; |
| 267 | }; |
| 268 | |
| 269 | hash { |
| 270 | algo = "crc32"; |
| 271 | }; |
| 272 | }; |
| 273 | }; |
| 274 | |
| 275 | configurations { |
| 276 | default = "conf-0"; |
| 277 | |
| 278 | conf-0 { |
| 279 | description = "k3-am62px-sk"; |
| 280 | firmware = "uboot"; |
| 281 | loadables = "uboot"; |
| 282 | fdt = "fdt-0"; |
| 283 | }; |
| 284 | |
| 285 | }; |
| 286 | }; |
| 287 | }; |
| 288 | }; |
| 289 | |
Jonathan Humphreys | 99e108f | 2024-05-31 17:51:07 -0500 | [diff] [blame] | 290 | #include "k3-binman-capsule.dtsi" |
| 291 | |
| 292 | // Capsule update GUIDs in string form. See am62px_evm.h |
| 293 | #define AM62PX_SK_SPL_IMAGE_GUID_STR "d02ed781-6d71-4c1a-a999-3c6a41c36324" |
| 294 | #define AM62PX_SK_UBOOT_IMAGE_GUID_STR "7e6aea51-965c-44ab-b388-daeb03b54f66" |
| 295 | |
| 296 | &capsule_tispl { |
| 297 | efi-capsule { |
| 298 | image-guid = AM62PX_SK_SPL_IMAGE_GUID_STR; |
| 299 | }; |
| 300 | }; |
| 301 | |
| 302 | &capsule_uboot { |
| 303 | efi-capsule { |
| 304 | image-guid = AM62PX_SK_UBOOT_IMAGE_GUID_STR; |
| 305 | }; |
| 306 | }; |
| 307 | |
Bryan Brattlof | 702196b | 2024-03-12 15:20:28 -0500 | [diff] [blame] | 308 | #endif /* CONFIG_TARGET_AM62P5_A53_EVM */ |