test.dtsi 953 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright (c) 2024, Arm Limited. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. *
  6. * This file provide a valid CoT DT file
  7. *
  8. */
  9. #include <example/example.h>
  10. #include <example/example/example.h>
  11. cot {
  12. manifests {
  13. compatible = "arm, cert-descs";
  14. #if defined(test)
  15. example_cert: example_cert {
  16. root-certificate;
  17. image-id =<EXAMPLE_ID>;
  18. antirollback-counter = <&example_ctr>;
  19. example_hash: example_hash
  20. {
  21. oid = EXAMPLE_HASH_ID;
  22. };
  23. };
  24. #endif
  25. };
  26. images {
  27. compatible = "arm, img-descs";
  28. example {
  29. image-id = <EXAMPLE_ID>;
  30. parent = <&example_cert>;
  31. hash = <&example_hash>;
  32. };
  33. };
  34. };
  35. non_volatile_counters: non_volatile_counters {
  36. compatible = "arm, non-volatile-counter";
  37. #address-cells = <1>;
  38. #size-cells = <0>;
  39. example_ctr: example_ctr {
  40. id = <TRUSTED_NV_CTR_ID>;
  41. oid = CCA_FW_NVCOUNTER_OID;
  42. };
  43. };
  44. rot_keys {
  45. example_pk: example_pk {
  46. oid = EXAMPLE_PK_OID;
  47. };
  48. };