1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/hwmon/sensirion,sht30.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Sensirion SHT3x and GXCAS GXHT30 humidity and temperature sensors 8 9maintainers: 10 - Zaixiang Xu <zaixiang.xu.dev@gmail.com> 11 12properties: 13 compatible: 14 oneOf: 15 - enum: 16 - sensirion,sht30 17 - sensirion,sts30 18 - items: 19 - enum: 20 - gxcas,gxht30 21 - sensirion,sht31 22 - sensirion,sht35 23 - sensirion,sht85 24 - const: sensirion,sht30 25 - items: 26 - enum: 27 - sensirion,sts31 28 - sensirion,sts32 29 - sensirion,sts35 30 - const: sensirion,sts30 31 32 reg: 33 maxItems: 1 34 35 vdd-supply: 36 description: Regulator that provides power to the VDD pin. 37 38 reset-gpios: 39 maxItems: 1 40 description: 41 GPIO connected to the nRESET pin. Active low. 42 43 interrupts: 44 maxItems: 1 45 description: 46 Interrupt connected to the ALERT pin. 47 48required: 49 - compatible 50 - reg 51 52additionalProperties: false 53 54examples: 55 - | 56 #include <dt-bindings/gpio/gpio.h> 57 #include <dt-bindings/interrupt-controller/irq.h> 58 59 i2c { 60 #address-cells = <1>; 61 #size-cells = <0>; 62 63 humidity-sensor@44 { 64 compatible = "gxcas,gxht30", "sensirion,sht30"; 65 reg = <0x44>; 66 vdd-supply = <&vcc_3v3_reg>; 67 reset-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; 68 interrupt-parent = <&gpio1>; 69 interrupts = <16 IRQ_TYPE_LEVEL_HIGH>; 70 }; 71 }; 72