Jayesh Choudhary | 2a1521c | 2024-06-12 14:41:21 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/ |
| 4 | */ |
| 5 | |
| 6 | #include "k3-binman.dtsi" |
| 7 | |
| 8 | #if IS_ENABLED(CONFIG_TARGET_J722S_R5_EVM) |
| 9 | |
| 10 | &binman { |
| 11 | tiboot3-j722s-hs-fs-evm.bin { |
| 12 | filename = "tiboot3-j722s-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 = <0x43c7a800>; |
| 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-j722s-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-j722s-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 | #endif /*CONFIG_TARGET_J722S_R5_EVM*/ |
| 62 | |
| 63 | #if IS_ENABLED(CONFIG_TARGET_J722S_A53_EVM) |
| 64 | |
| 65 | #define SPL_J722S_EVM_DTB "spl/dts/ti/k3-j722s-evm.dtb" |
| 66 | #define J722S_EVM_DTB "u-boot.dtb" |
| 67 | |
| 68 | &binman { |
| 69 | ti-dm { |
| 70 | filename = "ti-dm.bin"; |
| 71 | |
| 72 | blob-ext { |
| 73 | filename = "ti-dm/j722s/ipc_echo_testb_mcu1_0_release_strip.xer5f"; |
| 74 | optional; |
| 75 | }; |
| 76 | }; |
| 77 | |
| 78 | ti-spl { |
| 79 | insert-template = <&ti_spl_template>; |
| 80 | |
| 81 | fit { |
| 82 | images { |
| 83 | dm { |
| 84 | ti-secure { |
| 85 | content = <&dm>; |
| 86 | keyfile = "custMpk.pem"; |
| 87 | }; |
| 88 | |
| 89 | dm: ti-dm { |
| 90 | filename = "ti-dm.bin"; |
| 91 | }; |
| 92 | }; |
| 93 | |
| 94 | fdt-0 { |
| 95 | description = "k3-j722s-evm"; |
| 96 | type = "flat_dt"; |
| 97 | arch = "arm"; |
| 98 | compression = "none"; |
| 99 | |
| 100 | ti-secure { |
| 101 | content = <&spl_j722s_evm_dtb>; |
| 102 | keyfile = "custMpk.pem"; |
| 103 | }; |
| 104 | |
| 105 | spl_j722s_evm_dtb: blob-ext { |
| 106 | filename = SPL_J722S_EVM_DTB; |
| 107 | }; |
| 108 | |
| 109 | }; |
| 110 | |
| 111 | }; |
| 112 | |
| 113 | configurations { |
| 114 | default = "conf-0"; |
| 115 | |
| 116 | conf-0 { |
| 117 | description = "k3-j722s-evm"; |
| 118 | firmware = "atf"; |
| 119 | loadables = "tee", "dm", "spl"; |
| 120 | fdt = "fdt-0"; |
| 121 | }; |
| 122 | }; |
| 123 | }; |
| 124 | }; |
| 125 | }; |
| 126 | |
| 127 | &binman { |
| 128 | u-boot { |
| 129 | insert-template = <&u_boot_template>; |
| 130 | |
| 131 | fit { |
| 132 | images { |
| 133 | uboot { |
| 134 | description = "U-Boot for J722S board"; |
| 135 | }; |
| 136 | |
| 137 | fdt-0 { |
| 138 | description = "k3-j722s-evm"; |
| 139 | type = "flat_dt"; |
| 140 | arch = "arm"; |
| 141 | compression = "none"; |
| 142 | |
| 143 | ti-secure { |
| 144 | content = <&j722s_evm_dtb>; |
| 145 | keyfile = "custMpk.pem"; |
| 146 | }; |
| 147 | |
| 148 | j722s_evm_dtb: blob-ext { |
| 149 | filename = J722S_EVM_DTB; |
| 150 | }; |
| 151 | |
| 152 | hash { |
| 153 | algo = "crc32"; |
| 154 | }; |
| 155 | }; |
| 156 | }; |
| 157 | |
| 158 | configurations { |
| 159 | default = "conf-0"; |
| 160 | |
| 161 | conf-0 { |
| 162 | description = "k3-j722s-evm"; |
| 163 | firmware = "uboot"; |
| 164 | loadables = "uboot"; |
| 165 | fdt = "fdt-0"; |
| 166 | }; |
| 167 | |
| 168 | }; |
| 169 | }; |
| 170 | }; |
| 171 | }; |
| 172 | #endif /*CONFIG_TARGET_J722S_A53_EVM*/ |