Skip to content

Commit 32960c9

Browse files
balanakvHarini T
authored andcommitted
drivers: rtc: Add support for Xilinx RTC controller
Add driver support for Xilinx RTC controller. The supported features include: - Set and get time using Zephyr time conversion functions. - Configuring and handling alarms using interrupt-based callbacks. - Querying and updating alarm time and supported alarm fields. - Detecting alarm triggers and monitoring pending alarm status. - RTC calibration using coarse and fine offset adjustments. Alarm and calibration features are conditionally compiled using the CONFIG_RTC_ALARM and CONFIG_RTC_CALIBRATION options. Signed-off-by: Balanakakamal V <[email protected]> Signed-off-by: Harini T <[email protected]>
1 parent 46304a1 commit 32960c9

File tree

5 files changed

+487
-0
lines changed

5 files changed

+487
-0
lines changed

drivers/rtc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ zephyr_library_sources_ifdef(CONFIG_RTC_SILABS_SIWX91X rtc_silabs_siwx91x.c)
3838
zephyr_library_sources_ifdef(CONFIG_RTC_SMARTBOND rtc_smartbond.c)
3939
zephyr_library_sources_ifdef(CONFIG_RTC_STM32 rtc_ll_stm32.c)
4040
zephyr_library_sources_ifdef(CONFIG_RTC_TI_MSPM0 rtc_ti_mspm0.c)
41+
zephyr_library_sources_ifdef(CONFIG_RTC_XLNX rtc_xlnx.c)
4142
zephyr_library_sources_ifdef(CONFIG_RTC_XMC4XXX rtc_xmc4xxx.c)
4243
# zephyr-keep-sorted-stop

drivers/rtc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ source "drivers/rtc/Kconfig.siwx91x"
7070
source "drivers/rtc/Kconfig.smartbond"
7171
source "drivers/rtc/Kconfig.stm32"
7272
source "drivers/rtc/Kconfig.ti_mspm0"
73+
source "drivers/rtc/Kconfig.xlnx"
7374
source "drivers/rtc/Kconfig.xmc4xxx"
7475
# zephyr-keep-sorted-stop
7576

drivers/rtc/Kconfig.xlnx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2025 Advanced Micro Devices, Inc. (AMD)
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config RTC_XLNX
5+
bool "XLNX RTC driver"
6+
default y
7+
help
8+
Enable the XILINX RTC driver

0 commit comments

Comments
 (0)