soc: rockchip: support rk322x pm config
authorXiaoDong Huang <derrick.huang@rock-chips.com>
Mon, 22 May 2017 11:24:42 +0000 (19:24 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 24 May 2017 01:35:51 +0000 (09:35 +0800)
Change-Id: I29c5685f09a846b62196ab8614ebe168bfed75ef
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Documentation/devicetree/bindings/soc/rockchip/rockchip-pm-config.txt
drivers/soc/rockchip/rockchip_pm_config.c

index 9d3a9f548f33313b05cae5390bd280a754e3d213..43f8ae8fa3691234de49fe88720232c389401e95 100644 (file)
@@ -2,6 +2,7 @@
 
 Required properties:
 - compatible: Should be one of the following.
+- "rockchip,pm-rk322x" - for RK322x SOCs.
 - "rockchip,pm-rk3288" - for RK3288 SOCs.
 - "rockchip,pm-rk3368" - for RK3368 SoCs.
 - "rockchip,pm-rk3399" - for RK3399 SoCs.
@@ -15,6 +16,17 @@ Required properties:
 - rockchip,pwm-regulator-config: the pwm regulator name.
 
 Example:
+       rockchip_suspend: rockchip-suspend {
+               compatible = "rockchip,pm-rk322x";
+               status = "disabled";
+               rockchip,sleep-mode-config = <
+                       (0
+                       |RKPM_CTR_GTCLKS
+                       |RKPM_CTR_IDLESRAM_MD
+                       )
+               >;
+       };
+
        rockchip_suspend: rockchip-suspend {
                compatible = "rockchip,pm-rk3288";
                status = "disabled";
index a2338d94407eb13dc3e84c7993fe34ae80c7ae75..168b4559413921b8f256f9fb136c0c1096a95f40 100644 (file)
@@ -21,6 +21,7 @@
 #define PM_INVALID_GPIO        0xffff
 
 static const struct of_device_id pm_match_table[] = {
+       { .compatible = "rockchip,pm-rk322x",},
        { .compatible = "rockchip,pm-rk3288",},
        { .compatible = "rockchip,pm-rk3368",},
        { .compatible = "rockchip,pm-rk3399",},