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