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