Skip to content

Commit

Permalink
drivers: rtc: Add Micro Crystal RV-8803-C7 RTC driver
Browse files Browse the repository at this point in the history
This PR adds support for Micro Crystal RV-8803-C7
RTC chip.

Supported functionalities:
* Update interrupt
* Alarm interrupt
* Time setting/reading
* Alarm setting/reading
* Aging offset calibration setting/reading
* CLKOUT configuration

Tested on nRF52833-DK using rtc_api test set.

Signed-off-by: Marcin Lyda <[email protected]>
  • Loading branch information
Lefucjusz committed Jan 9, 2025
1 parent 196fc5c commit 39c4a88
Show file tree
Hide file tree
Showing 6 changed files with 918 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/rtc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ zephyr_library_sources_ifdef(CONFIG_RTC_RV3028 rtc_rv3028.c)
zephyr_library_sources_ifdef(CONFIG_RTC_NUMAKER rtc_numaker.c)
zephyr_library_sources_ifdef(CONFIG_RTC_XMC4XXX rtc_xmc4xxx.c)
zephyr_library_sources_ifdef(CONFIG_RTC_NXP_IRTC rtc_nxp_irtc.c)
zephyr_library_sources_ifdef(CONFIG_RTC_RV8803 rtc_rv8803.c)
1 change: 1 addition & 0 deletions drivers/rtc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@ source "drivers/rtc/Kconfig.numaker"
source "drivers/rtc/Kconfig.rv8263"
source "drivers/rtc/Kconfig.xmc4xxx"
source "drivers/rtc/Kconfig.nxp_irtc"
source "drivers/rtc/Kconfig.rv8803"

endif # RTC
10 changes: 10 additions & 0 deletions drivers/rtc/Kconfig.rv8803
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) 2024 Marcin Lyda <[email protected]>
# SPDX-License-Identifier: Apache-2.0

config RTC_RV8803
bool "Micro Crystal RV8803 Extreme Low Power Real-Time Clock Module driver"
default y
depends on DT_HAS_MICROCRYSTAL_RV8803_ENABLED
select I2C
help
Enable Micro Crystal RV8803 I2C RTC driver.
Loading

0 comments on commit 39c4a88

Please sign in to comment.