HTS221 STM humidity + temperature sensor
Schema identifier ($id): "http://devicetree.org/schemas/iio/humidity/st,hts221.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lorenzo Bianconi <lorenzo@kernel.org>"
Humidity and temperature sensor with I2C interface and data ready interrupt.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "st,hts221"
reg — required here #
Maximum number of items (maxItems): 1
drive-open-drain — not listed as required here #
Value type (type): "boolean"
The interrupt/data ready line will be configured as open drain, which is useful if several sensors share the same interrupt line.
vdd-supply — not listed as required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
hts221@5f {
compatible = "st,hts221";
reg = <0x5f>;
interrupt-parent = <&gpio0>;
interrupts = <0 IRQ_TYPE_EDGE_RISING>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)