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