xref: /linux/Documentation/devicetree/bindings/rng/arm-cctrng.yaml (revision 81e8c10dac62c427b25f6bbb07936806e4dd9e8a)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rng/arm-cctrng.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Arm TrustZone CryptoCell TRNG engine
8
9maintainers:
10  - Hadar Gat <hadar.gat@arm.com>
11
12description: |+
13  Arm TrustZone CryptoCell TRNG (True Random Number Generator) engine.
14
15properties:
16  compatible:
17    enum:
18      - arm,cryptocell-713-trng
19      - arm,cryptocell-703-trng
20
21  interrupts:
22    maxItems: 1
23
24  reg:
25    maxItems: 1
26
27  arm,rosc-ratio:
28    description:
29      Arm TrustZone CryptoCell TRNG engine has 4 ring oscillators.
30      Sampling ratio values for these 4 ring oscillators. (from calibration)
31    allOf:
32      - $ref: /schemas/types.yaml#/definitions/uint32-array
33      - items:
34          maxItems: 4
35
36  clocks:
37    maxItems: 1
38
39required:
40  - compatible
41  - interrupts
42  - reg
43  - arm,rosc-ratio
44
45additionalProperties: false
46
47examples:
48  - |
49    arm_cctrng: rng@60000000 {
50        compatible = "arm,cryptocell-713-trng";
51        interrupts = <0 29 4>;
52        reg = <0x60000000 0x10000>;
53        arm,rosc-ratio = <5000 1000 500 0>;
54    };
55