Skip to contentSkip to conversation

rtc: rv3032: fix EERD location

PATCH New [email protected] 1 participant 2 messages Mar 6, 2025 Real time clock (RTC)

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/2 rtc: rv3032: fix EERD location

From: Alexandre Belloni <[email protected]>

EERD is bit 2 in CTRL1

---
 drivers/rtc/rtc-rv3032.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/rtc/rtc-rv3032.c +1 -1
index 35b2e36b426a..cb01038a2e27 100644
@@ -69,7 +69,7 @@
 #define RV3032_CLKOUT2_FD_MSK		GENMASK(6, 5)
 #define RV3032_CLKOUT2_OS		BIT(7)
 
-#define RV3032_CTRL1_EERD		BIT(3)
+#define RV3032_CTRL1_EERD		BIT(2)
 #define RV3032_CTRL1_WADA		BIT(5)
 
 #define RV3032_CTRL2_STOP		BIT(0)
Signature · 1 line
2.48.1
author maintainer
#1 lore raw

PATCH 2/2 rtc: rv3032: drop WADA

From: Alexandre Belloni <[email protected]>

WADA doesn't actually exist in CTRL1 of the RV-3032, drop it.

---
 drivers/rtc/rtc-rv3032.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/rtc/rtc-rv3032.c +0 -6
index cb01038a2e27..2c6a8918acba 100644
@@ -70,7 +70,6 @@
 #define RV3032_CLKOUT2_OS		BIT(7)
 
 #define RV3032_CTRL1_EERD		BIT(2)
-#define RV3032_CTRL1_WADA		BIT(5)
 
 #define RV3032_CTRL2_STOP		BIT(0)
 #define RV3032_CTRL2_EIE		BIT(2)
@@ -947,11 +946,6 @@ static int rv3032_probe(struct i2c_client *client)
 	if (!client->irq)
 		clear_bit(RTC_FEATURE_ALARM, rv3032->rtc->features);
 
-	ret = regmap_update_bits(rv3032->regmap, RV3032_CTRL1,
-				 RV3032_CTRL1_WADA, RV3032_CTRL1_WADA);
-	if (ret)
-		return ret;
-
 	rv3032_trickle_charger_setup(&client->dev, rv3032);
 
 	set_bit(RTC_FEATURE_BACKUP_SWITCH_MODE, rv3032->rtc->features);
Signature · 1 line
2.48.1