0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/humidity/st,hts221.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: HTS221 STM humidity + temperature sensor
0008
0009 maintainers:
0010 - Lorenzo Bianconi <lorenzo@kernel.org>
0011
0012 description: |
0013 Humidity and temperature sensor with I2C interface and data ready
0014 interrupt.
0015
0016 properties:
0017 compatible:
0018 const: st,hts221
0019
0020 reg:
0021 maxItems: 1
0022
0023 drive-open-drain:
0024 type: boolean
0025 description:
0026 The interrupt/data ready line will be configured as open drain, which
0027 is useful if several sensors share the same interrupt line.
0028
0029 vdd-supply: true
0030
0031 interrupts:
0032 maxItems: 1
0033
0034 required:
0035 - compatible
0036 - reg
0037
0038 additionalProperties: false
0039
0040 examples:
0041 - |
0042 #include <dt-bindings/interrupt-controller/irq.h>
0043 i2c {
0044 #address-cells = <1>;
0045 #size-cells = <0>;
0046
0047 hts221@5f {
0048 compatible = "st,hts221";
0049 reg = <0x5f>;
0050 interrupt-parent = <&gpio0>;
0051 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
0052 };
0053 };
0054 ...