1*5def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*5def4c47SEmmanuel Vadot%YAML 1.2 3*5def4c47SEmmanuel Vadot--- 4*5def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/humidity/st,hts221.yaml# 5*5def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*5def4c47SEmmanuel Vadot 7*5def4c47SEmmanuel Vadottitle: HTS221 STM humidity + temperature sensor 8*5def4c47SEmmanuel Vadot 9*5def4c47SEmmanuel Vadotmaintainers: 10*5def4c47SEmmanuel Vadot - Lorenzo Bianconi <lorenzo@kernel.org> 11*5def4c47SEmmanuel Vadot 12*5def4c47SEmmanuel Vadotdescription: | 13*5def4c47SEmmanuel Vadot Humidity and temperature sensor with I2C interface and data ready 14*5def4c47SEmmanuel Vadot interrupt. 15*5def4c47SEmmanuel Vadot 16*5def4c47SEmmanuel Vadotproperties: 17*5def4c47SEmmanuel Vadot compatible: 18*5def4c47SEmmanuel Vadot const: st,hts221 19*5def4c47SEmmanuel Vadot 20*5def4c47SEmmanuel Vadot reg: 21*5def4c47SEmmanuel Vadot maxItems: 1 22*5def4c47SEmmanuel Vadot 23*5def4c47SEmmanuel Vadot drive-open-drain: 24*5def4c47SEmmanuel Vadot type: boolean 25*5def4c47SEmmanuel Vadot description: 26*5def4c47SEmmanuel Vadot The interrupt/data ready line will be configured as open drain, which 27*5def4c47SEmmanuel Vadot is useful if several sensors share the same interrupt line. 28*5def4c47SEmmanuel Vadot 29*5def4c47SEmmanuel Vadot vdd-supply: true 30*5def4c47SEmmanuel Vadot 31*5def4c47SEmmanuel Vadot interrupts: 32*5def4c47SEmmanuel Vadot maxItems: 1 33*5def4c47SEmmanuel Vadot 34*5def4c47SEmmanuel Vadotrequired: 35*5def4c47SEmmanuel Vadot - compatible 36*5def4c47SEmmanuel Vadot - reg 37*5def4c47SEmmanuel Vadot 38*5def4c47SEmmanuel VadotadditionalProperties: false 39*5def4c47SEmmanuel Vadot 40*5def4c47SEmmanuel Vadotexamples: 41*5def4c47SEmmanuel Vadot - | 42*5def4c47SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 43*5def4c47SEmmanuel Vadot i2c { 44*5def4c47SEmmanuel Vadot #address-cells = <1>; 45*5def4c47SEmmanuel Vadot #size-cells = <0>; 46*5def4c47SEmmanuel Vadot 47*5def4c47SEmmanuel Vadot hts221@5f { 48*5def4c47SEmmanuel Vadot compatible = "st,hts221"; 49*5def4c47SEmmanuel Vadot reg = <0x5f>; 50*5def4c47SEmmanuel Vadot interrupt-parent = <&gpio0>; 51*5def4c47SEmmanuel Vadot interrupts = <0 IRQ_TYPE_EDGE_RISING>; 52*5def4c47SEmmanuel Vadot }; 53*5def4c47SEmmanuel Vadot }; 54*5def4c47SEmmanuel Vadot... 55