Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
| 2 | /* |
| 3 | * Copyright 2023 Toradex |
| 4 | */ |
| 5 | |
| 6 | #include "k3-binman.dtsi" |
| 7 | |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 8 | #ifdef CONFIG_TARGET_VERDIN_AM62_R5 |
| 9 | |
| 10 | &binman { |
| 11 | tiboot3-am62x-hs-verdin.bin { |
| 12 | filename = "tiboot3-am62x-hs-verdin.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-verdin.bin { |
| 57 | filename = "tiboot3-am62x-hs-fs-verdin.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-verdin.bin { |
| 103 | filename = "tiboot3-am62x-gp-verdin.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 | #endif /* CONFIG_TARGET_VERDIN_AM62_R5 */ |
| 140 | |
| 141 | #ifdef CONFIG_TARGET_VERDIN_AM62_A53 |
| 142 | |
Marcel Ziswiler | 62a2d3a | 2024-04-03 09:15:10 +0200 | [diff] [blame] | 143 | #define SPL_VERDIN_AM62_DTB "spl/dts/ti/k3-am625-verdin-wifi-dev.dtb" |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 144 | #define VERDIN_AM62_DTB "u-boot.dtb" |
| 145 | |
| 146 | &binman { |
| 147 | ti-dm { |
| 148 | filename = "ti-dm.bin"; |
| 149 | blob-ext { |
| 150 | filename = "ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f"; |
| 151 | }; |
| 152 | }; |
| 153 | ti-spl { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 154 | insert-template = <&ti_spl_template>; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 155 | |
| 156 | fit { |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 157 | |
| 158 | images { |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 159 | dm { |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 160 | ti-secure { |
| 161 | content = <&dm>; |
| 162 | keyfile = "custMpk.pem"; |
| 163 | }; |
Neha Malcom Francis | 8237821 | 2023-12-05 15:12:19 +0530 | [diff] [blame] | 164 | dm: ti-dm { |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 165 | filename = "ti-dm.bin"; |
| 166 | }; |
| 167 | }; |
| 168 | |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 169 | fdt-0 { |
| 170 | description = "k3-am625-verdin-wifi-dev"; |
| 171 | type = "flat_dt"; |
| 172 | arch = "arm"; |
| 173 | compression = "none"; |
| 174 | ti-secure { |
| 175 | content = <&spl_verdin_am62_dtb>; |
| 176 | keyfile = "custMpk.pem"; |
| 177 | }; |
| 178 | spl_verdin_am62_dtb: blob-ext { |
| 179 | filename = SPL_VERDIN_AM62_DTB; |
| 180 | }; |
| 181 | }; |
| 182 | }; |
| 183 | |
| 184 | configurations { |
| 185 | default = "conf-0"; |
| 186 | |
| 187 | conf-0 { |
| 188 | description = "k3-am625-verdin-wifi-dev"; |
| 189 | firmware = "atf"; |
| 190 | loadables = "tee", "dm", "spl"; |
| 191 | fdt = "fdt-0"; |
| 192 | }; |
| 193 | }; |
| 194 | }; |
| 195 | }; |
| 196 | }; |
| 197 | |
| 198 | &binman { |
| 199 | u-boot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 200 | insert-template = <&u_boot_template>; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 201 | |
| 202 | fit { |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 203 | images { |
| 204 | uboot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 205 | description = "U-Boot fot AM625 Verdin Board"; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 206 | }; |
| 207 | |
| 208 | fdt-0 { |
| 209 | description = "k3-am625-verdin-wifi-dev"; |
| 210 | type = "flat_dt"; |
| 211 | arch = "arm"; |
| 212 | compression = "none"; |
| 213 | ti-secure { |
| 214 | content = <&verdin_am62_dtb>; |
| 215 | keyfile = "custMpk.pem"; |
| 216 | }; |
| 217 | verdin_am62_dtb: blob-ext { |
| 218 | filename = VERDIN_AM62_DTB; |
| 219 | }; |
| 220 | hash { |
| 221 | algo = "crc32"; |
| 222 | }; |
| 223 | }; |
| 224 | }; |
| 225 | |
| 226 | configurations { |
| 227 | default = "conf-0"; |
| 228 | |
| 229 | conf-0 { |
| 230 | description = "k3-am625-verdin-wifi-dev"; |
| 231 | firmware = "uboot"; |
| 232 | loadables = "uboot"; |
| 233 | fdt = "fdt-0"; |
| 234 | }; |
| 235 | }; |
| 236 | }; |
| 237 | }; |
| 238 | }; |
| 239 | |
| 240 | &binman { |
| 241 | ti-spl_unsigned { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 242 | insert-template = <&ti_spl_unsigned_template>; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 243 | |
| 244 | fit { |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 245 | images { |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 246 | dm { |
Neha Malcom Francis | 8237821 | 2023-12-05 15:12:19 +0530 | [diff] [blame] | 247 | ti-dm { |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 248 | filename = "ti-dm.bin"; |
| 249 | }; |
| 250 | }; |
| 251 | |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 252 | fdt-0 { |
| 253 | description = "k3-am625-verdin-wifi-dev"; |
| 254 | type = "flat_dt"; |
| 255 | arch = "arm"; |
| 256 | compression = "none"; |
| 257 | blob { |
| 258 | filename = SPL_VERDIN_AM62_DTB; |
| 259 | }; |
| 260 | }; |
| 261 | }; |
| 262 | |
| 263 | configurations { |
| 264 | default = "conf-0"; |
| 265 | |
| 266 | conf-0 { |
| 267 | description = "k3-am625-verdin-wifi-dev"; |
| 268 | firmware = "atf"; |
| 269 | loadables = "tee", "dm", "spl"; |
| 270 | fdt = "fdt-0"; |
| 271 | }; |
| 272 | }; |
| 273 | }; |
| 274 | }; |
| 275 | }; |
| 276 | |
| 277 | &binman { |
| 278 | u-boot_unsigned { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 279 | insert-template = <&u_boot_unsigned_template>; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 280 | |
| 281 | fit { |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 282 | images { |
| 283 | uboot { |
Neha Malcom Francis | 806b6f8 | 2023-11-15 15:40:24 +0530 | [diff] [blame] | 284 | description = "U-Boot for AM625 Verdin Board"; |
Marcel Ziswiler | 315deb3 | 2023-08-04 12:08:08 +0200 | [diff] [blame] | 285 | }; |
| 286 | |
| 287 | fdt-0 { |
| 288 | description = "k3-am625-verdin-wifi-dev"; |
| 289 | type = "flat_dt"; |
| 290 | arch = "arm"; |
| 291 | compression = "none"; |
| 292 | blob { |
| 293 | filename = VERDIN_AM62_DTB; |
| 294 | }; |
| 295 | hash { |
| 296 | algo = "crc32"; |
| 297 | }; |
| 298 | }; |
| 299 | }; |
| 300 | |
| 301 | configurations { |
| 302 | default = "conf-0"; |
| 303 | |
| 304 | conf-0 { |
| 305 | description = "k3-am625-verdin-wifi-dev"; |
| 306 | firmware = "uboot"; |
| 307 | loadables = "uboot"; |
| 308 | fdt = "fdt-0"; |
| 309 | }; |
| 310 | }; |
| 311 | }; |
| 312 | }; |
| 313 | }; |
| 314 | |
| 315 | #endif /* CONFIG_TARGET_VERDIN_AM62_A53 */ |