Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
78 lines
1.8 KiB
YAML
78 lines
1.8 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/hwmon/amphenol,chipcap2.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: ChipCap 2 humidity and temperature iio sensor
|
|
|
|
maintainers:
|
|
- Javier Carrasco <javier.carrasco.cruz@gmail.com>
|
|
|
|
description: |
|
|
Relative humidity and temperature sensor on I2C bus.
|
|
|
|
Datasheets:
|
|
https://www.amphenol-sensors.com/en/telaire/humidity/527-humidity-sensors/3095-chipcap-2
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- const: amphenol,cc2d23
|
|
- items:
|
|
- enum:
|
|
- amphenol,cc2d23s
|
|
- amphenol,cc2d25
|
|
- amphenol,cc2d25s
|
|
- amphenol,cc2d33
|
|
- amphenol,cc2d33s
|
|
- amphenol,cc2d35
|
|
- amphenol,cc2d35s
|
|
- const: amphenol,cc2d23
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
items:
|
|
- description: measurement ready indicator
|
|
- description: low humidity alarm
|
|
- description: high humidity alarm
|
|
|
|
interrupt-names:
|
|
items:
|
|
- const: ready
|
|
- const: low
|
|
- const: high
|
|
|
|
vdd-supply:
|
|
description:
|
|
Dedicated, controllable supply-regulator to reset the device and
|
|
enter in command mode.
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- vdd-supply
|
|
|
|
additionalProperties: false
|
|
|
|
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>;
|
|
};
|
|
};
|