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