cot_descriptors.dtsi 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. /*
  2. * Copyright (c) 2020, ARM Limited. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <tools_share/tbbr_oid.h>
  7. #include <common/tbbr/tbbr_img_def.h>
  8. #include <common/nv_cntr_ids.h>
  9. cot {
  10. manifests {
  11. compatible = "arm, cert-descs";
  12. trusted_boot_fw_cert: trusted_boot_fw_cert {
  13. root-certificate;
  14. image-id =<TRUSTED_BOOT_FW_CERT_ID>;
  15. antirollback-counter = <&trusted_nv_counter>;
  16. tb_fw_hash: tb_fw_hash {
  17. oid = TRUSTED_BOOT_FW_HASH_OID;
  18. };
  19. tb_fw_config_hash: tb_fw_config_hash {
  20. oid = TRUSTED_BOOT_FW_CONFIG_HASH_OID;
  21. };
  22. hw_config_hash: hw_config_hash {
  23. oid = HW_CONFIG_HASH_OID;
  24. };
  25. fw_config_hash: fw_config_hash {
  26. oid = FW_CONFIG_HASH_OID;
  27. };
  28. };
  29. trusted_key_cert: trusted_key_cert {
  30. root-certificate;
  31. image-id = <TRUSTED_KEY_CERT_ID>;
  32. antirollback-counter = <&trusted_nv_counter>;
  33. trusted_world_pk: trusted_world_pk {
  34. oid = TRUSTED_WORLD_PK_OID;
  35. };
  36. non_trusted_world_pk: non_trusted_world_pk {
  37. oid = NON_TRUSTED_WORLD_PK_OID;
  38. };
  39. };
  40. scp_fw_key_cert: scp_fw_key_cert {
  41. image-id = <SCP_FW_KEY_CERT_ID>;
  42. parent = <&trusted_key_cert>;
  43. signing-key = <&trusted_world_pk>;
  44. antirollback-counter = <&trusted_nv_counter>;
  45. scp_fw_content_pk: scp_fw_content_pk {
  46. oid = SCP_FW_CONTENT_CERT_PK_OID;
  47. };
  48. };
  49. scp_fw_content_cert: scp_fw_content_cert {
  50. image-id = <SCP_FW_CONTENT_CERT_ID>;
  51. parent = <&scp_fw_key_cert>;
  52. signing-key = <&scp_fw_content_pk>;
  53. antirollback-counter = <&trusted_nv_counter>;
  54. scp_fw_hash: scp_fw_hash {
  55. oid = SCP_FW_HASH_OID;
  56. };
  57. };
  58. soc_fw_key_cert: soc_fw_key_cert {
  59. image-id = <SOC_FW_KEY_CERT_ID>;
  60. parent = <&trusted_key_cert>;
  61. signing-key = <&trusted_world_pk>;
  62. antirollback-counter = <&trusted_nv_counter>;
  63. soc_fw_content_pk: soc_fw_content_pk {
  64. oid = SOC_FW_CONTENT_CERT_PK_OID;
  65. };
  66. };
  67. soc_fw_content_cert: soc_fw_content_cert {
  68. image-id = <SOC_FW_CONTENT_CERT_ID>;
  69. parent = <&soc_fw_key_cert>;
  70. signing-key = <&soc_fw_content_pk>;
  71. antirollback-counter = <&trusted_nv_counter>;
  72. soc_fw_hash: soc_fw_hash {
  73. oid = SOC_AP_FW_HASH_OID;
  74. };
  75. soc_fw_config_hash: soc_fw_config_hash {
  76. oid = SOC_FW_CONFIG_HASH_OID;
  77. };
  78. };
  79. trusted_os_fw_key_cert: trusted_os_fw_key_cert {
  80. image-id = <TRUSTED_OS_FW_KEY_CERT_ID>;
  81. parent = <&trusted_key_cert>;
  82. signing-key = <&trusted_world_pk>;
  83. antirollback-counter = <&trusted_nv_counter>;
  84. tos_fw_content_pk: tos_fw_content_pk {
  85. oid = TRUSTED_OS_FW_CONTENT_CERT_PK_OID;
  86. };
  87. };
  88. trusted_os_fw_content_cert: trusted_os_fw_content_cert {
  89. image-id = <TRUSTED_OS_FW_CONTENT_CERT_ID>;
  90. parent = <&trusted_os_fw_key_cert>;
  91. signing-key = <&tos_fw_content_pk>;
  92. antirollback-counter = <&trusted_nv_counter>;
  93. tos_fw_hash: tos_fw_hash {
  94. oid = TRUSTED_OS_FW_HASH_OID;
  95. };
  96. tos_fw_extra1_hash: tos_fw_extra1_hash {
  97. oid = TRUSTED_OS_FW_EXTRA1_HASH_OID;
  98. };
  99. tos_fw_extra2_hash: tos_fw_extra2_hash {
  100. oid = TRUSTED_OS_FW_EXTRA2_HASH_OID;
  101. };
  102. tos_fw_config_hash: tos_fw_config_hash {
  103. oid = TRUSTED_OS_FW_CONFIG_HASH_OID;
  104. };
  105. };
  106. non_trusted_fw_key_cert: non_trusted_fw_key_cert {
  107. image-id = <NON_TRUSTED_FW_KEY_CERT_ID>;
  108. parent = <&trusted_key_cert>;
  109. signing-key = <&non_trusted_world_pk>;
  110. antirollback-counter = <&non_trusted_nv_counter>;
  111. nt_fw_content_pk: nt_fw_content_pk {
  112. oid = NON_TRUSTED_FW_CONTENT_CERT_PK_OID;
  113. };
  114. };
  115. non_trusted_fw_content_cert: non_trusted_fw_content_cert {
  116. image-id = <NON_TRUSTED_FW_CONTENT_CERT_ID>;
  117. parent = <&non_trusted_fw_key_cert>;
  118. signing-key = <&nt_fw_content_pk>;
  119. antirollback-counter = <&non_trusted_nv_counter>;
  120. nt_world_bl_hash: nt_world_bl_hash {
  121. oid = NON_TRUSTED_WORLD_BOOTLOADER_HASH_OID;
  122. };
  123. nt_fw_config_hash: nt_fw_config_hash {
  124. oid = NON_TRUSTED_FW_CONFIG_HASH_OID;
  125. };
  126. };
  127. #if defined(SPD_spmd)
  128. sip_sp_content_cert: sip_sp_content_cert {
  129. image-id = <SIP_SP_CONTENT_CERT_ID>;
  130. parent = <&trusted_key_cert>;
  131. signing-key = <&trusted_world_pk>;
  132. antirollback-counter = <&trusted_nv_counter>;
  133. sp_pkg1_hash: sp_pkg1_hash {
  134. oid = SP_PKG1_HASH_OID;
  135. };
  136. sp_pkg2_hash: sp_pkg2_hash {
  137. oid = SP_PKG2_HASH_OID;
  138. };
  139. sp_pkg3_hash: sp_pkg3_hash {
  140. oid = SP_PKG3_HASH_OID;
  141. };
  142. sp_pkg4_hash: sp_pkg4_hash {
  143. oid = SP_PKG4_HASH_OID;
  144. };
  145. sp_pkg5_hash: sp_pkg5_hash {
  146. oid = SP_PKG5_HASH_OID;
  147. };
  148. sp_pkg6_hash: sp_pkg6_hash {
  149. oid = SP_PKG6_HASH_OID;
  150. };
  151. sp_pkg7_hash: sp_pkg7_hash {
  152. oid = SP_PKG7_HASH_OID;
  153. };
  154. sp_pkg8_hash: sp_pkg8_hash {
  155. oid = SP_PKG8_HASH_OID;
  156. };
  157. };
  158. #endif
  159. };
  160. images {
  161. compatible = "arm, img-descs";
  162. hw_config {
  163. image-id = <HW_CONFIG_ID>;
  164. parent = <&trusted_boot_fw_cert>;
  165. hash = <&hw_config_hash>;
  166. };
  167. tb_fw_config {
  168. image-id = <TB_FW_CONFIG_ID>;
  169. parent = <&trusted_boot_fw_cert>;
  170. hash = <&tb_fw_config_hash>;
  171. };
  172. scp_bl2_image {
  173. image-id = <SCP_BL2_IMAGE_ID>;
  174. parent = <&scp_fw_content_cert>;
  175. hash = <&scp_fw_hash>;
  176. };
  177. bl31_image {
  178. image-id = <BL31_IMAGE_ID>;
  179. parent = <&soc_fw_content_cert>;
  180. hash = <&soc_fw_hash>;
  181. };
  182. soc_fw_config {
  183. image-id = <SOC_FW_CONFIG_ID>;
  184. parent = <&soc_fw_content_cert>;
  185. hash = <&soc_fw_config_hash>;
  186. };
  187. bl32_image {
  188. image-id = <BL32_IMAGE_ID>;
  189. parent = <&trusted_os_fw_content_cert>;
  190. hash = <&tos_fw_hash>;
  191. };
  192. bl32_extra1_image {
  193. image-id = <BL32_EXTRA1_IMAGE_ID>;
  194. parent = <&trusted_os_fw_content_cert>;
  195. hash = <&tos_fw_extra1_hash>;
  196. };
  197. bl32_extra2_image {
  198. image-id = <BL32_EXTRA2_IMAGE_ID>;
  199. parent = <&trusted_os_fw_content_cert>;
  200. hash = <&tos_fw_extra2_hash>;
  201. };
  202. tos_fw_config {
  203. image-id = <TOS_FW_CONFIG_ID>;
  204. parent = <&trusted_os_fw_content_cert>;
  205. hash = <&tos_fw_config_hash>;
  206. };
  207. bl33_image {
  208. image-id = <BL33_IMAGE_ID>;
  209. parent = <&non_trusted_fw_content_cert>;
  210. hash = <&nt_world_bl_hash>;
  211. };
  212. nt_fw_config {
  213. image-id = <NT_FW_CONFIG_ID>;
  214. parent = <&non_trusted_fw_content_cert>;
  215. hash = <&nt_fw_config_hash>;
  216. };
  217. #if defined(SPD_spmd)
  218. sp_pkg1 {
  219. image-id = <SP_PKG1_ID>;
  220. parent = <&sip_sp_content_cert>;
  221. hash = <&sp_pkg1_hash>;
  222. };
  223. sp_pkg2 {
  224. image-id = <SP_PKG2_ID>;
  225. parent = <&sip_sp_content_cert>;
  226. hash = <&sp_pkg2_hash>;
  227. };
  228. sp_pkg3 {
  229. image-id = <SP_PKG3_ID>;
  230. parent = <&sip_sp_content_cert>;
  231. hash = <&sp_pkg3_hash>;
  232. };
  233. sp_pkg4 {
  234. image-id = <SP_PKG4_ID>;
  235. parent = <&sip_sp_content_cert>;
  236. hash = <&sp_pkg4_hash>;
  237. };
  238. sp_pkg5 {
  239. image-id = <SP_PKG5_ID>;
  240. parent = <&sip_sp_content_cert>;
  241. hash = <&sp_pkg5_hash>;
  242. };
  243. sp_pkg6 {
  244. image-id = <SP_PKG6_ID>;
  245. parent = <&sip_sp_content_cert>;
  246. hash = <&sp_pkg6_hash>;
  247. };
  248. sp_pkg7 {
  249. image-id = <SP_PKG7_ID>;
  250. parent = <&sip_sp_content_cert>;
  251. hash = <&sp_pkg7_hash>;
  252. };
  253. sp_pkg8 {
  254. image-id = <SP_PKG8_ID>;
  255. parent = <&sip_sp_content_cert>;
  256. hash = <&sp_pkg8_hash>;
  257. };
  258. #endif
  259. };
  260. };
  261. non_volatile_counters: non_volatile_counters {
  262. compatible = "arm, non-volatile-counter";
  263. #address-cells = <1>;
  264. #size-cells = <0>;
  265. trusted_nv_counter: trusted_nv_counter {
  266. id = <TRUSTED_NV_CTR_ID>;
  267. oid = TRUSTED_FW_NVCOUNTER_OID;
  268. };
  269. non_trusted_nv_counter: non_trusted_nv_counter {
  270. id = <NON_TRUSTED_NV_CTR_ID>;
  271. oid = NON_TRUSTED_FW_NVCOUNTER_OID;
  272. };
  273. };