Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / iio / humidity / hts221.txt
1 * HTS221 STM humidity + temperature sensor
2
3 Required properties:
4 - compatible: should be "st,hts221"
5 - reg: i2c address of the sensor / spi cs line
6
7 Optional 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 - interrupt-parent: should be the phandle for the interrupt controller
17 - interrupts: interrupt mapping for IRQ. It should be configured with
18   flags IRQ_TYPE_LEVEL_HIGH, IRQ_TYPE_EDGE_RISING, IRQ_TYPE_LEVEL_LOW or
19   IRQ_TYPE_EDGE_FALLING.
20
21   Refer to interrupt-controller/interrupts.txt for generic interrupt
22   client node bindings.
23
24 Example:
25
26 hts221@5f {
27         compatible = "st,hts221";
28         reg = <0x5f>;
29         interrupt-parent = <&gpio0>;
30         interrupts = <0 IRQ_TYPE_EDGE_RISING>;
31 };