Skip to content

Commit 70d90de

Browse files
balanakvHarini T
authored andcommitted
dts: Add device tree support for RTC
Add rtc0 node to zynqmp.dtsi to enable RTC support. Introduce alarms-count parameter to support alarm test cases. This parameter is added to the Device Tree so test cases can read its value and use it during testing. The IP supports only a single alarm count. Signed-off-by: Balanakakamal V <[email protected]> Signed-off-by: Harini T <[email protected]>
1 parent e6b39a7 commit 70d90de

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

dts/arm/xilinx/zynqmp.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,16 @@
9797
reg = <0xff140000 0x1000>;
9898
};
9999

100+
rtc0: rtc@ffa60000 {
101+
compatible = "xlnx,zynqmp-rtc";
102+
status = "disabled";
103+
reg = <0xffa60000 0x100>;
104+
interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>,
105+
<GIC_SPI 27 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
106+
interrupt-names = "alarm", "sec";
107+
alarms-count = <1>;
108+
};
109+
100110
gem0: ethernet@ff0b0000 {
101111
compatible = "xlnx,gem";
102112
reg = <0xff0b0000 0x1000>,

0 commit comments

Comments
 (0)