From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) (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 D91A73E0C5A for ; Tue, 28 Apr 2026 11:09:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777374596; cv=none; b=oAB0OD+CI+pmkDMhRgE7rzGb5QYaursjQQnmczZzvieLX4QznRtik2qklS8Y+Ppp9k3Cya0PeLeRRgNNNNAwR3MAvtIwxDgpYNscgrr+lZE6W26UvH03M+UTtobrDtTXbfL8H0wIdGZsd7chjKOjYe0LMcI2Uzg/jtLjAfixptU= 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.215.173 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-pg1-f173.google.com with SMTP id 41be03b00d2f7-c7963df6f17so7378212a12.0 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=Jjl3N+Z3EfaHMhKLM1Vj93glM8kvl8qjuceskkFKzVtQZDZJpCZnFdpM1PWxxmaymX JLqxwjepM0lMOd8B4oRuFOy1yhCXySyrzhDYbPzn6xQCdV61ewIA5k/f4Toy3dsTIf0B PuxQ9N3bUViJiWwBFW1nK6S+Nks3PVQpCKMcOKF/Ag1pY5RmiaxVRfGnpydk/I6ScC5k IUdadwzKddXcpWg5lP4JOSNJohjmjRZeUBZl4x5An34qlLJztZGKFNhS8yxgpYlCgsev GRDIOBba79pL2VTKtGr/dAPP0eT/cz3kxpy5QX1dYkFhrmt86aRR99rYHECtC1ElDIQv BJ+Q== X-Forwarded-Encrypted: i=1; AFNElJ8eWEw3MyRmvH2Zqr9VudSe8+UnYG+80YHQ/R8NtFWczex2qCn867x3dNp8AbPRa/JGTHwWvZTj8u3a@vger.kernel.org X-Gm-Message-State: AOJu0YwdQsOPjRTj8xVmFHXLgTKSZ843DOTBT9L71jq+S+zLp6JWvqln +D5stibJHl/+Lc0YBnCB1jJn6edJp/Egh8HZqFPp2TbUgV+vvoJw4hL0 X-Gm-Gg: AeBDiesWN6KhFEl/Fo/ifysdtrC55udXJl3g9XALpnWQ9mWtdybATtLveFGVK+68+Fa IaXi0YNGKPTG+EAxC+VteqmIVEzjupci9s43H/gZzLJAOaQw7snA60PEHgwpgQJnWc2lumJ3OmB xhgImE766ho78rsiChv20jkAT4ybS5oS/6QLKAAVvUSM/TN2FMFSCERzDmrNuUnU1dabUIj3dKm ZXNspRcrtYbf47oIaan1hoy/1lR4gqKl+8+cYnNKDpmIAEI6B6aXL9DYGqqVAj4cieCFuyzKEn6 TEFuRhsPWRg5Jsr8S/qAkAJNtPgfrpNVmloggcXxLD4fGEztwESeHv4thL7jiqVK05TONS73tED 34kOYf7RgZz5Rb0u/ws4S4zl3W9hba7mI5+vMdHvBPAN171xbX0gpSgmgHPSqVG7WxJ2SLGObO9 er58Q1XKxcAemW7i7PjhOEJ9EOUaO5Ble26O6TUI0me+nFRfh0NnOzi3BKT+mtiJ4= 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: devicetree@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