xref: /freebsd/sys/contrib/device-tree/Bindings/rtc/isil,isl1208.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotIntersil ISL1209/19 I2C RTC/Alarm chip with event in
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotISL12X9 have additional pins EVIN and #EVDET for tamper detection, while the
4*c66ec88fSEmmanuel VadotISL1208 and ISL1218 do not.  They are all use the same driver with the bindings
5*c66ec88fSEmmanuel Vadotdescribed here, with chip specific properties as noted.
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel VadotRequired properties supported by the device:
8*c66ec88fSEmmanuel Vadot - "compatible": Should be one of the following:
9*c66ec88fSEmmanuel Vadot		- "isil,isl1208"
10*c66ec88fSEmmanuel Vadot		- "isil,isl1209"
11*c66ec88fSEmmanuel Vadot		- "isil,isl1218"
12*c66ec88fSEmmanuel Vadot		- "isil,isl1219"
13*c66ec88fSEmmanuel Vadot - "reg": I2C bus address of the device
14*c66ec88fSEmmanuel Vadot
15*c66ec88fSEmmanuel VadotOptional properties:
16*c66ec88fSEmmanuel Vadot - "interrupt-names": list which may contains "irq" and "evdet"
17*c66ec88fSEmmanuel Vadot	evdet applies to isl1209 and isl1219 only
18*c66ec88fSEmmanuel Vadot - "interrupts": list of interrupts for "irq" and "evdet"
19*c66ec88fSEmmanuel Vadot	evdet applies to isl1209 and isl1219 only
20*c66ec88fSEmmanuel Vadot - "isil,ev-evienb": Enable or disable internal pull on EVIN pin
21*c66ec88fSEmmanuel Vadot	Applies to isl1209 and isl1219 only
22*c66ec88fSEmmanuel Vadot	Possible values are 0 and 1
23*c66ec88fSEmmanuel Vadot	Value 0 enables internal pull-up on evin pin, 1 disables it.
24*c66ec88fSEmmanuel Vadot	Default will leave the non-volatile configuration of the pullup
25*c66ec88fSEmmanuel Vadot	as is.
26*c66ec88fSEmmanuel Vadot
27*c66ec88fSEmmanuel VadotExample isl1219 node with #IRQ pin connected to SoC gpio1 pin12 and #EVDET pin
28*c66ec88fSEmmanuel Vadotconnected to SoC gpio2 pin 24 and internal pull-up enabled in EVIN pin.
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel Vadot	isl1219: rtc@68 {
31*c66ec88fSEmmanuel Vadot		compatible = "isil,isl1219";
32*c66ec88fSEmmanuel Vadot		reg = <0x68>;
33*c66ec88fSEmmanuel Vadot		interrupt-names = "irq", "evdet";
34*c66ec88fSEmmanuel Vadot		interrupts-extended = <&gpio1 12 IRQ_TYPE_EDGE_FALLING>,
35*c66ec88fSEmmanuel Vadot			<&gpio2 24 IRQ_TYPE_EDGE_FALLING>;
36*c66ec88fSEmmanuel Vadot		isil,ev-evienb = <1>;
37*c66ec88fSEmmanuel Vadot	};
38*c66ec88fSEmmanuel Vadot
39