From 7a8bd3dbe7528ff591a217b0dd81663c34a3c370 Mon Sep 17 00:00:00 2001 From: Titan Chen Date: Fri, 27 Jun 2025 15:49:47 +0800 Subject: [PATCH] soc : realtek: ec: rts5912: fix VIN polarity issue fix ulpm driver polarity issue. when pin-pol set to falling need to set the POL bit to 1. when pin-pol set to rising need to set the POL bit to 0. Signed-off-by: Titan Chen --- soc/realtek/ec/rts5912/rts5912_ulpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soc/realtek/ec/rts5912/rts5912_ulpm.c b/soc/realtek/ec/rts5912/rts5912_ulpm.c index 64ec787b7b3..1cd8f493259 100644 --- a/soc/realtek/ec/rts5912/rts5912_ulpm.c +++ b/soc/realtek/ec/rts5912/rts5912_ulpm.c @@ -146,7 +146,7 @@ void rts5912_ulpm_enable(void) if (wkup_pins_cfgs[i].pin_mode == RTS5912_ULPM_WKUP_PIN_MODE_VIN) { LOG_DBG("setup VIN%d in ", id); /* Configure Polarity */ - if (wkup_pins_cfgs[i].pin_pol == RTS5912_ULPM_WKUP_PIN_POL_RISING) { + if (wkup_pins_cfgs[i].pin_pol == RTS5912_ULPM_WKUP_PIN_POL_FALLING) { /* Falling Edge */ sys_reg->VIVOCTRL |= BIT(SYSTEM_VIVOCTRL_VIN0POL_Pos + id); LOG_DBG("Falling Edge\n");