About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / devicetree / bindings / rtc / sun6i-rtc.txt


Based on kernel version 4.16.1. Page generated on 2018-04-09 11:52 EST.

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@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	};
Hide Line Numbers


About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog