blob: bee41f97044e11606bc451c8fa29b0b49c2b202a [file] [log] [blame]
Afzal Mohammed9e0344d2012-12-17 16:02:15 -08001TI Real Time Clock
2
3Required properties:
Hebbar Gururaja8af750e2013-09-11 14:24:18 -07004- compatible:
5 - "ti,da830-rtc" - for RTC IP used similar to that on DA8xx SoC family.
6 - "ti,am3352-rtc" - for RTC IP used similar to that on AM335x SoC family.
7 This RTC IP has special WAKE-EN Register to enable
Johan Hovold222a12f2014-12-10 15:53:13 -08008 Wakeup generation for event Alarm. It can also be
9 used to control an external PMIC via the
10 pmic_power_en pin.
Keerthy05743b32015-08-07 10:37:19 +053011 - "ti,am4372-rtc" - for RTC IP used similar to that on AM437X SoC family.
Afzal Mohammed9e0344d2012-12-17 16:02:15 -080012- reg: Address range of rtc register set
13- interrupts: rtc timer, alarm interrupts in order
14- interrupt-parent: phandle for the interrupt controller
15
Johan Hovold222a12f2014-12-10 15:53:13 -080016Optional properties:
Johan Hovold094d3ee2014-12-10 15:54:14 -080017- system-power-controller: whether the rtc is controlling the system power
Johan Hovold222a12f2014-12-10 15:53:13 -080018 through pmic_power_en
Keerthyfff51e72015-08-18 15:11:14 +053019- clocks: Any internal or external clocks feeding in to rtc
20- clock-names: Corresponding names of the clocks
Marcin Niestroj97ea1902016-09-16 11:26:28 +020021- pinctrl-0: a phandle pointing to the pin settings for the device
22- pinctrl-names: should be "default"
23
24Optional subnodes:
25- generic pinctrl node
26
27Required pinctrl subnodes properties:
28- pins - Names of ext_wakeup pins to configure
29
30Optional pinctrl subnodes properties:
31- input-enable - Enables ext_wakeup
32- ti,active-high - Set input active high (by default active low)
Johan Hovold222a12f2014-12-10 15:53:13 -080033
Afzal Mohammed9e0344d2012-12-17 16:02:15 -080034Example:
35
36rtc@1c23000 {
37 compatible = "ti,da830-rtc";
38 reg = <0x23000 0x1000>;
39 interrupts = <19
40 19>;
41 interrupt-parent = <&intc>;
Johan Hovold094d3ee2014-12-10 15:54:14 -080042 system-power-controller;
Keerthyfff51e72015-08-18 15:11:14 +053043 clocks = <&clk_32k_rtc>, <&clk_32768_ck>;
44 clock-names = "ext-clk", "int-clk";
Marcin Niestroj97ea1902016-09-16 11:26:28 +020045
46 pinctrl-0 = <&ext_wakeup>;
47 pinctrl-names = "default";
48
49 ext_wakeup: ext-wakeup {
50 pins = "ext_wakeup0";
51 input-enable;
52 ti,active-high;
53 };
Afzal Mohammed9e0344d2012-12-17 16:02:15 -080054};