test_invalid_missing_attribute.dtsi 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /*
  2. * Copyright (c) 2024, Arm Limited. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. *
  6. * This file provide a malformed CoT DT file that there
  7. * are image/certificate that missing mandantory attributes
  8. *
  9. */
  10. cot {
  11. manifests {
  12. compatible = "arm, cert-descs";
  13. cca_content_cert: cca_content_cert {
  14. root-certificate;
  15. antirollback-counter = <&cca_nv_ctr>;
  16. hw_config_hash: hw_config_hash {
  17. };
  18. soc_fw_config_hash: soc_fw_config_hash {
  19. oid = "1.3.6.1.4.1.4128.2100.604";
  20. };
  21. };
  22. plat_key_cert: plat_key_cert {
  23. root-certificate;
  24. image-id = <38>;
  25. signing-key = <&prot_pk>;
  26. antirollback-counter = <&non_trusted_nv_ctr>;
  27. plat_pk: plat_pk {
  28. oid = "1.3.6.1.4.1.4128.2100.1105";
  29. };
  30. };
  31. non_trusted_fw_content_cert: non_trusted_fw_content_cert {
  32. image-id = <15>;
  33. signing-key = <&plat_pk>;
  34. antirollback-counter = <&non_trusted_nv_ctr>;
  35. nt_world_bl_hash: nt_world_bl_hash {
  36. oid = "1.3.6.1.4.1.4128.2100.1201";
  37. };
  38. nt_fw_config_hash: nt_fw_config_hash {
  39. oid = "1.3.6.1.4.1.4128.2100.1202";
  40. };
  41. };
  42. images {
  43. compatible = "arm, img-descs";
  44. hw_config {
  45. image-id = <23>;
  46. hash = <&hw_config_hash>;
  47. };
  48. soc_fw_config {
  49. image-id = <25>;
  50. parent = <&cca_content_cert>;
  51. hash = <&soc_fw_config_hash>;
  52. };
  53. bl33_image {
  54. image-id = <5>;
  55. parent = <&non_trusted_fw_content_cert>;
  56. hash = <&nt_world_bl_hash>;
  57. };
  58. nt_fw_config {
  59. image-id = <27>;
  60. parent = <&non_trusted_fw_content_cert>;
  61. hash = <&nt_fw_config_hash>;
  62. };
  63. };
  64. };
  65. non_volatile_counters: non_volatile_counters {
  66. compatible = "arm, non-volatile-counter";
  67. #address-cells = <1>;
  68. #size-cells = <0>;
  69. cca_nv_ctr: cca_nv_ctr {
  70. id = <0>;
  71. oid = "1.3.6.1.4.1.4128.2100.3";
  72. };
  73. trusted_nv_ctr: trusted_nv_ctr {
  74. id = <0>;
  75. oid = "1.3.6.1.4.1.4128.2100.1";
  76. };
  77. non_trusted_nv_ctr: non_trusted_nv_ctr {
  78. id = <1>;
  79. oid = "1.3.6.1.4.1.4128.2100.2";
  80. };
  81. };
  82. rot_keys {
  83. swd_rot_pk: swd_rot_pk {
  84. oid = "1.3.6.1.4.1.4128.2100.1103";
  85. };
  86. prot_pk: prot_pk {
  87. oid = "1.3.6.1.4.1.4128.2100.1102";
  88. };
  89. };