e271c4682ebcd66c00e9c244f7c45832144cdc1f
[linux-2.6-microblaze.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,mt7622-pericfg
25           - mediatek,mt7629-pericfg
26           - mediatek,mt8135-pericfg
27           - mediatek,mt8173-pericfg
28           - mediatek,mt8183-pericfg
29           - mediatek,mt8516-pericfg
30         - const: syscon
31       - items:
32         # Special case for mt7623 for backward compatibility
33         - const: mediatek,mt7623-pericfg
34         - const: mediatek,mt2701-pericfg
35         - const: syscon
36
37   reg:
38     maxItems: 1
39
40   '#clock-cells':
41     const: 1
42
43   '#reset-cells':
44     const: 1
45
46 required:
47   - compatible
48   - reg
49
50 examples:
51   - |
52     pericfg@10003000 {
53         compatible = "mediatek,mt8173-pericfg", "syscon";
54         reg = <0x10003000 0x1000>;
55         #clock-cells = <1>;
56         #reset-cells = <1>;
57     };
58
59   - |
60     pericfg@10003000 {
61         compatible =  "mediatek,mt7623-pericfg", "mediatek,mt2701-pericfg", "syscon";
62         reg = <0x10003000 0x1000>;
63         #clock-cells = <1>;
64         #reset-cells = <1>;
65     };