Path: blob/master/Documentation/devicetree/bindings/hwmon/amphenol,chipcap2.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/hwmon/amphenol,chipcap2.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: ChipCap 2 humidity and temperature iio sensor78maintainers:9- Javier Carrasco <javier.carrasco.cruz@gmail.com>1011description: |12Relative humidity and temperature sensor on I2C bus.1314Datasheets:15https://www.amphenol-sensors.com/en/telaire/humidity/527-humidity-sensors/3095-chipcap-21617properties:18compatible:19oneOf:20- const: amphenol,cc2d2321- items:22- enum:23- amphenol,cc2d23s24- amphenol,cc2d2525- amphenol,cc2d25s26- amphenol,cc2d3327- amphenol,cc2d33s28- amphenol,cc2d3529- amphenol,cc2d35s30- const: amphenol,cc2d233132reg:33maxItems: 13435interrupts:36items:37- description: measurement ready indicator38- description: low humidity alarm39- description: high humidity alarm4041interrupt-names:42items:43- const: ready44- const: low45- const: high4647vdd-supply:48description:49Dedicated, controllable supply-regulator to reset the device and50enter in command mode.5152required:53- compatible54- reg55- vdd-supply5657additionalProperties: false5859examples:60- |61#include <dt-bindings/interrupt-controller/irq.h>62i2c {63#address-cells = <1>;64#size-cells = <0>;6566humidity@28 {67compatible = "amphenol,cc2d23s", "amphenol,cc2d23";68reg = <0x28>;69interrupt-parent = <&gpio>;70interrupts = <4 IRQ_TYPE_EDGE_RISING>,71<5 IRQ_TYPE_EDGE_RISING>,72<6 IRQ_TYPE_EDGE_RISING>;73interrupt-names = "ready", "low", "high";74vdd-supply = <®_vdd>;75};76};777879