18c2ecf20Sopenharmony_ciTI Real Time Clock
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciRequired properties:
48c2ecf20Sopenharmony_ci- compatible:
58c2ecf20Sopenharmony_ci	- "ti,da830-rtc"  - for RTC IP used similar to that on DA8xx SoC family.
68c2ecf20Sopenharmony_ci	- "ti,am3352-rtc" - for RTC IP used similar to that on AM335x SoC family.
78c2ecf20Sopenharmony_ci			    This RTC IP has special WAKE-EN Register to enable
88c2ecf20Sopenharmony_ci			    Wakeup generation for event Alarm. It can also be
98c2ecf20Sopenharmony_ci			    used to control an external PMIC via the
108c2ecf20Sopenharmony_ci			    pmic_power_en pin.
118c2ecf20Sopenharmony_ci	- "ti,am4372-rtc" - for RTC IP used similar to that on AM437X SoC family.
128c2ecf20Sopenharmony_ci- reg: Address range of rtc register set
138c2ecf20Sopenharmony_ci- interrupts: rtc timer, alarm interrupts in order
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciOptional properties:
168c2ecf20Sopenharmony_ci- system-power-controller: whether the rtc is controlling the system power
178c2ecf20Sopenharmony_ci  through pmic_power_en
188c2ecf20Sopenharmony_ci- clocks: Any internal or external clocks feeding in to rtc
198c2ecf20Sopenharmony_ci- clock-names: Corresponding names of the clocks
208c2ecf20Sopenharmony_ci- pinctrl-0: a phandle pointing to the pin settings for the device
218c2ecf20Sopenharmony_ci- pinctrl-names: should be "default"
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciOptional subnodes:
248c2ecf20Sopenharmony_ci- generic pinctrl node
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ciRequired pinctrl subnodes properties:
278c2ecf20Sopenharmony_ci- pins - Names of ext_wakeup pins to configure
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ciOptional pinctrl subnodes properties:
308c2ecf20Sopenharmony_ci- input-enable - Enables ext_wakeup
318c2ecf20Sopenharmony_ci- ti,active-high - Set input active high (by default active low)
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ciExample:
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_cirtc@1c23000 {
368c2ecf20Sopenharmony_ci	compatible = "ti,da830-rtc";
378c2ecf20Sopenharmony_ci	reg = <0x23000 0x1000>;
388c2ecf20Sopenharmony_ci	interrupts = <19
398c2ecf20Sopenharmony_ci		      19>;
408c2ecf20Sopenharmony_ci	interrupt-parent = <&intc>;
418c2ecf20Sopenharmony_ci	system-power-controller;
428c2ecf20Sopenharmony_ci	clocks = <&clk_32k_rtc>, <&clk_32768_ck>;
438c2ecf20Sopenharmony_ci	clock-names = "ext-clk", "int-clk";
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci	pinctrl-0 = <&ext_wakeup>;
468c2ecf20Sopenharmony_ci	pinctrl-names = "default";
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ci	ext_wakeup: ext-wakeup {
498c2ecf20Sopenharmony_ci		pins = "ext_wakeup0";
508c2ecf20Sopenharmony_ci		input-enable;
518c2ecf20Sopenharmony_ci		ti,active-high;
528c2ecf20Sopenharmony_ci	};
538c2ecf20Sopenharmony_ci};
54