1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rng/omap_rng.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: OMAP SoC and Inside-Secure HWRNG Module
8
9maintainers:
10  - Jayesh Choudhary <j-choudhary@ti.com>
11
12properties:
13  compatible:
14    enum:
15      - ti,omap2-rng
16      - ti,omap4-rng
17      - inside-secure,safexcel-eip76
18
19  ti,hwmods:
20    const: rng
21    deprecated: true
22    description: Name of the hwmod associated with the RNG module
23
24  reg:
25    maxItems: 1
26
27  interrupts:
28    maxItems: 1
29
30  clocks:
31    minItems: 1
32    items:
33      - description: EIP150 gatable clock
34      - description: Main gatable clock
35
36  clock-names:
37    minItems: 1
38    items:
39      - const: core
40      - const: reg
41
42
43allOf:
44  - if:
45      properties:
46        compatible:
47          contains:
48            enum:
49              - ti,omap4-rng
50              - inside-secure,safexcel-eip76
51
52    then:
53      required:
54        - interrupts
55
56  - if:
57      properties:
58        compatible:
59          contains:
60            enum:
61              - inside-secure,safexcel-eip76
62
63    then:
64      required:
65        - clocks
66
67
68required:
69  - compatible
70  - reg
71
72additionalProperties: false
73
74examples:
75  - |
76    /* AM335x */
77    rng: rng@48310000 {
78            compatible = "ti,omap4-rng";
79            ti,hwmods = "rng";
80            reg = <0x48310000 0x2000>;
81            interrupts = <111>;
82    };
83  - |
84    /* SafeXcel IP-76 */
85    trng: rng@f2760000 {
86            compatible = "inside-secure,safexcel-eip76";
87            reg = <0xf2760000 0x7d>;
88            interrupts = <0 59 4>;
89            clocks = <&cpm_syscon0 1 25>;
90    };
91
92...
93