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 | }; |
| 89 | |
| 90 | ti-spl { |
| 91 | insert-template = <&ti_spl_template>; |
| 92 | |
| 93 | fit { |
| 94 | images { |
| 95 | dm { |
| 96 | ti-secure { |
| 97 | content = <&dm>; |
| 98 | keyfile = "custMpk.pem"; |
| 99 | }; |
| 100 | |
| 101 | dm: ti-dm { |
| 102 | filename = "ti-dm.bin"; |
| 103 | }; |
| 104 | }; |
| 105 | |
| 106 | fdt-0 { |
| 107 | description = "k3-am62p5-sk"; |
| 108 | type = "flat_dt"; |
| 109 | arch = "arm"; |
| 110 | compression = "none"; |
| 111 | |
| 112 | ti-secure { |
| 113 | content = <&spl_am62p5_sk_dtb>; |
| 114 | keyfile = "custMpk.pem"; |
| 115 | }; |
| 116 | |
| 117 | spl_am62p5_sk_dtb: blob-ext { |
| 118 | filename = SPL_AM62PX_SK_DTB; |
| 119 | }; |
| 120 | |
| 121 | }; |
| 122 | |
| 123 | }; |
| 124 | |
| 125 | configurations { |
| 126 | default = "conf-0"; |
| 127 | |
| 128 | conf-0 { |
| 129 | description = "k3-am62px-sk"; |
| 130 | firmware = "atf"; |
| 131 | loadables = "tee", "dm", "spl"; |
| 132 | fdt = "fdt-0"; |
| 133 | }; |
| 134 | }; |
| 135 | }; |
| 136 | }; |
| 137 | }; |
| 138 | |
| 139 | &binman { |
| 140 | u-boot { |
| 141 | insert-template = <&u_boot_template>; |
| 142 | |
| 143 | fit { |
| 144 | images { |
| 145 | uboot { |
| 146 | description = "U-Boot for AM62P5 Boards"; |
| 147 | }; |
| 148 | |
| 149 | fdt-0 { |
| 150 | description = "k3-am62px-sk"; |
| 151 | type = "flat_dt"; |
| 152 | arch = "arm"; |
| 153 | compression = "none"; |
| 154 | |
| 155 | ti-secure { |
| 156 | content = <&am62px_sk_dtb>; |
| 157 | keyfile = "custMpk.pem"; |
| 158 | }; |
| 159 | |
| 160 | am62px_sk_dtb: blob-ext { |
| 161 | filename = AM62PX_SK_DTB; |
| 162 | }; |
| 163 | |
| 164 | hash { |
| 165 | algo = "crc32"; |
| 166 | }; |
| 167 | }; |
| 168 | }; |
| 169 | |
| 170 | configurations { |
| 171 | default = "conf-0"; |
| 172 | |
| 173 | conf-0 { |
| 174 | description = "k3-am62px-sk"; |
| 175 | firmware = "uboot"; |
| 176 | loadables = "uboot"; |
| 177 | fdt = "fdt-0"; |
| 178 | }; |
| 179 | |
| 180 | }; |
| 181 | }; |
| 182 | }; |
| 183 | }; |
| 184 | |
Jonathan Humphreys | 99e108f | 2024-05-31 17:51:07 -0500 | [diff] [blame] | 185 | #include "k3-binman-capsule.dtsi" |
| 186 | |
| 187 | // Capsule update GUIDs in string form. See am62px_evm.h |
| 188 | #define AM62PX_SK_SPL_IMAGE_GUID_STR "d02ed781-6d71-4c1a-a999-3c6a41c36324" |
| 189 | #define AM62PX_SK_UBOOT_IMAGE_GUID_STR "7e6aea51-965c-44ab-b388-daeb03b54f66" |
| 190 | |
| 191 | &capsule_tispl { |
| 192 | efi-capsule { |
| 193 | image-guid = AM62PX_SK_SPL_IMAGE_GUID_STR; |
| 194 | }; |
| 195 | }; |
| 196 | |
| 197 | &capsule_uboot { |
| 198 | efi-capsule { |
| 199 | image-guid = AM62PX_SK_UBOOT_IMAGE_GUID_STR; |
| 200 | }; |
| 201 | }; |
| 202 | |
Bryan Brattlof | 702196b | 2024-03-12 15:20:28 -0500 | [diff] [blame] | 203 | #endif /* CONFIG_TARGET_AM62P5_A53_EVM */ |