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
11cot {
12	manifests {
13		compatible = "arm, cert-descs";
14
15		cca_content_cert: cca_content_cert {
16			root-certificate;
17			antirollback-counter = <&cca_nv_ctr>;
18
19			hw_config_hash: hw_config_hash {
20			};
21
22			soc_fw_config_hash: soc_fw_config_hash {
23				oid = "1.3.6.1.4.1.4128.2100.604";
24			};
25		};
26
27		plat_key_cert: plat_key_cert {
28			root-certificate;
29			image-id = <38>;
30			signing-key = <&prot_pk>;
31			antirollback-counter = <&non_trusted_nv_ctr>;
32
33			plat_pk: plat_pk {
34				oid = "1.3.6.1.4.1.4128.2100.1105";
35			};
36		};
37
38		non_trusted_fw_content_cert: non_trusted_fw_content_cert {
39			image-id = <15>;
40			signing-key = <&plat_pk>;
41			antirollback-counter = <&non_trusted_nv_ctr>;
42
43			nt_world_bl_hash: nt_world_bl_hash {
44				oid = "1.3.6.1.4.1.4128.2100.1201";
45			};
46			nt_fw_config_hash: nt_fw_config_hash {
47				oid =  "1.3.6.1.4.1.4128.2100.1202";
48			};
49		};
50
51	images {
52		compatible = "arm, img-descs";
53
54		hw_config {
55			image-id = <23>;
56			hash = <&hw_config_hash>;
57		};
58
59		soc_fw_config {
60			image-id = <25>;
61			parent = <&cca_content_cert>;
62			hash = <&soc_fw_config_hash>;
63		};
64
65		bl33_image {
66			image-id = <5>;
67			parent = <&non_trusted_fw_content_cert>;
68			hash = <&nt_world_bl_hash>;
69		};
70
71		nt_fw_config {
72			image-id = <27>;
73			parent = <&non_trusted_fw_content_cert>;
74			hash = <&nt_fw_config_hash>;
75		};
76	};
77};
78
79non_volatile_counters: non_volatile_counters {
80	compatible = "arm, non-volatile-counter";
81
82	#address-cells = <1>;
83	#size-cells = <0>;
84
85	cca_nv_ctr: cca_nv_ctr {
86		id  = <0>;
87		oid = "1.3.6.1.4.1.4128.2100.3";
88	};
89
90	trusted_nv_ctr: trusted_nv_ctr {
91		id  = <0>;
92		oid = "1.3.6.1.4.1.4128.2100.1";
93	};
94
95	non_trusted_nv_ctr: non_trusted_nv_ctr {
96		id  = <1>;
97		oid = "1.3.6.1.4.1.4128.2100.2";
98	};
99};
100
101rot_keys {
102	swd_rot_pk: swd_rot_pk {
103		oid = "1.3.6.1.4.1.4128.2100.1103";
104	};
105	prot_pk: prot_pk {
106		oid = "1.3.6.1.4.1.4128.2100.1102";
107	};
108};
109