xref: /linux/Documentation/devicetree/bindings/rng/samsung,exynos5250-trng.yaml (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rng/samsung,exynos5250-trng.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Samsung Exynos SoC True Random Number Generator
8
9maintainers:
10  - Krzysztof Kozlowski <krzk@kernel.org>
11  - Łukasz Stelmach <l.stelmach@samsung.com>
12
13properties:
14  compatible:
15    enum:
16      - samsung,exynos5250-trng
17      - samsung,exynos850-trng
18
19  clocks:
20    minItems: 1
21    maxItems: 2
22
23  clock-names:
24    minItems: 1
25    maxItems: 2
26
27  reg:
28    maxItems: 1
29
30required:
31  - compatible
32  - clocks
33  - clock-names
34  - reg
35
36allOf:
37  - if:
38      properties:
39        compatible:
40          contains:
41            const: samsung,exynos850-trng
42
43    then:
44      properties:
45        clocks:
46          items:
47            - description: SSS (Security Sub System) operating clock
48            - description: SSS (Security Sub System) bus clock
49
50        clock-names:
51          items:
52            - const: secss
53            - const: pclk
54
55    else:
56      properties:
57        clocks:
58          items:
59            - description: SSS (Security Sub System) operating clock
60
61        clock-names:
62          items:
63            - const: secss
64
65additionalProperties: false
66
67examples:
68  - |
69    #include <dt-bindings/clock/exynos5250.h>
70
71    rng@10830600 {
72        compatible = "samsung,exynos5250-trng";
73        reg = <0x10830600 0x100>;
74        clocks = <&clock CLK_SSS>;
75        clock-names = "secss";
76    };
77