^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) TI Real Time Clock
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) - compatible:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) - "ti,da830-rtc" - for RTC IP used similar to that on DA8xx SoC family.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) - "ti,am3352-rtc" - for RTC IP used similar to that on AM335x SoC family.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) This RTC IP has special WAKE-EN Register to enable
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) Wakeup generation for event Alarm. It can also be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) used to control an external PMIC via the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) pmic_power_en pin.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) - "ti,am4372-rtc" - for RTC IP used similar to that on AM437X SoC family.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) - reg: Address range of rtc register set
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) - interrupts: rtc timer, alarm interrupts in order
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Optional properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) - system-power-controller: whether the rtc is controlling the system power
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) through pmic_power_en
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) - clocks: Any internal or external clocks feeding in to rtc
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) - clock-names: Corresponding names of the clocks
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) - pinctrl-0: a phandle pointing to the pin settings for the device
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) - pinctrl-names: should be "default"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) Optional subnodes:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) - generic pinctrl node
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) Required pinctrl subnodes properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) - pins - Names of ext_wakeup pins to configure
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) Optional pinctrl subnodes properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) - input-enable - Enables ext_wakeup
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) - ti,active-high - Set input active high (by default active low)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) Example:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) rtc@1c23000 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) compatible = "ti,da830-rtc";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) reg = <0x23000 0x1000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) interrupts = <19
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 19>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) interrupt-parent = <&intc>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) system-power-controller;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) clocks = <&clk_32k_rtc>, <&clk_32768_ck>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) clock-names = "ext-clk", "int-clk";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) pinctrl-0 = <&ext_wakeup>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) pinctrl-names = "default";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) ext_wakeup: ext-wakeup {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) pins = "ext_wakeup0";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) input-enable;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) ti,active-high;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) };