forked from Minki/linux
eb0fc0d6ae
The power domains in the SCPSYS unit are supplied by regulators. Add the properties for them to the binding document. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Cc: devicetree@vger.kernel.org Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
56 lines
2.0 KiB
Plaintext
56 lines
2.0 KiB
Plaintext
MediaTek SCPSYS
|
|
===============
|
|
|
|
The System Control Processor System (SCPSYS) has several power management
|
|
related tasks in the system. The tasks include thermal measurement, dynamic
|
|
voltage frequency scaling (DVFS), interrupt filter and lowlevel sleep control.
|
|
The System Power Manager (SPM) inside the SCPSYS is for the MTCMOS power
|
|
domain control.
|
|
|
|
The driver implements the Generic PM domain bindings described in
|
|
power/power_domain.txt. It provides the power domains defined in
|
|
include/dt-bindings/power/mt8173-power.h.
|
|
|
|
Required properties:
|
|
- compatible: Must be "mediatek,mt8173-scpsys"
|
|
- #power-domain-cells: Must be 1
|
|
- reg: Address range of the SCPSYS unit
|
|
- infracfg: must contain a phandle to the infracfg controller
|
|
- clock, clock-names: clocks according to the common clock binding.
|
|
The clocks needed "mm", "mfg", "venc" and "venc_lt".
|
|
These are the clocks which hardware needs to be enabled
|
|
before enabling certain power domains.
|
|
|
|
Optional properties:
|
|
- vdec-supply: Power supply for the vdec power domain
|
|
- venc-supply: Power supply for the venc power domain
|
|
- isp-supply: Power supply for the isp power domain
|
|
- mm-supply: Power supply for the mm power domain
|
|
- venc_lt-supply: Power supply for the venc_lt power domain
|
|
- audio-supply: Power supply for the audio power domain
|
|
- usb-supply: Power supply for the usb power domain
|
|
- mfg_async-supply: Power supply for the mfg_async power domain
|
|
- mfg_2d-supply: Power supply for the mfg_2d power domain
|
|
- mfg-supply: Power supply for the mfg power domain
|
|
|
|
Example:
|
|
|
|
scpsys: scpsys@10006000 {
|
|
#power-domain-cells = <1>;
|
|
compatible = "mediatek,mt8173-scpsys";
|
|
reg = <0 0x10006000 0 0x1000>;
|
|
infracfg = <&infracfg>;
|
|
clocks = <&clk26m>,
|
|
<&topckgen CLK_TOP_MM_SEL>;
|
|
<&topckgen CLK_TOP_VENC_SEL>,
|
|
<&topckgen CLK_TOP_VENC_LT_SEL>;
|
|
clock-names = "mfg", "mm", "venc", "venc_lt";
|
|
};
|
|
|
|
Example consumer:
|
|
|
|
afe: mt8173-afe-pcm@11220000 {
|
|
compatible = "mediatek,mt8173-afe-pcm";
|
|
power-domains = <&scpsys MT8173_POWER_DOMAIN_AUDIO>;
|
|
};
|