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,mmsys.yaml#"
5$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6
7title: MediaTek mmsys controller
8
9maintainers:
10  - Matthias Brugger <matthias.bgg@gmail.com>
11
12description:
13  The MediaTek mmsys system controller provides clock control, routing control,
14  and miscellaneous control in mmsys partition.
15
16properties:
17  $nodename:
18    pattern: "^syscon@[0-9a-f]+$"
19
20  compatible:
21    oneOf:
22      - items:
23          - enum:
24              - mediatek,mt2701-mmsys
25              - mediatek,mt2712-mmsys
26              - mediatek,mt6765-mmsys
27              - mediatek,mt6779-mmsys
28              - mediatek,mt6797-mmsys
29              - mediatek,mt8167-mmsys
30              - mediatek,mt8173-mmsys
31              - mediatek,mt8183-mmsys
32              - mediatek,mt8365-mmsys
33          - const: syscon
34      - items:
35          - const: mediatek,mt7623-mmsys
36          - const: mediatek,mt2701-mmsys
37          - const: syscon
38
39  reg:
40    maxItems: 1
41
42  "#clock-cells":
43    const: 1
44
45required:
46  - compatible
47  - reg
48  - "#clock-cells"
49
50additionalProperties: false
51
52examples:
53  - |
54    mmsys: syscon@14000000 {
55        compatible = "mediatek,mt8173-mmsys", "syscon";
56        reg = <0x14000000 0x1000>;
57        #clock-cells = <1>;
58    };
59