Merge tag 'fscache-next-20210829' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / rng / mtk-rng.yaml
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
7 title: MediaTek Random number generator
8
9 maintainers:
10   - Sean Wang <sean.wang@mediatek.com>
11
12 properties:
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
39 required:
40   - compatible
41   - reg
42   - clocks
43   - clock-names
44
45 additionalProperties: false
46
47 examples:
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     };