Lee Jones | 5cb6974 | 2015-04-09 15:47:32 +0100 | [diff] [blame] | 1 | STMicroelectronics Low Power Controller (LPC) - RTC |
| 2 | =================================================== |
| 3 | |
Lee Jones | c74a06d | 2015-05-12 13:58:16 +0100 | [diff] [blame] | 4 | LPC currently supports Watchdog OR Real Time Clock OR Clocksource |
| 5 | functionality. |
Lee Jones | 5cb6974 | 2015-04-09 15:47:32 +0100 | [diff] [blame] | 6 | |
| 7 | [See: ../watchdog/st_lpc_wdt.txt for Watchdog options] |
Lee Jones | c74a06d | 2015-05-12 13:58:16 +0100 | [diff] [blame] | 8 | [See: ../timer/st,stih407-lpc for Clocksource options] |
Lee Jones | 5cb6974 | 2015-04-09 15:47:32 +0100 | [diff] [blame] | 9 | |
| 10 | Required properties |
| 11 | |
Lee Jones | c74a06d | 2015-05-12 13:58:16 +0100 | [diff] [blame] | 12 | - compatible : Must be: "st,stih407-lpc" |
Lee Jones | 5cb6974 | 2015-04-09 15:47:32 +0100 | [diff] [blame] | 13 | - reg : LPC registers base address + size |
| 14 | - interrupts : LPC interrupt line number and associated flags |
| 15 | - clocks : Clock used by LPC device (See: ../clock/clock-bindings.txt) |
Lee Jones | c74a06d | 2015-05-12 13:58:16 +0100 | [diff] [blame] | 16 | - st,lpc-mode : The LPC can run either one of three modes: |
| 17 | ST_LPC_MODE_RTC [0] |
| 18 | ST_LPC_MODE_WDT [1] |
| 19 | ST_LPC_MODE_CLKSRC [2] |
| 20 | One (and only one) mode must be selected. |
Lee Jones | 5cb6974 | 2015-04-09 15:47:32 +0100 | [diff] [blame] | 21 | |
| 22 | Example: |
| 23 | lpc@fde05000 { |
| 24 | compatible = "st,stih407-lpc"; |
| 25 | reg = <0xfde05000 0x1000>; |
| 26 | clocks = <&clk_s_d3_flexgen CLK_LPC_0>; |
| 27 | st,lpc-mode = <ST_LPC_MODE_RTC>; |
| 28 | }; |