xref: /freebsd-src/sys/contrib/device-tree/Bindings/rtc/xgene-rtc.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* APM X-Gene Real Time Clock
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRTC controller for the APM X-Gene Real Time Clock
4*c66ec88fSEmmanuel Vadot
5*c66ec88fSEmmanuel VadotRequired properties:
6*c66ec88fSEmmanuel Vadot- compatible : Should be "apm,xgene-rtc"
7*c66ec88fSEmmanuel Vadot- reg: physical base address of the controller and length of memory mapped
8*c66ec88fSEmmanuel Vadot  region.
9*c66ec88fSEmmanuel Vadot- interrupts: IRQ line for the RTC.
10*c66ec88fSEmmanuel Vadot- #clock-cells: Should be 1.
11*c66ec88fSEmmanuel Vadot- clocks: Reference to the clock entry.
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel VadotExample:
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel Vadotrtcclk: rtcclk {
16*c66ec88fSEmmanuel Vadot	compatible = "fixed-clock";
17*c66ec88fSEmmanuel Vadot	#clock-cells = <1>;
18*c66ec88fSEmmanuel Vadot	clock-frequency = <100000000>;
19*c66ec88fSEmmanuel Vadot	clock-output-names = "rtcclk";
20*c66ec88fSEmmanuel Vadot};
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel Vadotrtc: rtc@10510000 {
23*c66ec88fSEmmanuel Vadot	compatible = "apm,xgene-rtc";
24*c66ec88fSEmmanuel Vadot	reg = <0x0 0x10510000 0x0 0x400>;
25*c66ec88fSEmmanuel Vadot	interrupts = <0x0 0x46 0x4>;
26*c66ec88fSEmmanuel Vadot	#clock-cells = <1>;
27*c66ec88fSEmmanuel Vadot	clocks = <&rtcclk 0>;
28*c66ec88fSEmmanuel Vadot};
29