kernel: update 4.1 to 4.1.13
[openwrt/staging/wigyori.git] / target / linux / mediatek / patches / 0007-dt-bindings-soc-Add-documentation-for-the-MediaTek-S.patch
1 From 06a1fd8a198771abc7c5badcf43a49a715ba4c76 Mon Sep 17 00:00:00 2001
2 From: Sascha Hauer <s.hauer@pengutronix.de>
3 Date: Tue, 9 Jun 2015 10:47:00 +0200
4 Subject: [PATCH 07/76] dt-bindings: soc: Add documentation for the MediaTek
5 SCPSYS unit
6
7 This adds documentation for the MediaTek SCPSYS unit found in MT8173 SoCs.
8
9 Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
10 ---
11 .../devicetree/bindings/soc/mediatek/scpsys.txt | 34 ++++++++++++++++++++
12 1 file changed, 34 insertions(+)
13 create mode 100644 Documentation/devicetree/bindings/soc/mediatek/scpsys.txt
14
15 --- /dev/null
16 +++ b/Documentation/devicetree/bindings/soc/mediatek/scpsys.txt
17 @@ -0,0 +1,34 @@
18 +MediaTek SCPSYS
19 +===============
20 +
21 +The System Control Processor System (SCPSYS) has several power management
22 +related tasks in the system. The tasks include thermal measurement, dynamic
23 +voltage frequency scaling (DVFS), interrupt filter and lowlevel sleep control.
24 +The System Power Manager (SPM) inside the SCPSYS is for the MTCMOS power
25 +domain control.
26 +
27 +The driver implements the Generic PM domain bindings described in
28 +power/power_domain.txt. It provides the power domains defined in
29 +include/dt-bindings/power/mt8173-power.h.
30 +
31 +Required properties:
32 +- compatible: Must be "mediatek,mt8173-scpsys"
33 +- #power-domain-cells: Must be 1
34 +- reg: Address range of the SCPSYS unit
35 +- infracfg: must contain a phandle to the infracfg controller
36 +
37 +Example:
38 +
39 + scpsys: scpsys@10006000 {
40 + #power-domain-cells = <1>;
41 + compatible = "mediatek,mt8173-scpsys";
42 + reg = <0 0x10006000 0 0x1000>;
43 + infracfg = <&infracfg>;
44 + };
45 +
46 +Example consumer:
47 +
48 + afe: mt8173-afe-pcm@11220000 {
49 + compatible = "mediatek,mt8173-afe-pcm";
50 + power-domains = <&scpsys MT8173_POWER_DOMAIN_AUDIO>;
51 + };