ChipCap 2 humidity and temperature iio sensor
Schema identifier ($id): "http://devicetree.org/schemas/hwmon/amphenol,chipcap2.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Javier Carrasco <javier.carrasco.cruz@gmail.com>"
Relative humidity and temperature sensor on I2C bus.
Datasheets:
https://www.amphenol-sensors.com/en/telaire/humidity/527-humidity-sensors/3095-chipcap-2
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"amphenol,cc2d23"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"amphenol,cc2d23s","amphenol,cc2d25","amphenol,cc2d25s","amphenol,cc2d33","amphenol,cc2d33s","amphenol,cc2d35","amphenol,cc2d35s"Item 2
Exact value (
const):"amphenol,cc2d23"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Array item rules (items) #
Item 1
measurement ready indicator
Item 2
low humidity alarm
Item 3
high humidity alarm
interrupt-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"ready"
Item 2
Exact value (
const):"low"
Item 3
Exact value (
const):"high"
vdd-supply — required here #
Dedicated, controllable supply-regulator to reset the device and enter in command mode.
Required in this object (required): "compatible", "reg", "vdd-supply"
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>;
humidity@28 {
compatible = "amphenol,cc2d23s", "amphenol,cc2d23";
reg = <0x28>;
interrupt-parent = <&gpio>;
interrupts = <4 IRQ_TYPE_EDGE_RISING>,
<5 IRQ_TYPE_EDGE_RISING>,
<6 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "ready", "low", "high";
vdd-supply = <®_vdd>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)