xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/rtc/rtc-meson.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Amlogic Meson6, Meson8, Meson8b and Meson8m2 RTC
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: should be one of the following describing the hardware:
5*4882a593Smuzhiyun	* "amlogic,meson6-rtc"
6*4882a593Smuzhiyun	* "amlogic,meson8-rtc"
7*4882a593Smuzhiyun	* "amlogic,meson8b-rtc"
8*4882a593Smuzhiyun	* "amlogic,meson8m2-rtc"
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun- reg: physical register space for the controller's memory mapped registers.
11*4882a593Smuzhiyun- interrupts: the interrupt line of the RTC block.
12*4882a593Smuzhiyun- clocks: reference to the external 32.768kHz crystal oscillator.
13*4882a593Smuzhiyun- vdd-supply: reference to the power supply of the RTC block.
14*4882a593Smuzhiyun- resets: reset controller reference to allow reset of the controller
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunOptional properties for the battery-backed non-volatile memory:
17*4882a593Smuzhiyun- #address-cells: should be 1 to address the battery-backed non-volatile memory
18*4882a593Smuzhiyun- #size-cells: should be 1 to reference the battery-backed non-volatile memory
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunOptional child nodes:
21*4882a593Smuzhiyun- see ../nvmem/nvmem.txt
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunExample:
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun	rtc: rtc@740 {
26*4882a593Smuzhiyun		compatible = "amlogic,meson6-rtc";
27*4882a593Smuzhiyun		reg = <0x740 0x14>;
28*4882a593Smuzhiyun		interrupts = <GIC_SPI 72 IRQ_TYPE_EDGE_RISING>;
29*4882a593Smuzhiyun		clocks = <&rtc32k_xtal>;
30*4882a593Smuzhiyun		vdd-supply = <&rtc_vdd>;
31*4882a593Smuzhiyun		resets = <&reset RESET_RTC>;
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun		#address-cells = <1>;
34*4882a593Smuzhiyun		#size-cells = <1>;
35*4882a593Smuzhiyun	};
36