1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rng/brcm,bcm2835.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: BCM2835/6368 Random number generator
8
9maintainers:
10  - Stefan Wahren <stefan.wahren@i2se.com>
11  - Florian Fainelli <f.fainelli@gmail.com>
12  - Herbert Xu <herbert@gondor.apana.org.au>
13
14properties:
15  compatible:
16    enum:
17      - brcm,bcm2835-rng
18      - brcm,bcm-nsp-rng
19      - brcm,bcm5301x-rng
20      - brcm,bcm6368-rng
21
22  reg:
23    maxItems: 1
24
25  clocks:
26    maxItems: 1
27
28  clock-names:
29    const: ipsec
30
31  interrupts:
32    maxItems: 1
33
34required:
35  - compatible
36  - reg
37
38examples:
39  - |
40    rng {
41        compatible = "brcm,bcm2835-rng";
42        reg = <0x7e104000 0x10>;
43        interrupts = <2 29>;
44    };
45
46  - |
47    rng@18033000 {
48        compatible = "brcm,bcm-nsp-rng";
49        reg = <0x18033000 0x14>;
50    };
51
52  - |
53    rng@10004180 {
54        compatible = "brcm,bcm6368-rng";
55        reg = <0x10004180 0x14>;
56
57        clocks = <&periph_clk 18>;
58        clock-names = "ipsec";
59    };
60