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