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