2012-12-18 08:02:15 +08:00
|
|
|
TI Real Time Clock
|
|
|
|
|
|
|
|
Required properties:
|
2013-09-12 05:24:18 +08:00
|
|
|
- compatible:
|
|
|
|
- "ti,da830-rtc" - for RTC IP used similar to that on DA8xx SoC family.
|
|
|
|
- "ti,am3352-rtc" - for RTC IP used similar to that on AM335x SoC family.
|
|
|
|
This RTC IP has special WAKE-EN Register to enable
|
2014-12-11 07:53:13 +08:00
|
|
|
Wakeup generation for event Alarm. It can also be
|
|
|
|
used to control an external PMIC via the
|
|
|
|
pmic_power_en pin.
|
2015-08-07 13:07:19 +08:00
|
|
|
- "ti,am4372-rtc" - for RTC IP used similar to that on AM437X SoC family.
|
2012-12-18 08:02:15 +08:00
|
|
|
- reg: Address range of rtc register set
|
|
|
|
- interrupts: rtc timer, alarm interrupts in order
|
|
|
|
- interrupt-parent: phandle for the interrupt controller
|
|
|
|
|
2014-12-11 07:53:13 +08:00
|
|
|
Optional properties:
|
2014-12-11 07:54:14 +08:00
|
|
|
- system-power-controller: whether the rtc is controlling the system power
|
2014-12-11 07:53:13 +08:00
|
|
|
through pmic_power_en
|
2015-08-18 17:41:14 +08:00
|
|
|
- clocks: Any internal or external clocks feeding in to rtc
|
|
|
|
- clock-names: Corresponding names of the clocks
|
2016-09-16 17:26:28 +08:00
|
|
|
- pinctrl-0: a phandle pointing to the pin settings for the device
|
|
|
|
- pinctrl-names: should be "default"
|
|
|
|
|
|
|
|
Optional subnodes:
|
|
|
|
- generic pinctrl node
|
|
|
|
|
|
|
|
Required pinctrl subnodes properties:
|
|
|
|
- pins - Names of ext_wakeup pins to configure
|
|
|
|
|
|
|
|
Optional pinctrl subnodes properties:
|
|
|
|
- input-enable - Enables ext_wakeup
|
|
|
|
- ti,active-high - Set input active high (by default active low)
|
2014-12-11 07:53:13 +08:00
|
|
|
|
2012-12-18 08:02:15 +08:00
|
|
|
Example:
|
|
|
|
|
|
|
|
rtc@1c23000 {
|
|
|
|
compatible = "ti,da830-rtc";
|
|
|
|
reg = <0x23000 0x1000>;
|
|
|
|
interrupts = <19
|
|
|
|
19>;
|
|
|
|
interrupt-parent = <&intc>;
|
2014-12-11 07:54:14 +08:00
|
|
|
system-power-controller;
|
2015-08-18 17:41:14 +08:00
|
|
|
clocks = <&clk_32k_rtc>, <&clk_32768_ck>;
|
|
|
|
clock-names = "ext-clk", "int-clk";
|
2016-09-16 17:26:28 +08:00
|
|
|
|
|
|
|
pinctrl-0 = <&ext_wakeup>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
|
|
|
|
ext_wakeup: ext-wakeup {
|
|
|
|
pins = "ext_wakeup0";
|
|
|
|
input-enable;
|
|
|
|
ti,active-high;
|
|
|
|
};
|
2012-12-18 08:02:15 +08:00
|
|
|
};
|