From c7db890039d2b57062982e3331cf73824eabb2da Mon Sep 17 00:00:00 2001 From: XiaoDong Huang Date: Wed, 26 Apr 2017 19:06:08 +0800 Subject: [PATCH] soc: rockchip: support rk3368 pm config Change-Id: I69e823d397a411c1b1395563870fca6485dfb936 Signed-off-by: XiaoDong Huang --- .../soc/rockchip/rockchip-pm-config.txt | 23 ++++++++++++++++--- drivers/soc/rockchip/rockchip_pm_config.c | 1 + 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/soc/rockchip/rockchip-pm-config.txt b/Documentation/devicetree/bindings/soc/rockchip/rockchip-pm-config.txt index a8fd70f17597..4dc1d02a15db 100644 --- a/Documentation/devicetree/bindings/soc/rockchip/rockchip-pm-config.txt +++ b/Documentation/devicetree/bindings/soc/rockchip/rockchip-pm-config.txt @@ -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 ... @@ -12,6 +14,21 @@ - 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 diff --git a/drivers/soc/rockchip/rockchip_pm_config.c b/drivers/soc/rockchip/rockchip_pm_config.c index 43b2e0f33343..038695ff97e4 100644 --- a/drivers/soc/rockchip/rockchip_pm_config.c +++ b/drivers/soc/rockchip/rockchip_pm_config.c @@ -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",}, { }, }; -- 2.34.1