Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions boards/amd/kv260_r5/kv260_r5.dts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
aliases {
eeprom-0 = &eeprom0;
eeprom-1 = &eeprom1;
rtc = &rtc0;
};

i2c_ref_clk: i2c-ref-clk {
Expand All @@ -52,6 +53,11 @@
status = "okay";
};

&rtc0 {
status = "okay";
clock-frequency = <32767>;
};

&i2c1 {
status = "okay";
clocks = <&i2c_ref_clk>;
Expand Down
1 change: 1 addition & 0 deletions boards/amd/kv260_r5/kv260_r5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ supported:
- i2c
- eeprom
- gpio
- rtc
testing:
ignore_tags:
- net
Expand Down
4 changes: 4 additions & 0 deletions boards/amd/kv260_r5/kv260_r5_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,9 @@ CONFIG_UART_XLNX_PS=y
CONFIG_I2C=y
CONFIG_EEPROM=y

# Enable ALARM, CALIBRATION
CONFIG_RTC_ALARM=y
CONFIG_RTC_CALIBRATION=y

CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
CONFIG_ARM_MPU=y
1 change: 1 addition & 0 deletions drivers/rtc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ zephyr_library_sources_ifdef(CONFIG_RTC_SILABS_SIWX91X rtc_silabs_siwx91x.c)
zephyr_library_sources_ifdef(CONFIG_RTC_SMARTBOND rtc_smartbond.c)
zephyr_library_sources_ifdef(CONFIG_RTC_STM32 rtc_ll_stm32.c)
zephyr_library_sources_ifdef(CONFIG_RTC_TI_MSPM0 rtc_ti_mspm0.c)
zephyr_library_sources_ifdef(CONFIG_RTC_XLNX rtc_xlnx.c)
zephyr_library_sources_ifdef(CONFIG_RTC_XMC4XXX rtc_xmc4xxx.c)
# zephyr-keep-sorted-stop
1 change: 1 addition & 0 deletions drivers/rtc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ source "drivers/rtc/Kconfig.siwx91x"
source "drivers/rtc/Kconfig.smartbond"
source "drivers/rtc/Kconfig.stm32"
source "drivers/rtc/Kconfig.ti_mspm0"
source "drivers/rtc/Kconfig.xlnx"
source "drivers/rtc/Kconfig.xmc4xxx"
# zephyr-keep-sorted-stop

Expand Down
9 changes: 9 additions & 0 deletions drivers/rtc/Kconfig.xlnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2025 Advanced Micro Devices, Inc. (AMD)
# SPDX-License-Identifier: Apache-2.0

config RTC_XLNX
bool "XLNX RTC driver"
default y
depends on DT_HAS_XLNX_ZYNQMP_RTC_ENABLED
help
Enable the XILINX RTC driver
Loading