Merge tag 'for-linus-4.10-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / soc / mediatek / scpsys.txt
1 MediaTek SCPSYS
2 ===============
3
4 The System Control Processor System (SCPSYS) has several power management
5 related tasks in the system. The tasks include thermal measurement, dynamic
6 voltage frequency scaling (DVFS), interrupt filter and lowlevel sleep control.
7 The System Power Manager (SPM) inside the SCPSYS is for the MTCMOS power
8 domain control.
9
10 The driver implements the Generic PM domain bindings described in
11 power/power_domain.txt. It provides the power domains defined in
12 include/dt-bindings/power/mt8173-power.h and mt2701-power.h.
13
14 Required properties:
15 - compatible: Should be one of:
16         - "mediatek,mt2701-scpsys"
17         - "mediatek,mt8173-scpsys"
18 - #power-domain-cells: Must be 1
19 - reg: Address range of the SCPSYS unit
20 - infracfg: must contain a phandle to the infracfg controller
21 - clock, clock-names: clocks according to the common clock binding.
22                       These are clocks which hardware needs to be
23                       enabled before enabling certain power domains.
24         Required clocks for MT2701: "mm", "mfg", "ethif"
25         Required clocks for MT8173: "mm", "mfg", "venc", "venc_lt"
26
27 Optional properties:
28 - vdec-supply: Power supply for the vdec power domain
29 - venc-supply: Power supply for the venc power domain
30 - isp-supply: Power supply for the isp power domain
31 - mm-supply: Power supply for the mm power domain
32 - venc_lt-supply: Power supply for the venc_lt power domain
33 - audio-supply: Power supply for the audio power domain
34 - usb-supply: Power supply for the usb power domain
35 - mfg_async-supply: Power supply for the mfg_async power domain
36 - mfg_2d-supply: Power supply for the mfg_2d power domain
37 - mfg-supply: Power supply for the mfg power domain
38
39 Example:
40
41         scpsys: scpsys@10006000 {
42                 #power-domain-cells = <1>;
43                 compatible = "mediatek,mt8173-scpsys";
44                 reg = <0 0x10006000 0 0x1000>;
45                 infracfg = <&infracfg>;
46                 clocks = <&clk26m>,
47                          <&topckgen CLK_TOP_MM_SEL>;
48                          <&topckgen CLK_TOP_VENC_SEL>,
49                          <&topckgen CLK_TOP_VENC_LT_SEL>;
50                 clock-names = "mfg", "mm", "venc", "venc_lt";
51         };
52
53 Example consumer:
54
55         afe: mt8173-afe-pcm@11220000 {
56                 compatible = "mediatek,mt8173-afe-pcm";
57                 power-domains = <&scpsys MT8173_POWER_DOMAIN_AUDIO>;
58         };