soc: rockchip: support rk3368 pm config

Change-Id: I69e823d397a411c1b1395563870fca6485dfb936
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
This commit is contained in:
XiaoDong Huang
2017-04-26 19:06:08 +08:00
committed by Huang, Tao
parent 1924661beb
commit c7db890039
2 changed files with 21 additions and 3 deletions

View 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 ...
@@ -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
)
>;
};
};

View 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",},
{ },
};