xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/rtc/rtc-mt7622.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunDevice-Tree bindings for MediaTek SoC based RTC
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible	    : Should be
5*4882a593Smuzhiyun			"mediatek,mt7622-rtc", "mediatek,soc-rtc" : for MT7622 SoC
6*4882a593Smuzhiyun- reg 		    : Specifies base physical address and size of the registers;
7*4882a593Smuzhiyun- interrupts	    : Should contain the interrupt for RTC alarm;
8*4882a593Smuzhiyun- clocks	    : Specifies list of clock specifiers, corresponding to
9*4882a593Smuzhiyun		      entries in clock-names property;
10*4882a593Smuzhiyun- clock-names	    : Should contain "rtc" entries
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunExample:
13*4882a593Smuzhiyun
14*4882a593Smuzhiyunrtc: rtc@10212800 {
15*4882a593Smuzhiyun	compatible = "mediatek,mt7622-rtc",
16*4882a593Smuzhiyun		     "mediatek,soc-rtc";
17*4882a593Smuzhiyun	reg = <0 0x10212800 0 0x200>;
18*4882a593Smuzhiyun	interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_LOW>;
19*4882a593Smuzhiyun	clocks = <&topckgen CLK_TOP_RTC>;
20*4882a593Smuzhiyun	clock-names = "rtc";
21*4882a593Smuzhiyun};
22