xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/rtc/rtc-st-lpc.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSTMicroelectronics Low Power Controller (LPC) - RTC
2*4882a593Smuzhiyun===================================================
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunLPC currently supports Watchdog OR Real Time Clock OR Clocksource
5*4882a593Smuzhiyunfunctionality.
6*4882a593Smuzhiyun
7*4882a593Smuzhiyun[See: ../watchdog/st_lpc_wdt.txt for Watchdog options]
8*4882a593Smuzhiyun[See: ../timer/st,stih407-lpc for Clocksource options]
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunRequired properties
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun- compatible 	: Must be: "st,stih407-lpc"
13*4882a593Smuzhiyun- reg		: LPC registers base address + size
14*4882a593Smuzhiyun- interrupts    : LPC interrupt line number and associated flags
15*4882a593Smuzhiyun- clocks	: Clock used by LPC device (See: ../clock/clock-bindings.txt)
16*4882a593Smuzhiyun- st,lpc-mode	: The LPC can run either one of three modes:
17*4882a593Smuzhiyun                  ST_LPC_MODE_RTC    [0]
18*4882a593Smuzhiyun                  ST_LPC_MODE_WDT    [1]
19*4882a593Smuzhiyun                  ST_LPC_MODE_CLKSRC [2]
20*4882a593Smuzhiyun		 One (and only one) mode must be selected.
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunExample:
23*4882a593Smuzhiyun	lpc@fde05000 {
24*4882a593Smuzhiyun		compatible	= "st,stih407-lpc";
25*4882a593Smuzhiyun		reg		= <0xfde05000 0x1000>;
26*4882a593Smuzhiyun		clocks 		= <&clk_s_d3_flexgen CLK_LPC_0>;
27*4882a593Smuzhiyun		st,lpc-mode	= <ST_LPC_MODE_RTC>;
28*4882a593Smuzhiyun	};
29