From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 B21BA3EBF23 for ; Tue, 28 Apr 2026 11:09:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777374596; cv=none; b=Jc81op1W360qSkS01n0szecSCb5wNIjoniwEG2+0DiCYXZ2I7dCii3ptvtPhlPtbUHajCSeoKLWWGZMUpsPGkx03OQiOXhyZfqapHn+EX+HM4LCqfeUq9dfuY2s9BniiNAduV5UcdiSAZL1bKQobTH+cmKVmhte3bybcw6RPM3g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777374596; c=relaxed/simple; bh=oeFPyjA8meNApf8ve0RVSH/vUQhsJf0hI4tW7uly2FI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=lpYKR7svmkCP2Hytj2IlN362cpAL4mqXGsykUfKkabhlfpUEeygtRqTdVwXFAKEFW0ciM1ND4sKrrygGP01UF2UgPbXY3osnpk9RGqnuwKi8OlalQZcTenPlEIV5xLaZ2ylNfZuNPbPwg/KuWYvr3nbxbtQZB1wcGdHLumgFbRo= 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=KNEY+gPq; arc=none smtp.client-ip=209.85.214.181 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="KNEY+gPq" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-2b7d3ecc10dso31451975ad.2 for ; Tue, 28 Apr 2026 04:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777374594; x=1777979394; darn=vger.kernel.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=j3ABCX0B44ntnsEcGXuWaL1D1UCxJef/aJwfylgH2uI=; b=KNEY+gPqzLV+aYWPZ+ak13wg54/I5d0huDwDtxaSOkwDpqSHlU7B+vuijwLzt9rQCU NI7NkITRHsJFyMMKhmS2acOTuIxDJyElduJ+cYzWZCblrMAkdDv9fNw7U3hZBnXkqSS1 epMDjkaYBu+oNIzQ6+NvhlPz6gZxLJnHS7FO25jWDcCgEdh9Jc74VW03mvv855KzG7Rh UobCyM/6wnbE8dYT1glKMEcgOr6QqKPhRUtxJ+C24mEwoenRPdTqfEATguFetWFiVvAa vmDaWc7nbQwBgyUj+oCKv1pckrsk4mEoKzpP/w1SjZxY8pd6zyZZ5E7NTfc4ve/c9T9i kQTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777374594; x=1777979394; h=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; bh=j3ABCX0B44ntnsEcGXuWaL1D1UCxJef/aJwfylgH2uI=; b=o/ADLiSa+E0nqA94IqyD56UPFZUhxg+IS73QGSg9XmwM2WXLh0eZobBlVhhbKshKSF AkvKB3OJscX+KaR6x9yUi4siAULeEMGZRyvjqeZjaGBxxPQhAvQ3j2q+DegH390AmLji NEq7rpHAjuuTILqGnbEodwKk2gzDX2fDVoatXp4roHYJUoBUs0eTverVfvYeGIOe80Fu 4LtsuQEpgAlt72oL10Bm86dScqS2NpS08/mRB3ik2x+O4YxXGA1vkk6b0IDLLrYzhZX9 sNQu+qxHQ8hM9bNHbBefIAOlqD0RoA97Tl0G4LjTaZvJmBUYjUTuLloxijTEHwv29Ubc t3AA== X-Forwarded-Encrypted: i=1; AFNElJ8KhJVg3vQz3l80VpYZ19/R33fwQGlZIawWgEiMwPpFWe3/gDd0UThumrMuBRq2wkSqtynsNlITC2Mto4w=@vger.kernel.org X-Gm-Message-State: AOJu0Yzq0Dwgw0ADI9x60fF54rC7Jp9UxMDhtYcYOLE7xVoozunI1XUQ yzFsySYy434+qCjGYTypMqmnnD3OSxrzwWq2VuIJCnPTWZ+uFoMOBnNQ X-Gm-Gg: AeBDietUdqBs3gOw3J8Ab/s+OX4JzegGERKxfVt1AW6M+WYbQPXdzwmsIEd5GTugfv5 /gYWw7cCs7wHPp6IAUeBV7x/VzMI3a58VT4rZz7x6rTt8eP/jp71cKqPuhVCSy7WoEAsPkHRjNK x65TLeyZQOvYnMVhwgJ8iGrT+PMYCD4X05xj6kCP4ZPG1AATyPLbNd7lUFAHa4Ag63oage76kFj FOxyONahgTVNUGpkaHng7nG9cZ4OAXhdH3xmdjnQ1Hzfvc7TIxvvoHnOttJVLGvQbHRY7bKaz/J +K7Q04UPCKel9xjmpa1qh8bI66NIh07iZoQSycIWVyvT14/41fu1BMqlZ2w6W8phu2UkA34PzUv ZlJ1kYE3d8tIqrwlOQ42doGOlxg1ZYGKM8aQpb13Sj4yt6cMYf4ztHJlfbDCVGrnmNfqTJa61Yg UGzNdd2cIwEBcJtQoHqJf1Z4IqvpSIWVR4hDF9BazDyyT+nhD6PzCFBlqAMobT0q4= X-Received: by 2002:a17:902:ebca:b0:2b4:5931:bc4c with SMTP id d9443c01a7336-2b97c437ccdmr26629835ad.15.1777374593744; Tue, 28 Apr 2026 04:09:53 -0700 (PDT) Received: from ubuntu.localdomain ([27.217.83.168]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b97aa93bd4sm22828885ad.23.2026.04.28.04.09.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Apr 2026 04:09:53 -0700 (PDT) From: Zaixiang Xu To: linux@roeck-us.net Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, zaixiang.xu.dev@gmail.com Subject: [PATCH v6 2/4] dt-bindings: hwmon: Add Sensirion SHT30 series Date: Tue, 28 Apr 2026 19:09:27 +0800 Message-Id: <1777374569-59233-3-git-send-email-zaixiang.xu.dev@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1777374569-59233-1-git-send-email-zaixiang.xu.dev@gmail.com> References: <1777374569-59233-1-git-send-email-zaixiang.xu.dev@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Add YAML devicetree binding schema for Sensirion SHT30 series and the compatible GXCAS GXHT30 sensors. Use fallback compatibles for compatible chips and add optional interrupts and vdd-supply properties. Signed-off-by: Zaixiang Xu --- .../bindings/hwmon/sensirion,sht30.yaml | 67 +++++++++++++++++++ 1 file changed, 67 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..9b120f8d303c --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/sensirion,sht30.yaml @@ -0,0 +1,67 @@ +# 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,sht31 + - sensirion,sht35 + - sensirion,sht85 + - sensirion,sts30 + - sensirion,sts31 + - sensirion,sts32 + - sensirion,sts35 + - items: + - const: gxcas,gxht30 + - const: sensirion,sht30 + + 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