soc: rockchip: support rv1126 pm config

Change-Id: I91aaaab020dd04362c9f5ca3c585d22181df8be6
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
This commit is contained in:
XiaoDong Huang 2020-05-11 14:44:38 +08:00 committed by Tao Huang
parent 21d52845a5
commit d178e135e1
2 changed files with 21 additions and 0 deletions

View File

@ -9,6 +9,7 @@ Required properties:
- "rockchip,pm-rk3328" - for RK3328 SOCs.
- "rockchip,pm-rk3368" - for RK3368 SoCs.
- "rockchip,pm-rk3399" - for RK3399 SoCs.
- "rockchip,pm-rv1126" - for RV1126 SoCs.
- rockchip,sleep-mode-config : the sleep mode config,
ARMOFF, OSC disabled ...
@ -162,3 +163,22 @@ Example:
)
>;
};
rockchip_suspend: rockchip-suspend {
compatible = "rockchip,pm-rv1126";
status = "disabled";
rockchip,sleep-debug-en = <0>;
rockchip,sleep-mode-config = <
(0
| RKPM_SLP_ARMOFF
| RKPM_SLP_PMU_PMUALIVE_32K
| RKPM_SLP_PMU_DIS_OSC
| RKPM_SLP_PMIC_LP
)
>;
rockchip,wakeup-config = <
(0
| RKPM_GPIO_WKUP_EN
)
>;
};

View File

@ -29,6 +29,7 @@ static const struct of_device_id pm_match_table[] = {
{ .compatible = "rockchip,pm-rk3328",},
{ .compatible = "rockchip,pm-rk3368",},
{ .compatible = "rockchip,pm-rk3399",},
{ .compatible = "rockchip,pm-rv1126",},
{ },
};