18d13bc63SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 28d13bc63SEmmanuel Vadot%YAML 1.2 38d13bc63SEmmanuel Vadot--- 48d13bc63SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/humidity/ti,hdc3020.yaml# 58d13bc63SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68d13bc63SEmmanuel Vadot 78d13bc63SEmmanuel Vadottitle: HDC3020/HDC3021/HDC3022 humidity and temperature iio sensors 88d13bc63SEmmanuel Vadot 98d13bc63SEmmanuel Vadotmaintainers: 108d13bc63SEmmanuel Vadot - Li peiyu <579lpy@gmail.com> 118d13bc63SEmmanuel Vadot - Javier Carrasco <javier.carrasco.cruz@gmail.com> 128d13bc63SEmmanuel Vadot 138d13bc63SEmmanuel Vadotdescription: 148d13bc63SEmmanuel Vadot https://www.ti.com/lit/ds/symlink/hdc3020.pdf 158d13bc63SEmmanuel Vadot 168d13bc63SEmmanuel Vadot The HDC302x is an integrated capacitive based relative humidity (RH) 178d13bc63SEmmanuel Vadot and temperature sensor. 188d13bc63SEmmanuel Vadot 198d13bc63SEmmanuel Vadotproperties: 208d13bc63SEmmanuel Vadot compatible: 218d13bc63SEmmanuel Vadot oneOf: 228d13bc63SEmmanuel Vadot - items: 238d13bc63SEmmanuel Vadot - enum: 248d13bc63SEmmanuel Vadot - ti,hdc3021 258d13bc63SEmmanuel Vadot - ti,hdc3022 268d13bc63SEmmanuel Vadot - const: ti,hdc3020 278d13bc63SEmmanuel Vadot - const: ti,hdc3020 288d13bc63SEmmanuel Vadot 298d13bc63SEmmanuel Vadot interrupts: 308d13bc63SEmmanuel Vadot maxItems: 1 318d13bc63SEmmanuel Vadot 328d13bc63SEmmanuel Vadot vdd-supply: true 338d13bc63SEmmanuel Vadot 348d13bc63SEmmanuel Vadot reg: 358d13bc63SEmmanuel Vadot maxItems: 1 368d13bc63SEmmanuel Vadot 37*7d0873ebSEmmanuel Vadot reset-gpios: 38*7d0873ebSEmmanuel Vadot maxItems: 1 39*7d0873ebSEmmanuel Vadot 408d13bc63SEmmanuel Vadotrequired: 418d13bc63SEmmanuel Vadot - compatible 428d13bc63SEmmanuel Vadot - reg 438d13bc63SEmmanuel Vadot - vdd-supply 448d13bc63SEmmanuel Vadot 458d13bc63SEmmanuel VadotadditionalProperties: false 468d13bc63SEmmanuel Vadot 478d13bc63SEmmanuel Vadotexamples: 488d13bc63SEmmanuel Vadot - | 49*7d0873ebSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 5001950c46SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 518d13bc63SEmmanuel Vadot i2c { 528d13bc63SEmmanuel Vadot #address-cells = <1>; 538d13bc63SEmmanuel Vadot #size-cells = <0>; 548d13bc63SEmmanuel Vadot 558d13bc63SEmmanuel Vadot humidity-sensor@47 { 568d13bc63SEmmanuel Vadot compatible = "ti,hdc3021", "ti,hdc3020"; 578d13bc63SEmmanuel Vadot reg = <0x47>; 588d13bc63SEmmanuel Vadot vdd-supply = <&vcc_3v3>; 5901950c46SEmmanuel Vadot interrupt-parent = <&gpio3>; 6001950c46SEmmanuel Vadot interrupts = <23 IRQ_TYPE_EDGE_RISING>; 61*7d0873ebSEmmanuel Vadot reset-gpios = <&gpio3 27 GPIO_ACTIVE_LOW>; 628d13bc63SEmmanuel Vadot }; 638d13bc63SEmmanuel Vadot }; 64