From: zhangqing <zhangqing@rock-chips.com>
To: heiko@sntech.de, wxt@rock-chips.com
Cc: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com,
ijc+devicetree@hellion.org.uk, galak@codeaurora.org,
khilman@linaro.org, linux-arm-kernel@lists.infradead.org,
devicetree@vger.kernel.org, huangtao@rock-chips.com,
zyw@rock-chips.com, linux-rockchip@lists.infradead.org,
linux-kernel@vger.kernel.org,
zhangqing <zhangqing@rock-chips.com>
Subject: [PATCH v3 3/3] dt-bindings: modify document of Rockchip power domains
Date: Mon, 11 Jan 2016 02:36:40 -0800 [thread overview]
Message-ID: <1452508600-3512-4-git-send-email-zhangqing@rock-chips.com> (raw)
In-Reply-To: <1452508600-3512-1-git-send-email-zhangqing@rock-chips.com>
Modify binding documentation for the power domains
found on Rockchip RK3368 SoCs.
Signed-off-by: zhangqing <zhangqing@rock-chips.com>
---
.../bindings/soc/rockchip/power_domain.txt | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/Documentation/devicetree/bindings/soc/rockchip/power_domain.txt b/Documentation/devicetree/bindings/soc/rockchip/power_domain.txt
index 112756e..13dc6a3 100644
--- a/Documentation/devicetree/bindings/soc/rockchip/power_domain.txt
+++ b/Documentation/devicetree/bindings/soc/rockchip/power_domain.txt
@@ -6,6 +6,7 @@ powered up/down by software based on different application scenes to save power.
Required properties for power domain controller:
- compatible: Should be one of the following.
"rockchip,rk3288-power-controller" - for RK3288 SoCs.
+ "rockchip,rk3368-power-controller" - for RK3368 SoCs.
- #power-domain-cells: Number of cells in a power-domain specifier.
Should be 1 for multiple PM domains.
- #address-cells: Should be 1.
@@ -14,6 +15,7 @@ Required properties for power domain controller:
Required properties for power domain sub nodes:
- reg: index of the power domain, should use macros in:
"include/dt-bindings/power/rk3288-power.h" - for RK3288 type power domain.
+ "include/dt-bindings/power/rk3368-power.h" - for RK3368 type power domain.
- clocks (optional): phandles to clocks which need to be enabled while power domain
switches state.
@@ -31,11 +33,24 @@ Example:
};
};
+ power: power-controller {
+ compatible = "rockchip,rk3368-power-controller";
+ #power-domain-cells = <1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ pd_gpu_1 {
+ reg = <RK3368_PD_GPU_1>;
+ clocks = <&cru ACLK_GPU_CFG>;
+ };
+ };
+
Node of a device using power domains must have a power-domains property,
containing a phandle to the power device node and an index specifying which
power domain to use.
The index should use macros in:
"include/dt-bindings/power/rk3288-power.h" - for rk3288 type power domain.
+ "include/dt-bindings/power/rk3368-power.h" - for rk3368 type power domain.
Example of the node using power domain:
@@ -44,3 +59,9 @@ Example of the node using power domain:
power-domains = <&power RK3288_PD_GPU>;
/* ... */
};
+
+ node {
+ /* ... */
+ power-domains = <&power RK3368_PD_GPU_1>;
+ /* ... */
+ };
--
1.9.1
next prev parent reply other threads:[~2016-01-11 10:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-11 10:36 [PATCH v3 0/3] SoC: rockchip: support power domain for RK3368 zhangqing
2016-01-11 10:36 ` [PATCH v3 2/3] soc: rockchip: power-domain: Modify power domain driver for rk3368 zhangqing
2016-01-11 13:27 ` Caesar Wang
[not found] ` <5693ADD1.4000207-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-01-12 8:57 ` zhangqing
[not found] ` <5694BFE4.1070200-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-01-12 1:57 ` Caesar Wang
2016-01-12 2:00 ` Caesar Wang
2016-01-11 10:36 ` zhangqing [this message]
2016-01-11 2:55 ` [PATCH v3 3/3] dt-bindings: modify document of Rockchip power domains Rob Herring
2016-01-20 10:28 ` [PATCH v3 0/3] SoC: rockchip: support power domain for RK3368 zhangqing
[not found] ` <569F6135.1070902-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-01-20 8:26 ` Heiko Stuebner
[not found] ` <1452508600-3512-1-git-send-email-zhangqing-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-01-11 10:36 ` [PATCH v3 1/3] dt-bindings: add power-domain header for RK3368 SoCs zhangqing
[not found] ` <1452508600-3512-2-git-send-email-zhangqing-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2016-01-12 2:03 ` Caesar Wang
2016-01-24 22:52 ` [PATCH v3 0/3] SoC: rockchip: support power domain for RK3368 Heiko Stübner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1452508600-3512-4-git-send-email-zhangqing@rock-chips.com \
--to=zhangqing@rock-chips.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=heiko@sntech.de \
--cc=huangtao@rock-chips.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=khilman@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@kernel.org \
--cc=wxt@rock-chips.com \
--cc=zyw@rock-chips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).