From b0227e7081404448a0059b8698fdffd2dec280d2 Mon Sep 17 00:00:00 2001 From: Ondrej Jirman Date: Thu, 19 Oct 2023 18:57:26 +0200 Subject: [PATCH] mfd: rk8xx: Add support for RK806 power off Use DEV_OFF bit to power off the RK806 PMIC, when system-power-controller is used in DTS. Signed-off-by: Ondrej Jirman Reviewed-by: Sebastian Reichel Link: https://lore.kernel.org/r/20231019165732.3818789-5-megi@xff.cz Signed-off-by: Lee Jones --- drivers/mfd/rk8xx-core.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/mfd/rk8xx-core.c +++ b/drivers/mfd/rk8xx-core.c @@ -517,6 +517,10 @@ static int rk808_power_off(struct sys_of reg = RK805_DEV_CTRL_REG; bit = DEV_OFF; break; + case RK806_ID: + reg = RK806_SYS_CFG3; + bit = DEV_OFF; + break; case RK808_ID: reg = RK808_DEVCTRL_REG, bit = DEV_OFF_RST;