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,mt8516-rng
25          - const: mediatek,mt7623-rng
26
27  reg:
28    maxItems: 1
29
30  clocks:
31    maxItems: 1
32
33  clock-names:
34    items:
35      - const: rng
36
37required:
38  - compatible
39  - reg
40  - clocks
41  - clock-names
42
43additionalProperties: false
44
45examples:
46  - |
47    #include <dt-bindings/clock/mt2701-clk.h>
48    rng: rng@1020f000 {
49            compatible = "mediatek,mt7623-rng";
50            reg = <0x1020f000 0x1000>;
51            clocks = <&infracfg CLK_INFRA_TRNG>;
52            clock-names = "rng";
53    };
54