]>
Commit | Line | Data |
---|---|---|
9765d2d9 CYT |
1 | * sun6i Real Time Clock |
2 | ||
3 | RTC controller for the Allwinner A31 | |
4 | ||
5 | Required 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 | ||
3855c2c3 MR |
11 | Required properties for new device trees |
12 | - clocks : phandle to the 32kHz external oscillator | |
17ecd246 | 13 | - clock-output-names : names of the LOSC and its external output clocks created |
3855c2c3 MR |
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 | ||
9765d2d9 CYT |
18 | Example: |
19 | ||
20 | rtc: rtc@01f00000 { | |
21 | compatible = "allwinner,sun6i-a31-rtc"; | |
22 | reg = <0x01f00000 0x54>; | |
23 | interrupts = <0 40 4>, <0 41 4>; | |
17ecd246 | 24 | clock-output-names = "osc32k", "osc32k-out"; |
3855c2c3 MR |
25 | clocks = <&ext_osc32k>; |
26 | #clock-cells = <1>; | |
9765d2d9 | 27 | }; |