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