xref: /freebsd-src/sys/contrib/device-tree/Bindings/rtc/cdns,rtc.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotCadence Real Time Clock
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThe Cadence RTC controller with date, time and alarm capabilities.
4*c66ec88fSEmmanuel VadotThe alarm may wake the system from low-power state.
5*c66ec88fSEmmanuel Vadot
6*c66ec88fSEmmanuel VadotRequired properties:
7*c66ec88fSEmmanuel Vadot- compatible: Should be "cdns,rtc-r109v3"
8*c66ec88fSEmmanuel Vadot- reg: Specifies base physical address and size of the register area.
9*c66ec88fSEmmanuel Vadot- interrupts: A single interrupt specifier.
10*c66ec88fSEmmanuel Vadot- clocks: Must contain two entries:
11*c66ec88fSEmmanuel Vadot	- pclk: APB registers clock
12*c66ec88fSEmmanuel Vadot	- ref_clk: reference 1Hz or 100Hz clock, depending on IP configuration
13*c66ec88fSEmmanuel Vadot	See ../clocks/clock-bindings.txt for details.
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel VadotExample:
16*c66ec88fSEmmanuel Vadot        rtc0: rtc@fd080000 {
17*c66ec88fSEmmanuel Vadot        	compatible = "cdns,rtc-r109v3";
18*c66ec88fSEmmanuel Vadot        	reg = <0xfd080000 0x1000>;
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel Vadot        	clock-names = "pclk", "ref_clk";
21*c66ec88fSEmmanuel Vadot        	clocks = <&sysclock>, <&refclock>;
22*c66ec88fSEmmanuel Vadot
23*c66ec88fSEmmanuel Vadot        	interrupt-parent = <&gic>;
24*c66ec88fSEmmanuel Vadot        	interrupts = <0 6 IRQ_TYPE_LEVEL_HIGH>;
25*c66ec88fSEmmanuel Vadot        };
26