xref: /freebsd/sys/contrib/device-tree/Bindings/rng/starfive,jh7110-trng.yaml (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1cb7aa33aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2cb7aa33aSEmmanuel Vadot%YAML 1.2
3cb7aa33aSEmmanuel Vadot---
4cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/rng/starfive,jh7110-trng.yaml#
5cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6cb7aa33aSEmmanuel Vadot
7cb7aa33aSEmmanuel Vadottitle: StarFive SoC TRNG Module
8cb7aa33aSEmmanuel Vadot
9cb7aa33aSEmmanuel Vadotmaintainers:
10cb7aa33aSEmmanuel Vadot  - Jia Jie Ho <jiajie.ho@starfivetech.com>
11cb7aa33aSEmmanuel Vadot
12cb7aa33aSEmmanuel Vadotproperties:
13cb7aa33aSEmmanuel Vadot  compatible:
14*8d13bc63SEmmanuel Vadot    oneOf:
15*8d13bc63SEmmanuel Vadot      - items:
16*8d13bc63SEmmanuel Vadot          - const: starfive,jh8100-trng
17*8d13bc63SEmmanuel Vadot          - const: starfive,jh7110-trng
18*8d13bc63SEmmanuel Vadot      - const: starfive,jh7110-trng
19cb7aa33aSEmmanuel Vadot
20cb7aa33aSEmmanuel Vadot  reg:
21cb7aa33aSEmmanuel Vadot    maxItems: 1
22cb7aa33aSEmmanuel Vadot
23cb7aa33aSEmmanuel Vadot  clocks:
24cb7aa33aSEmmanuel Vadot    items:
25cb7aa33aSEmmanuel Vadot      - description: Hardware reference clock
26cb7aa33aSEmmanuel Vadot      - description: AHB reference clock
27cb7aa33aSEmmanuel Vadot
28cb7aa33aSEmmanuel Vadot  clock-names:
29cb7aa33aSEmmanuel Vadot    items:
30cb7aa33aSEmmanuel Vadot      - const: hclk
31cb7aa33aSEmmanuel Vadot      - const: ahb
32cb7aa33aSEmmanuel Vadot
33cb7aa33aSEmmanuel Vadot  resets:
34cb7aa33aSEmmanuel Vadot    maxItems: 1
35cb7aa33aSEmmanuel Vadot
36cb7aa33aSEmmanuel Vadot  interrupts:
37cb7aa33aSEmmanuel Vadot    maxItems: 1
38cb7aa33aSEmmanuel Vadot
39cb7aa33aSEmmanuel Vadotrequired:
40cb7aa33aSEmmanuel Vadot  - compatible
41cb7aa33aSEmmanuel Vadot  - reg
42cb7aa33aSEmmanuel Vadot  - clocks
43cb7aa33aSEmmanuel Vadot  - clock-names
44cb7aa33aSEmmanuel Vadot  - resets
45cb7aa33aSEmmanuel Vadot  - interrupts
46cb7aa33aSEmmanuel Vadot
47cb7aa33aSEmmanuel VadotadditionalProperties: false
48cb7aa33aSEmmanuel Vadot
49cb7aa33aSEmmanuel Vadotexamples:
50cb7aa33aSEmmanuel Vadot  - |
51cb7aa33aSEmmanuel Vadot    rng: rng@1600C000 {
52cb7aa33aSEmmanuel Vadot        compatible = "starfive,jh7110-trng";
53cb7aa33aSEmmanuel Vadot        reg = <0x1600C000 0x4000>;
54cb7aa33aSEmmanuel Vadot        clocks = <&clk 15>, <&clk 16>;
55cb7aa33aSEmmanuel Vadot        clock-names = "hclk", "ahb";
56cb7aa33aSEmmanuel Vadot        resets = <&reset 3>;
57cb7aa33aSEmmanuel Vadot        interrupts = <30>;
58cb7aa33aSEmmanuel Vadot    };
59cb7aa33aSEmmanuel Vadot...
60