From 916efae9c40c1d7ce3e5e9609053d6cc3904c5d9 Mon Sep 17 00:00:00 2001 From: XiaoDong Huang Date: Mon, 22 May 2017 19:24:42 +0800 Subject: [PATCH] soc: rockchip: support rk322x pm config Change-Id: I29c5685f09a846b62196ab8614ebe168bfed75ef Signed-off-by: XiaoDong Huang --- .../bindings/soc/rockchip/rockchip-pm-config.txt | 12 ++++++++++++ drivers/soc/rockchip/rockchip_pm_config.c | 1 + 2 files changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/rockchip/rockchip-pm-config.txt b/Documentation/devicetree/bindings/soc/rockchip/rockchip-pm-config.txt index 9d3a9f548f33..43f8ae8fa369 100644 --- a/Documentation/devicetree/bindings/soc/rockchip/rockchip-pm-config.txt +++ b/Documentation/devicetree/bindings/soc/rockchip/rockchip-pm-config.txt @@ -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"; diff --git a/drivers/soc/rockchip/rockchip_pm_config.c b/drivers/soc/rockchip/rockchip_pm_config.c index a2338d94407e..168b45594139 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-rk322x",}, { .compatible = "rockchip,pm-rk3288",}, { .compatible = "rockchip,pm-rk3368",}, { .compatible = "rockchip,pm-rk3399",}, -- 2.34.1