]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - Documentation/devicetree/bindings/rtc/sun6i-rtc.txt
Merge tag 'leds_for_4.15rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anasz...
[mirror_ubuntu-bionic-kernel.git] / Documentation / devicetree / bindings / rtc / sun6i-rtc.txt
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
11 Required 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
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>;
24 clock-output-names = "osc32k", "osc32k-out";
25 clocks = <&ext_osc32k>;
26 #clock-cells = <1>;
27 };