soc: rockchip: support rk3368 pm config
authorXiaoDong Huang <derrick.huang@rock-chips.com>
Wed, 26 Apr 2017 11:06:08 +0000 (19:06 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 5 May 2017 06:37:11 +0000 (14:37 +0800)
Change-Id: I69e823d397a411c1b1395563870fca6485dfb936
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 a8fd70f1759707bf90eb51a28328b97c38e8b38b..4dc1d02a15db0c15aaefdf35ee2a2d7a879251c1 100644 (file)
@@ -1,7 +1,9 @@
 * the suspend mode config
 
-- compatible: "rockchip,pm-config"
-  Compatibility with rk3399
+Required properties:
+- compatible: Should be one of the following.
+- "rockchip,pm-rk3368" - for RK3368 SoCs.
+- "rockchip,pm-rk3399" - for RK3399 SoCs.
 
 - rockchip,sleep-mode-config : the sleep mode config,
   ARMOFF, OSC disabled ...
 - rockchip,pwm-regulator-config: the pwm regulator name.
 
 Example:
+       rockchip_suspend: rockchip-suspend {
+               compatible = "rockchip,pm-rk3368";
+               status = "disabled";
+               rockchip,sleep-mode-config = <
+                       (0
+                       | RKPM_SLP_ARMOFF_LOGPD
+                       | RKPM_SLP_PMU_PLLS_PWRDN
+                       | RKPM_SLP_PMU_PMUALIVE_32K
+                       | RKPM_SLP_SFT_PLLS_DEEP
+                       | RKPM_SLP_PMU_DIS_OSC
+                       | RKPM_SLP_SFT_PD_NBSCUS
+                       )
+               >;
+       };
+
        rockchip_suspend: rockchip_suspend {
                compatible = "rockchip,pm-rk3399";
                status = "okay";
@@ -36,4 +53,4 @@ Example:
                        PWM2_REGULATOR_EN
                        )
                >;
-       };
+       };
\ No newline at end of file
index 43b2e0f33343bf018959b0e58be57097cf59c272..038695ff97e4ace1deb9b081558aee45b39d4896 100644 (file)
@@ -21,6 +21,7 @@
 #define PM_INVALID_GPIO        0xffff
 
 static const struct of_device_id pm_match_table[] = {
+       { .compatible = "rockchip,pm-rk3368",},
        { .compatible = "rockchip,pm-rk3399",},
        { },
 };