xref: /linux/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt (revision 7f71507851fc7764b36a3221839607d3a45c2025)
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.yaml. 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/mt6765-power.h
15- include/dt-bindings/power/mt2701-power.h
16- include/dt-bindings/power/mt2712-power.h
17- include/dt-bindings/power/mt7622-power.h
18
19Required properties:
20- compatible: Should be one of:
21	- "mediatek,mt2701-scpsys"
22	- "mediatek,mt2712-scpsys"
23	- "mediatek,mt6735-scpsys"
24	- "mediatek,mt6765-scpsys"
25	- "mediatek,mt6797-scpsys"
26	- "mediatek,mt7622-scpsys"
27	- "mediatek,mt7623-scpsys", "mediatek,mt2701-scpsys": For MT7623 SoC
28	- "mediatek,mt7623a-scpsys": For MT7623A SoC
29	- "mediatek,mt7629-scpsys", "mediatek,mt7622-scpsys": For MT7629 SoC
30	- "mediatek,mt8173-scpsys"
31- #power-domain-cells: Must be 1
32- reg: Address range of the SCPSYS unit
33- infracfg: must contain a phandle to the infracfg controller
34- clock, clock-names: clocks according to the common clock binding.
35                      These are clocks which hardware needs to be
36                      enabled before enabling certain power domains.
37	Required clocks for MT2701 or MT7623: "mm", "mfg", "ethif"
38	Required clocks for MT2712: "mm", "mfg", "venc", "jpgdec", "audio", "vdec"
39	Required clocks for MT6765: MUX: "mm", "mfg"
40				    CG: "mm-0", "mm-1", "mm-2", "mm-3", "isp-0",
41					"isp-1", "cam-0", "cam-1", "cam-2",
42					"cam-3","cam-4"
43	Required clocks for MT6797: "mm", "mfg", "vdec"
44	Required clocks for MT7622 or MT7629: "hif_sel"
45	Required clocks for MT7623A: "ethif"
46	Required clocks for MT8173: "mm", "mfg", "venc", "venc_lt"
47
48Optional properties:
49- vdec-supply: Power supply for the vdec power domain
50- venc-supply: Power supply for the venc power domain
51- isp-supply: Power supply for the isp power domain
52- mm-supply: Power supply for the mm power domain
53- venc_lt-supply: Power supply for the venc_lt power domain
54- audio-supply: Power supply for the audio power domain
55- usb-supply: Power supply for the usb power domain
56- mfg_async-supply: Power supply for the mfg_async power domain
57- mfg_2d-supply: Power supply for the mfg_2d power domain
58- mfg-supply: Power supply for the mfg power domain
59
60Example:
61
62	scpsys: scpsys@10006000 {
63		#power-domain-cells = <1>;
64		compatible = "mediatek,mt8173-scpsys";
65		reg = <0 0x10006000 0 0x1000>;
66		infracfg = <&infracfg>;
67		clocks = <&clk26m>,
68			 <&topckgen CLK_TOP_MM_SEL>;
69			 <&topckgen CLK_TOP_VENC_SEL>,
70			 <&topckgen CLK_TOP_VENC_LT_SEL>;
71		clock-names = "mfg", "mm", "venc", "venc_lt";
72	};
73
74Example consumer:
75
76	afe: mt8173-afe-pcm@11220000 {
77		compatible = "mediatek,mt8173-afe-pcm";
78		power-domains = <&scpsys MT8173_POWER_DOMAIN_AUDIO>;
79	};
80