1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: "http://devicetree.org/schemas/rng/mtk-rng.yaml#"
5$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6
7title: MediaTek Random number generator
8
9maintainers:
10  - Sean Wang <sean.wang@mediatek.com>
11
12properties:
13  $nodename:
14    pattern: "^rng@[0-9a-f]+$"
15
16  compatible:
17    oneOf:
18      - enum:
19          - mediatek,mt7623-rng
20      - items:
21          - enum:
22              - mediatek,mt7622-rng
23              - mediatek,mt7629-rng
24              - mediatek,mt8365-rng
25              - mediatek,mt8516-rng
26          - const: mediatek,mt7623-rng
27
28  reg:
29    maxItems: 1
30
31  clocks:
32    maxItems: 1
33
34  clock-names:
35    items:
36      - const: rng
37
38required:
39  - compatible
40  - reg
41  - clocks
42  - clock-names
43
44additionalProperties: false
45
46examples:
47  - |
48    #include <dt-bindings/clock/mt2701-clk.h>
49    rng: rng@1020f000 {
50            compatible = "mediatek,mt7623-rng";
51            reg = <0x1020f000 0x1000>;
52            clocks = <&infracfg CLK_INFRA_TRNG>;
53            clock-names = "rng";
54    };
55