xref: /linux/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml (revision 4b132aacb0768ac1e652cf517097ea6f237214b9)
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      - items:
25          - enum:
26              - microchip,sam9x7-trng
27          - const: microchip,sam9x60-trng
28
29  clocks:
30    maxItems: 1
31
32  interrupts:
33    maxItems: 1
34
35  reg:
36    maxItems: 1
37
38required:
39  - compatible
40  - clocks
41  - interrupts
42  - reg
43
44additionalProperties: false
45
46examples:
47  - |
48    #include <dt-bindings/interrupt-controller/irq.h>
49
50    rng@fffcc000 {
51        compatible = "atmel,at91sam9g45-trng";
52        reg = <0xfffcc000 0x4000>;
53        interrupts = <6 IRQ_TYPE_LEVEL_HIGH 0>;
54        clocks = <&trng_clk>;
55    };
56