Merge branches 'clk-baikal', 'clk-broadcom', 'clk-vc5' and 'clk-versaclock' into...
[platform/kernel/linux-starfive.git] / Documentation / devicetree / bindings / arm / mediatek / mediatek,pericfg.yaml
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: "http://devicetree.org/schemas/arm/mediatek/mediatek,pericfg.yaml#"
5 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
6
7 title: MediaTek Peripheral Configuration Controller
8
9 maintainers:
10   - Bartosz Golaszewski <bgolaszewski@baylibre.com>
11
12 description:
13   The Mediatek pericfg controller provides various clocks and reset outputs
14   to the system.
15
16 properties:
17   compatible:
18     oneOf:
19       - items:
20           - enum:
21               - mediatek,mt2701-pericfg
22               - mediatek,mt2712-pericfg
23               - mediatek,mt6765-pericfg
24               - mediatek,mt6795-pericfg
25               - mediatek,mt7622-pericfg
26               - mediatek,mt7629-pericfg
27               - mediatek,mt8135-pericfg
28               - mediatek,mt8173-pericfg
29               - mediatek,mt8183-pericfg
30               - mediatek,mt8186-pericfg
31               - mediatek,mt8195-pericfg
32               - mediatek,mt8516-pericfg
33           - const: syscon
34       - items:
35           # Special case for mt7623 for backward compatibility
36           - const: mediatek,mt7623-pericfg
37           - const: mediatek,mt2701-pericfg
38           - const: syscon
39
40   reg:
41     maxItems: 1
42
43   '#clock-cells':
44     const: 1
45
46   '#reset-cells':
47     const: 1
48
49 required:
50   - compatible
51   - reg
52
53 additionalProperties: false
54
55 examples:
56   - |
57     pericfg@10003000 {
58         compatible = "mediatek,mt8173-pericfg", "syscon";
59         reg = <0x10003000 0x1000>;
60         #clock-cells = <1>;
61         #reset-cells = <1>;
62     };
63
64   - |
65     pericfg@10003000 {
66         compatible =  "mediatek,mt7623-pericfg", "mediatek,mt2701-pericfg", "syscon";
67         reg = <0x10003000 0x1000>;
68         #clock-cells = <1>;
69         #reset-cells = <1>;
70     };