• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1* sun6i Real Time Clock
2
3RTC controller for the Allwinner A31
4
5Required properties:
6- compatible	: Should be "allwinner,sun6i-a31-rtc"
7- reg		: physical base address of the controller and length of
8		  memory mapped region.
9- interrupts	: IRQ lines for the RTC alarm 0 and alarm 1, in that order.
10
11Required properties for new device trees
12- clocks	: phandle to the 32kHz external oscillator
13- clock-output-names : names of the LOSC and its external output clocks created
14- #clock-cells  : must be equals to 1. The RTC provides two clocks: the
15		  LOSC and its external output, with index 0 and 1
16		  respectively.
17
18Example:
19
20rtc: rtc@1f00000 {
21	compatible = "allwinner,sun6i-a31-rtc";
22	reg = <0x01f00000 0x54>;
23	interrupts = <0 40 4>, <0 41 4>;
24	clock-output-names = "osc32k", "osc32k-out";
25	clocks = <&ext_osc32k>;
26	#clock-cells = <1>;
27};
28