xref: /linux/Documentation/devicetree/bindings/mfd/mediatek,mt8195-scpsys.yaml (revision a3a02a52bcfcbcc4a637d4b68bf1bc391c9fad02)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mfd/mediatek,mt8195-scpsys.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: MediaTek System Control Processor System
8
9maintainers:
10  - MandyJH Liu <mandyjh.liu@mediatek.com>
11
12description:
13  MediaTek System Control Processor System (SCPSYS) has several
14  power management tasks. The tasks include MTCMOS power
15  domain control, thermal measurement, DVFS, etc.
16
17properties:
18  compatible:
19    items:
20      - enum:
21          - mediatek,mt8167-scpsys
22          - mediatek,mt8173-scpsys
23          - mediatek,mt8183-scpsys
24          - mediatek,mt8186-scpsys
25          - mediatek,mt8188-scpsys
26          - mediatek,mt8192-scpsys
27          - mediatek,mt8195-scpsys
28          - mediatek,mt8365-scpsys
29      - const: syscon
30      - const: simple-mfd
31
32  reg:
33    maxItems: 1
34
35  power-controller:
36    $ref: /schemas/power/mediatek,power-controller.yaml#
37
38required:
39  - compatible
40  - reg
41
42additionalProperties: false
43
44examples:
45  - |
46    #include <dt-bindings/clock/mt8195-clk.h>
47    #include <dt-bindings/power/mt8195-power.h>
48
49    syscon@10006000 {
50      compatible = "mediatek,mt8195-scpsys", "syscon", "simple-mfd";
51      reg = <0x10006000 0x100>;
52
53      spm: power-controller {
54        compatible = "mediatek,mt8195-power-controller";
55        #address-cells = <1>;
56        #size-cells = <0>;
57        #power-domain-cells = <1>;
58
59        /* sample of power domain nodes */
60        power-domain@MT8195_POWER_DOMAIN_PCIE_PHY {
61          reg = <MT8195_POWER_DOMAIN_PCIE_PHY>;
62          #power-domain-cells = <0>;
63        };
64
65        power-domain@MT8195_POWER_DOMAIN_SSUSB_PCIE_PHY {
66          reg = <MT8195_POWER_DOMAIN_SSUSB_PCIE_PHY>;
67          #power-domain-cells = <0>;
68        };
69      };
70    };
71