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