dualroot_cot_descriptors.dtsi 6.9 KB

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