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 | }; |
| 60 | }; |
| 61 | |
Jonathan Humphreys | 99e108f | 2024-05-31 17:51:07 -0500 | [diff] [blame] | 62 | #include "k3-binman-capsule-r5.dtsi" |
| 63 | |
| 64 | // Capsule update GUIDs in string form. See am62px_evm.h |
| 65 | #define AM62PX_SK_TIBOOT3_IMAGE_GUID_STR "b08471b7-be2d-4489-87a1-cab28a0cf743" |
| 66 | |
| 67 | &capsule_tiboot3 { |
| 68 | efi-capsule { |
| 69 | image-guid = AM62PX_SK_TIBOOT3_IMAGE_GUID_STR; |
| 70 | }; |
| 71 | }; |
| 72 | |
Bryan Brattlof | 702196b | 2024-03-12 15:20:28 -0500 | [diff] [blame] | 73 | #endif /* CONFIG_TARGET_AM62P5_R5_EVM */ |
| 74 | |
| 75 | #if IS_ENABLED(CONFIG_TARGET_AM62P5_A53_EVM) |
| 76 | |
| 77 | #define SPL_AM62PX_SK_DTB "spl/dts/ti/k3-am62p5-sk.dtb" |
| 78 | #define AM62PX_SK_DTB "u-boot.dtb" |
| 79 | |
| 80 | &binman { |
| 81 | ti-dm { |
| 82 | filename = "ti-dm.bin"; |
| 83 | |
| 84 | blob-ext { |
| 85 | filename = "ti-dm/am62pxx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; |
Neha Malcom Francis | df41fc6 | 2024-05-29 13:18:49 +0530 | [diff] [blame] | 86 | optional; |
Bryan Brattlof | 702196b | 2024-03-12 15:20:28 -0500 | [diff] [blame] | 87 | }; |
| 88 | }; |
Dhruva Gole | 7ba3bf6 | 2024-06-07 14:26:41 +0530 | [diff] [blame] | 89 | tifsstub-hs { |
| 90 | filename = "tifsstub.bin_hs"; |
| 91 | ti-secure-rom { |
| 92 | content = <&tifsstub_hs_cert>; |
| 93 | core = "secure"; |
| 94 | load = <0x60000>; |
| 95 | sw-rev = <CONFIG_K3_X509_SWRV>; |
| 96 | keyfile = "custMpk.pem"; |
| 97 | countersign; |
| 98 | tifsstub; |
| 99 | }; |
| 100 | tifsstub_hs_cert: tifsstub-hs-cert.bin { |
| 101 | filename = "ti-sysfw/ti-fs-stub-firmware-am62px-hs-cert.bin"; |
| 102 | type = "blob-ext"; |
| 103 | optional; |
| 104 | }; |
| 105 | tifsstub_hs_enc: tifsstub-hs-enc.bin { |
| 106 | filename = "ti-sysfw/ti-fs-stub-firmware-am62px-hs-enc.bin"; |
| 107 | type = "blob-ext"; |
| 108 | optional; |
| 109 | }; |
| 110 | }; |
| 111 | |
| 112 | tifsstub-fs { |
| 113 | filename = "tifsstub.bin_fs"; |
| 114 | tifsstub_fs_cert: tifsstub-fs-cert.bin { |
| 115 | filename = "ti-sysfw/ti-fs-stub-firmware-am62px-hs-cert.bin"; |
| 116 | type = "blob-ext"; |
| 117 | optional; |
| 118 | }; |
| 119 | tifsstub_fs_enc: tifsstub-fs-enc.bin { |
| 120 | filename = "ti-sysfw/ti-fs-stub-firmware-am62px-hs-enc.bin"; |
| 121 | type = "blob-ext"; |
| 122 | optional; |
| 123 | }; |
| 124 | |
| 125 | }; |
Bryan Brattlof | 702196b | 2024-03-12 15:20:28 -0500 | [diff] [blame] | 126 | |
| 127 | ti-spl { |
| 128 | insert-template = <&ti_spl_template>; |
| 129 | |
| 130 | fit { |
| 131 | images { |
Dhruva Gole | 7ba3bf6 | 2024-06-07 14:26:41 +0530 | [diff] [blame] | 132 | tifsstub-hs { |
| 133 | description = "TIFSSTUB"; |
| 134 | type = "firmware"; |
| 135 | arch = "arm32"; |
| 136 | compression = "none"; |
| 137 | os = "tifsstub-hs"; |
| 138 | load = <0x9ca00000>; |
| 139 | entry = <0x9ca00000>; |
| 140 | blob-ext { |
| 141 | filename = "tifsstub.bin_hs"; |
| 142 | }; |
| 143 | }; |
| 144 | |
| 145 | tifsstub-fs { |
| 146 | description = "TIFSSTUB"; |
| 147 | type = "firmware"; |
| 148 | arch = "arm32"; |
| 149 | compression = "none"; |
| 150 | os = "tifsstub-fs"; |
| 151 | load = <0x9ca00000>; |
| 152 | entry = <0x9ca00000>; |
| 153 | blob-ext { |
| 154 | filename = "tifsstub.bin_fs"; |
| 155 | }; |
| 156 | }; |
Bryan Brattlof | 702196b | 2024-03-12 15:20:28 -0500 | [diff] [blame] | 157 | dm { |
| 158 | ti-secure { |
| 159 | content = <&dm>; |
| 160 | keyfile = "custMpk.pem"; |
| 161 | }; |
| 162 | |
| 163 | dm: ti-dm { |
| 164 | filename = "ti-dm.bin"; |
| 165 | }; |
| 166 | }; |
| 167 | |
| 168 | fdt-0 { |
| 169 | description = "k3-am62p5-sk"; |
| 170 | type = "flat_dt"; |
| 171 | arch = "arm"; |
| 172 | compression = "none"; |
| 173 | |
| 174 | ti-secure { |
| 175 | content = <&spl_am62p5_sk_dtb>; |
| 176 | keyfile = "custMpk.pem"; |
| 177 | }; |
| 178 | |
| 179 | spl_am62p5_sk_dtb: blob-ext { |
| 180 | filename = SPL_AM62PX_SK_DTB; |
| 181 | }; |
| 182 | |
| 183 | }; |
| 184 | |
| 185 | }; |
| 186 | |
| 187 | configurations { |
| 188 | default = "conf-0"; |
| 189 | |
| 190 | conf-0 { |
| 191 | description = "k3-am62px-sk"; |
| 192 | firmware = "atf"; |
Dhruva Gole | 7ba3bf6 | 2024-06-07 14:26:41 +0530 | [diff] [blame] | 193 | loadables = "tee", "dm", "spl", |
| 194 | "tifsstub-hs", "tifsstub-fs"; |
Bryan Brattlof | 702196b | 2024-03-12 15:20:28 -0500 | [diff] [blame] | 195 | fdt = "fdt-0"; |
| 196 | }; |
| 197 | }; |
| 198 | }; |
| 199 | }; |
| 200 | }; |
| 201 | |
| 202 | &binman { |
| 203 | u-boot { |
| 204 | insert-template = <&u_boot_template>; |
| 205 | |
| 206 | fit { |
| 207 | images { |
| 208 | uboot { |
| 209 | description = "U-Boot for AM62P5 Boards"; |
| 210 | }; |
| 211 | |
| 212 | fdt-0 { |
| 213 | description = "k3-am62px-sk"; |
| 214 | type = "flat_dt"; |
| 215 | arch = "arm"; |
| 216 | compression = "none"; |
| 217 | |
| 218 | ti-secure { |
| 219 | content = <&am62px_sk_dtb>; |
| 220 | keyfile = "custMpk.pem"; |
| 221 | }; |
| 222 | |
| 223 | am62px_sk_dtb: blob-ext { |
| 224 | filename = AM62PX_SK_DTB; |
| 225 | }; |
| 226 | |
| 227 | hash { |
| 228 | algo = "crc32"; |
| 229 | }; |
| 230 | }; |
| 231 | }; |
| 232 | |
| 233 | configurations { |
| 234 | default = "conf-0"; |
| 235 | |
| 236 | conf-0 { |
| 237 | description = "k3-am62px-sk"; |
| 238 | firmware = "uboot"; |
| 239 | loadables = "uboot"; |
| 240 | fdt = "fdt-0"; |
| 241 | }; |
| 242 | |
| 243 | }; |
| 244 | }; |
| 245 | }; |
| 246 | }; |
| 247 | |
Jonathan Humphreys | 99e108f | 2024-05-31 17:51:07 -0500 | [diff] [blame] | 248 | #include "k3-binman-capsule.dtsi" |
| 249 | |
| 250 | // Capsule update GUIDs in string form. See am62px_evm.h |
| 251 | #define AM62PX_SK_SPL_IMAGE_GUID_STR "d02ed781-6d71-4c1a-a999-3c6a41c36324" |
| 252 | #define AM62PX_SK_UBOOT_IMAGE_GUID_STR "7e6aea51-965c-44ab-b388-daeb03b54f66" |
| 253 | |
| 254 | &capsule_tispl { |
| 255 | efi-capsule { |
| 256 | image-guid = AM62PX_SK_SPL_IMAGE_GUID_STR; |
| 257 | }; |
| 258 | }; |
| 259 | |
| 260 | &capsule_uboot { |
| 261 | efi-capsule { |
| 262 | image-guid = AM62PX_SK_UBOOT_IMAGE_GUID_STR; |
| 263 | }; |
| 264 | }; |
| 265 | |
Bryan Brattlof | 702196b | 2024-03-12 15:20:28 -0500 | [diff] [blame] | 266 | #endif /* CONFIG_TARGET_AM62P5_A53_EVM */ |