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