Skip to content

Commit 2efc447

Browse files
jakubtopicnashif
authored andcommitted
drivers: rtc: add RV3028 RTC driver
Adds support for the Micro Crystal RV3028 RTC connected to the I2C bus. Signed-off-by: Jakub Topic <jakub.topic@anitra.cz>
1 parent 660e8f6 commit 2efc447

File tree

4 files changed

+998
-0
lines changed

4 files changed

+998
-0
lines changed

drivers/rtc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ zephyr_library_sources_ifdef(CONFIG_RTC_FAKE rtc_fake.c)
2020
zephyr_library_sources_ifdef(CONFIG_RTC_SMARTBOND rtc_smartbond.c)
2121
zephyr_library_sources_ifdef(CONFIG_RTC_ATMEL_SAM rtc_sam.c)
2222
zephyr_library_sources_ifdef(CONFIG_RTC_RPI_PICO rtc_rpi_pico.c)
23+
zephyr_library_sources_ifdef(CONFIG_RTC_RV3028 rtc_rv3028.c)
2324
zephyr_library_sources_ifdef(CONFIG_RTC_NUMAKER rtc_numaker.c)

drivers/rtc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ source "drivers/rtc/Kconfig.mc146818"
4949
source "drivers/rtc/Kconfig.pcf8523"
5050
source "drivers/rtc/Kconfig.pcf8563"
5151
source "drivers/rtc/Kconfig.rpi_pico"
52+
source "drivers/rtc/Kconfig.rv3028"
5253
source "drivers/rtc/Kconfig.sam"
5354
source "drivers/rtc/Kconfig.smartbond"
5455
source "drivers/rtc/Kconfig.stm32"

drivers/rtc/Kconfig.rv3028

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2024 ANITRA system s.r.o.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config RTC_RV3028
5+
bool "Micro Crystal RV3028 I2C extreme low power RTC driver"
6+
default y
7+
depends on DT_HAS_MICROCRYSTAL_RV3028_ENABLED
8+
select I2C
9+
help
10+
Enable the Micro Crystal RV3028 I2C RTC driver.

0 commit comments

Comments
 (0)