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 16Required properties: 17- compatible: Should be one of: 18 - "mediatek,mt2701-scpsys" 19 - "mediatek,mt6797-scpsys" 20 - "mediatek,mt8173-scpsys" 21- #power-domain-cells: Must be 1 22- reg: Address range of the SCPSYS unit 23- infracfg: must contain a phandle to the infracfg controller 24- clock, clock-names: clocks according to the common clock binding. 25 These are clocks which hardware needs to be 26 enabled before enabling certain power domains. 27 Required clocks for MT2701: "mm", "mfg", "ethif" 28 Required clocks for MT6797: "mm", "mfg", "vdec" 29 Required clocks for MT8173: "mm", "mfg", "venc", "venc_lt" 30 31Optional properties: 32- vdec-supply: Power supply for the vdec power domain 33- venc-supply: Power supply for the venc power domain 34- isp-supply: Power supply for the isp power domain 35- mm-supply: Power supply for the mm power domain 36- venc_lt-supply: Power supply for the venc_lt power domain 37- audio-supply: Power supply for the audio power domain 38- usb-supply: Power supply for the usb power domain 39- mfg_async-supply: Power supply for the mfg_async power domain 40- mfg_2d-supply: Power supply for the mfg_2d power domain 41- mfg-supply: Power supply for the mfg power domain 42 43Example: 44 45 scpsys: scpsys@10006000 { 46 #power-domain-cells = <1>; 47 compatible = "mediatek,mt8173-scpsys"; 48 reg = <0 0x10006000 0 0x1000>; 49 infracfg = <&infracfg>; 50 clocks = <&clk26m>, 51 <&topckgen CLK_TOP_MM_SEL>; 52 <&topckgen CLK_TOP_VENC_SEL>, 53 <&topckgen CLK_TOP_VENC_LT_SEL>; 54 clock-names = "mfg", "mm", "venc", "venc_lt"; 55 }; 56 57Example consumer: 58 59 afe: mt8173-afe-pcm@11220000 { 60 compatible = "mediatek,mt8173-afe-pcm"; 61 power-domains = <&scpsys MT8173_POWER_DOMAIN_AUDIO>; 62 }; 63