From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 80743394794 for ; Mon, 13 Jul 2026 07:46:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783928792; cv=none; b=mIj9ONXcvrMMA3liNWZmcAgLr1BsHeO+hIAzLCTRl/5+8yE72OP57hkDwoS1FTCIzs2rfnK+Or6tICR8SsSguJj/fn0PUYtf1k3QBp2wkGvEqym6TT0ybe9+f244ClgIbLELg3SEifng9mttw4KU+GxF5NSvLV2xI8O7nwm0XvY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783928792; c=relaxed/simple; bh=aBdmcCrvRpLElUzuYLREjjeHQy7cLHxZPdBypWnd1vk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=riW8Zbt2SYPQEd/96BLzizmt1NS9xjZpc+ftZHxVvPcwIkNYy7LxhnYJi5zhG6czyhsZhbfSPQclRelv6RmYFAMBq0w5TOoUoAla+1GofIOzmG1DrExdw+vLrdkwkD+L+0drVl4gIJ02bZdBGkU9sXNd0IxHQK+/eir1MCtUdEA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Lo3dwKpe; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Lo3dwKpe" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-2cab973140bso32434665ad.3 for ; Mon, 13 Jul 2026 00:46:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783928788; x=1784533588; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=o0+La67QneHhY8Z4TRc0JjcxjWm5o09HxeLxb6S6j6Q=; b=Lo3dwKpeqCpQcH++3UbEPVAVvv5rJIHImSqzJ6NO/3fipjs0SNpuIvq8S97QMe2lIw QjTe7TnBeYaUppzLCWLgfuuCi9cYt+j9vJVfjUrAtRmxTq41JKTMounC9RaGA9ndULqT VSQErkYJKiSaIEaM6YojQxSrQMUvbv7wgmwoHR5H6vySZzQQ1uqoMnDqnTvoRxA5KpuE Uzy5cZ2fyAEf5IEa2a86bR9elzSlBlMJerAAut50O/T2tHCISph7lru8BovCq7OC7ktC Pr3M+VczC/So32E316dvHbWN4kQwVCf/jVkSxn4mh8YIGAQ4/VVIojiC2A8RsWeAFL4a +dTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783928788; x=1784533588; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=o0+La67QneHhY8Z4TRc0JjcxjWm5o09HxeLxb6S6j6Q=; b=C6j2MLjG5sKcrdcAblKsbW6j3RrNOtZIE4mBYV2WLNFfMMzjQN7+ppF9zwQqGdvRt4 eJ3lRfBqmROmY819I0cOjJuKcaX+abg03NJfmA0XRyDRVkqITcVdPUQIxWtNU3kaLa7I j6QlP/riqWnZeMLeDMlPY3pai7v/BEyXJ55J9pV8tstzQ6KIVKVPQIRMM00PS8wxdLJy NHEbyjPFv9voYlRygNu1KKsrp6/K6KL7cOQgi+rGUWwndDuTodQWZNwBjv9XYCTAuxaM E1uExStn1FM+fCejeerc7XrCj2E3hcgmtABdpFTReZqUgUOwSFStE6HyrXGsinf0whTJ QxHg== X-Forwarded-Encrypted: i=1; AHgh+RpkVgmrOFSOIfnoDTHxlXXxczzc0/nliWYJUs1he4DG0pcloC6CD8T7b9gVZIQ23L6GCu0kcPe6j76syJs=@vger.kernel.org X-Gm-Message-State: AOJu0YxRvOxvU/4B5U30nZauthrBdmpgaMqfxdaOaB1YXlJSORdHNUKl 8Ro0Ba3jlDMbbW+eHBtCgzdqYFdezYT4EitubVRgSMfKg+n5GR7nGYGh X-Gm-Gg: AfdE7cmziqUb2CEUj4mzyCU8X1HhmiJYtDlraFg29JsKblk2/vRJGaAsgkE7a2wQBcK K3yYvUR4+4X/+vjyjPvaP7cDPNgjtWIx1yj+sggrYP0gbZK5pZvsPUYfcAQwh1qFdZYiWKvoeeY F+jGNR2je/vDhEgfVBL1oLzxHS/SAKlBBGSI7ma493dxEJ75w6NYWFzU5LipCNBnn19ie+E++yB UO1vJnPFm6GlyhwFaSKyvXW7YJOUpD97FX6DnmK+Bq6Xv9dkRfyo8+SL/LMRCbyXTVUb0kyfkbe V3+REqnD3BixCrOeUC6NzAVE2d0pDp80b5r3cjet8EWBXuj0UrQrick8c8pR9P4NxpUFFLuQqxa E2mwHcvv+uesR1nf/wflPcEqzzaI+pOnjp7gd4+ugowLmTrgecWXYNQ/akIxej6bzCD8N9qAbfL GmjZVM6K0bBnzfOK0GVpuK//DSFXRGw/Zm X-Received: by 2002:a17:903:2410:b0:2c9:e6d7:fbb4 with SMTP id d9443c01a7336-2ce9ee163e3mr75760275ad.31.1783928788524; Mon, 13 Jul 2026 00:46:28 -0700 (PDT) Received: from HP.localdomain ([27.217.83.168]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2ccc9d5bde9sm94960105ad.79.2026.07.13.00.46.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2026 00:46:28 -0700 (PDT) From: Zaixiang Xu To: Guenter Roeck Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Zaixiang Xu Subject: [PATCH v7 2/4] dt-bindings: hwmon: Add Sensirion SHT30 series Date: Mon, 13 Jul 2026 15:45:57 +0800 Message-Id: <20260713074559.12196-3-zaixiang.xu.dev@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260713074559.12196-1-zaixiang.xu.dev@gmail.com> References: <20260713074559.12196-1-zaixiang.xu.dev@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add a YAML devicetree binding for the Sensirion SHT3x/STS3x sensor family and the compatible GXCAS GXHT30, with the ALERT interrupt, nRESET GPIO and VDD supply as optional properties. The SHT30, SHT31, SHT35 and SHT85 measure humidity and temperature and differ only in accuracy and packaging, while the STS30, STS31, STS32 and STS35 are temperature-only parts. Within each group the parts share the same software interface, so model them with a fallback to the base part of their group: "sensirion,sht30" for the SHT parts and "sensirion,sts30" for the STS parts. The GXCAS GXHT30 is a drop-in replacement for the SHT30 and uses it as fallback as well. Signed-off-by: Zaixiang Xu --- .../bindings/hwmon/sensirion,sht30.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/sensirion,sht30.yaml diff --git a/Documentation/devicetree/bindings/hwmon/sensirion,sht30.yaml b/Documentation/devicetree/bindings/hwmon/sensirion,sht30.yaml new file mode 100644 index 000000000000..dee0252941c2 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/sensirion,sht30.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/sensirion,sht30.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sensirion SHT3x and GXCAS GXHT30 humidity and temperature sensors + +maintainers: + - Zaixiang Xu + +properties: + compatible: + oneOf: + - enum: + - sensirion,sht30 + - sensirion,sts30 + - items: + - enum: + - gxcas,gxht30 + - sensirion,sht31 + - sensirion,sht35 + - sensirion,sht85 + - const: sensirion,sht30 + - items: + - enum: + - sensirion,sts31 + - sensirion,sts32 + - sensirion,sts35 + - const: sensirion,sts30 + + reg: + maxItems: 1 + + vdd-supply: + description: Regulator that provides power to the VDD pin. + + reset-gpios: + maxItems: 1 + description: + GPIO connected to the nRESET pin. Active low. + + interrupts: + maxItems: 1 + description: + Interrupt connected to the ALERT pin. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + humidity-sensor@44 { + compatible = "gxcas,gxht30", "sensirion,sht30"; + reg = <0x44>; + vdd-supply = <&vcc_3v3_reg>; + reset-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; + interrupt-parent = <&gpio1>; + interrupts = <16 IRQ_TYPE_LEVEL_HIGH>; + }; + }; -- 2.34.1