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