lkml.org 
[lkml]   [2014]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v6 2/3] dt-bindings: add document of Rockchip power domain
Date
From: "jinkun.hong" <jinkun.hong@rock-chips.com>

Signed-off-by: Jack Dai <jack.dai@rock-chips.com>
Signed-off-by: jinkun.hong <jinkun.hong@rock-chips.com>

---

Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3:
- DT structure has changed

Changes in v2:
- move clocks to "optional"

.../bindings/arm/rockchip/power_domain.txt | 46 ++++++++++++++++++++
1 file changed, 46 insertions(+)
create mode 100644 Documentation/devicetree/bindings/arm/rockchip/power_domain.txt

diff --git a/Documentation/devicetree/bindings/arm/rockchip/power_domain.txt b/Documentation/devicetree/bindings/arm/rockchip/power_domain.txt
new file mode 100644
index 0000000..f8357b3
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/rockchip/power_domain.txt
@@ -0,0 +1,46 @@
+* Rockchip Power Domains
+
+Rockchip processors include support for multiple power domains which can be
+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-gpu - for rk3288 type gpu power domain.
+ * rockchip,rk3288-power-hevc - for rk3288 type hevc power domain.
+ * rockchip,rk3288-power-video - for rk3288 type video power domain.
+ * rockchip,rk3288-power-vio - for rk3288 type vio power domain.
+- rockchip,pmu: phandle referencing a syscon providing the pmu registers
+- #power-domain-cells: Number of cells in a power-domain specifier.
+ should be 0.
+
+Example:
+
+ gpu_power: gpu-power-controller {
+ compatible = "rockchip,rk3288-power-gpu";
+ rockchip,pmu = <&pmu>;
+ #power-domain-cells = <0>;
+ };
+
+ hevc_power: hevc-power-controller {
+ compatible = "rockchip,rk3288-power-hevc";
+ rockchip,pmu = <&pmu>;
+ #power-domain-cells = <0>;
+ };
+
+ video_power: video-power-controller {
+ compatible = "rockchip,rk3288-power-video";
+ rockchip,pmu = <&pmu>;
+ #power-domain-cells = <0>;
+ };
+
+ vio_power: vio-power-controller {
+ compatible = "rockchip,rk3288-power-vio";
+ rockchip,pmu = <&pmu>;
+ #power-domain-cells = <0>;
+ };
+
+ gpu: gpu@0xffa30000 {
+ ...
+ power-domains = <&gpu_power>;
+ ...
+ };
--
1.7.9.5


\
 
 \ /
  Last update: 2014-10-22 10:21    [W:0.048 / U:3.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site