Skip to content

Commit e7201b9

Browse files
lukkelelekartben
authored andcommitted
drivers: rtc: add nxp pcf2123 driver
Add driver support for the NXP PCF2123 RTC. Signed-off-by: Lukas Gunnarsson <[email protected]>
1 parent 5a94a1c commit e7201b9

File tree

5 files changed

+711
-0
lines changed

5 files changed

+711
-0
lines changed

drivers/rtc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ zephyr_library_sources_ifdef(CONFIG_RTC_DS3231 rtc_ds3231.c)
1515
zephyr_library_sources_ifdef(CONFIG_USERSPACE rtc_handlers.c)
1616
zephyr_library_sources_ifdef(CONFIG_RTC_EMUL rtc_emul.c)
1717
zephyr_library_sources_ifdef(CONFIG_RTC_INFINEON_CAT1 rtc_ifx_cat1.c)
18+
zephyr_library_sources_ifdef(CONFIG_RTC_PCF2123 rtc_pcf2123.c)
1819
zephyr_library_sources_ifdef(CONFIG_RTC_PCF8523 rtc_pcf8523.c)
1920
zephyr_library_sources_ifdef(CONFIG_RTC_PCF8563 rtc_pcf8563.c)
2021
zephyr_library_sources_ifdef(CONFIG_RTC_MOTOROLA_MC146818 rtc_mc146818.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.emul"
4949
source "drivers/rtc/Kconfig.fake"
5050
source "drivers/rtc/Kconfig.ifx_cat1"
5151
source "drivers/rtc/Kconfig.mc146818"
52+
source "drivers/rtc/Kconfig.pcf2123"
5253
source "drivers/rtc/Kconfig.pcf8523"
5354
source "drivers/rtc/Kconfig.pcf8563"
5455
source "drivers/rtc/Kconfig.rpi_pico"

drivers/rtc/Kconfig.pcf2123

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2025 Lukas Gunnarsson <[email protected]>
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config RTC_PCF2123
5+
bool "NXP PCF2123 Real-Time Clock driver"
6+
default y
7+
depends on DT_HAS_NXP_PCF2123_ENABLED
8+
select SPI
9+
help
10+
Enable NXP PCF2123 SPI RTC driver.

0 commit comments

Comments
 (0)