xref: /linux/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml (revision b54a2377ec02d52b7bb5dab381e9a45ba0bc617a)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/rng/atmel,at91-trng.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Atmel AT91 True Random Number Generator
8
9maintainers:
10  - Nicolas Ferre <nicolas.ferre@microchip.com>
11  - Alexandre Belloni <alexandre.belloni@bootlin.com>
12  - Claudiu Beznea <claudiu.beznea@microchip.com>
13
14properties:
15  compatible:
16    oneOf:
17      - enum:
18          - atmel,at91sam9g45-trng
19          - microchip,sam9x60-trng
20      - items:
21          - enum:
22              - microchip,sama7g5-trng
23          - const: atmel,at91sam9g45-trng
24
25  clocks:
26    maxItems: 1
27
28  interrupts:
29    maxItems: 1
30
31  reg:
32    maxItems: 1
33
34required:
35  - compatible
36  - clocks
37  - interrupts
38  - reg
39
40additionalProperties: false
41
42examples:
43  - |
44    #include <dt-bindings/interrupt-controller/irq.h>
45
46    rng@fffcc000 {
47        compatible = "atmel,at91sam9g45-trng";
48        reg = <0xfffcc000 0x4000>;
49        interrupts = <6 IRQ_TYPE_LEVEL_HIGH 0>;
50        clocks = <&trng_clk>;
51    };
52