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