From 4fe32e1f4ade07be6f3db90b741c738faab7feaf Mon Sep 17 00:00:00 2001 From: Jakub Topic Date: Mon, 17 Jun 2024 18:31:46 +0200 Subject: [PATCH] drivers: rtc: rv3028: fix RTC time mask Correct the RTC time mask to validate all supported fields. Signed-off-by: Jakub Topic --- drivers/rtc/rtc_rv3028.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc_rv3028.c b/drivers/rtc/rtc_rv3028.c index 4d1e9633091..a3c23de862b 100644 --- a/drivers/rtc/rtc_rv3028.c +++ b/drivers/rtc/rtc_rv3028.c @@ -133,7 +133,8 @@ LOG_MODULE_REGISTER(rv3028, CONFIG_RTC_LOG_LEVEL); /* RTC time fields supported by the RV3028 */ #define RV3028_RTC_TIME_MASK \ (RTC_ALARM_TIME_MASK_SECOND | RTC_ALARM_TIME_MASK_MINUTE | RTC_ALARM_TIME_MASK_HOUR | \ - RTC_ALARM_TIME_MASK_MONTH | RTC_ALARM_TIME_MASK_YEAR) + RTC_ALARM_TIME_MASK_MONTH | RTC_ALARM_TIME_MASK_MONTHDAY | RTC_ALARM_TIME_MASK_YEAR | \ + RTC_ALARM_TIME_MASK_WEEKDAY) /* Helper macro to guard int-gpios related code */ #if DT_ANY_INST_HAS_PROP_STATUS_OKAY(int_gpios) && \