xref: /rk3399_ARM-atf/tools/cot_dt2c/tests/test_invalid_missing_ctr.dtsi (revision e264b5573952c72805a14e69e438168c00163e9a)
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 definition of
8 * nv counters
9 *
10 */
11
12#include <example/example.h>
13#include <example/example/example.h>
14
15cot {
16	manifests {
17		compatible = "arm, cert-descs";
18
19		example_cert: example_cert {
20			root-certificate;
21			image-id =<EXAMPLE_ID>;
22			signing-key = <&swd_rot_pk>;
23			antirollback-counter = <&example_ctr>;
24
25			example_hash: example_hash
26			{
27				oid = EXAMPLE_HASH_ID;
28			};
29
30		};
31	};
32
33	images {
34		compatible = "arm, img-descs";
35
36		example {
37			image-id = <EXAMPLE_ID>;
38			parent = <&example_cert>;
39			hash = <&example_hash>;
40		};
41	};
42};
43
44non_volatile_counters: non_volatile_counters {
45	compatible = "arm, non-volatile-counter";
46
47	#address-cells = <1>;
48	#size-cells = <0>;
49
50};
51
52rot_keys {
53	example_pk: example_pk {
54		oid = EXAMPLE_PK_OID;
55	};
56};
57