Skip to content

Commit 4703145

Browse files
balanakvHarini T
authored andcommitted
boards: amd: kv260_r5: Enable RTC node
Add support for RTC in kv260_r5. Update kv260_r5_defconfig to enable RTC alarm and calibration support in the rtc_api test. Signed-off-by: Balanakakamal V <[email protected]> Signed-off-by: Harini T <[email protected]>
1 parent 70d90de commit 4703145

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

boards/amd/kv260_r5/kv260_r5.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
aliases {
2929
eeprom-0 = &eeprom0;
3030
eeprom-1 = &eeprom1;
31+
rtc = &rtc0;
3132
};
3233

3334
i2c_ref_clk: i2c-ref-clk {
@@ -52,6 +53,11 @@
5253
status = "okay";
5354
};
5455

56+
&rtc0 {
57+
status = "okay";
58+
clock-frequency = <32767>;
59+
};
60+
5561
&i2c1 {
5662
status = "okay";
5763
clocks = <&i2c_ref_clk>;

boards/amd/kv260_r5/kv260_r5.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ supported:
99
- i2c
1010
- eeprom
1111
- gpio
12+
- rtc
1213
testing:
1314
ignore_tags:
1415
- net

boards/amd/kv260_r5/kv260_r5_defconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,9 @@ CONFIG_UART_XLNX_PS=y
1717
CONFIG_I2C=y
1818
CONFIG_EEPROM=y
1919

20+
# Enable ALARM, CALIBRATION
21+
CONFIG_RTC_ALARM=y
22+
CONFIG_RTC_CALIBRATION=y
23+
2024
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
2125
CONFIG_ARM_MPU=y

0 commit comments

Comments
 (0)