xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/humidity/hts221.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* HTS221 STM humidity + temperature sensor
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: should be "st,hts221"
5*4882a593Smuzhiyun- reg: i2c address of the sensor / spi cs line
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunOptional properties:
8*4882a593Smuzhiyun- drive-open-drain: the interrupt/data ready line will be configured
9*4882a593Smuzhiyun  as open drain, which is useful if several sensors share the same
10*4882a593Smuzhiyun  interrupt line. This is a boolean property.
11*4882a593Smuzhiyun  If the requested interrupt is configured as IRQ_TYPE_LEVEL_HIGH or
12*4882a593Smuzhiyun  IRQ_TYPE_EDGE_RISING a pull-down resistor is needed to drive the line
13*4882a593Smuzhiyun  when it is not active, whereas a pull-up one is needed when interrupt
14*4882a593Smuzhiyun  line is configured as IRQ_TYPE_LEVEL_LOW or IRQ_TYPE_EDGE_FALLING.
15*4882a593Smuzhiyun  Refer to pinctrl/pinctrl-bindings.txt for the property description.
16*4882a593Smuzhiyun- interrupts: interrupt mapping for IRQ. It should be configured with
17*4882a593Smuzhiyun  flags IRQ_TYPE_LEVEL_HIGH, IRQ_TYPE_EDGE_RISING, IRQ_TYPE_LEVEL_LOW or
18*4882a593Smuzhiyun  IRQ_TYPE_EDGE_FALLING.
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun  Refer to interrupt-controller/interrupts.txt for generic interrupt
21*4882a593Smuzhiyun  client node bindings.
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunExample:
24*4882a593Smuzhiyun
25*4882a593Smuzhiyunhts221@5f {
26*4882a593Smuzhiyun	compatible = "st,hts221";
27*4882a593Smuzhiyun	reg = <0x5f>;
28*4882a593Smuzhiyun	interrupt-parent = <&gpio0>;
29*4882a593Smuzhiyun	interrupts = <0 IRQ_TYPE_EDGE_RISING>;
30*4882a593Smuzhiyun};
31