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