From nobody Sat Jul 25 22:02:58 2026 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 2725F3932DA for ; Mon, 13 Jul 2026 07:46:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783928787; cv=none; b=oCmW+0zsKuYrxJw23VYrMLUGn5W2aCwyiBaNXH5elNIDGV3yfs0TeoXUaq/JtsnKj+H51Uy03SllQI1j/tnkvZz0Mux13pOvV6BMjXaxGT8NTuaIdwSGDTgiMs2nh+4YOf/MIgFLVG8S8r5Jyh5LDEWNaBF1jhpuANjBFxYu8qo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783928787; c=relaxed/simple; bh=uZJrbkg7J99fCT2/aSoWztc3tcIfDWx56O7WqR7T4H8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=gL9L9E2JndjMd+CWBIAzqeoRXEexp/JIM+YJ4x0M5kxoD5oS+xQjOMsJkiJtNPdvUyHHRxrMFwhW5UnGM4OOlk1bV61uzC7Qgf74QJ5hdenXHvZqeexEmMgGDj4IqI0n0TWpjsvtWno+EiPS6uB8X1BdFR5NFhB1bIhbdxK+2cU= 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=RkZqTAo/; arc=none smtp.client-ip=209.85.214.172 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="RkZqTAo/" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-2ced3386430so3986005ad.1 for ; Mon, 13 Jul 2026 00:46:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783928785; x=1784533585; 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=glibjITTE+gwoAFMIgjUwWiYRTlSKwkyNuujoaJcwA8=; b=RkZqTAo/nQd/fIRr5c/d8dnOoHVHtJ+1socqMzBx5PkuR4Nx0p3Q62Oww6G18iMPcL EHgZ3b9fxF+hdg/xH2W+NP8qFV/nXoMsc5VOl03kOkw2CBlOCq6E+CaRun6ZO7u4Oisp KYMWZgWJZhf1Eo3F1GG4NEqK4ROjnY4I1xVsnychHVTlh0gBpBNYc84OZ585h1B4xNPT VzhsQiRJ12mv4sU6qdXzFI1+TfntJRIVYwnhuAdFyngOQuYmwDZCTsBbINLh4ocK26D9 v26Bv6iMh7CyjYrHe4VnpejVpGKGRV7N89blXpxdcnxRedDzmSRSK6FYzxjhqmheKFRK zF8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783928785; x=1784533585; 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=glibjITTE+gwoAFMIgjUwWiYRTlSKwkyNuujoaJcwA8=; b=Hh4FsnJ+HLLx4JHhpR9jjhWM+zemjDmM4WtzZXnqTJ8oK9DaMZD8+HltkWo9A8aTmS ipS3jTBr/S9ZwlANRMFjhsiV4F1usqrda48903J/QtbVk/VVzvCtJ0Ux7fZV7jHIw8zC 9y24OzDyezb1Q+4eEf3dlm8ybt1K/l4JKHtKlhTxSGXFvAm1eU0IZTltHwx+IqthUjVH 6zWUUByw+v6LD9zdvAh8ws3RGpDh4lTzxfPKCV9prWw9A3zwxdDWJtdoChpdAFC28lps nlS2dsLZWmDJoFobxbsQzBlJa65hFrpL6A8pPWAbYrqKruuDQW1/H9iPpotQ8jmcIB42 eH7g== X-Forwarded-Encrypted: i=1; AHgh+Rqq+tFHhyBzCwfIi4YnKBTDQpS8f08yCciZI5quOgrPlnXRBSCyxeQLaqjXr85d3d0OOUS9zasTKtbRhlE=@vger.kernel.org X-Gm-Message-State: AOJu0Yy+1JGn3kiz6UVxNEZd/iZ/smaSXSoo4j1C4gmAGdLtjgw3agMJ bgUajNkAHudxa/sDEQMZP+6yDwB6pzGywl66Y3x7Lz6MAajXR0JtMowWPuF7uhuR X-Gm-Gg: AfdE7cl7NRk+wDSQRjaO+Qn0acjvR8HHG7SJjO2DdO2bVzGsMGIlsfd5yd4bH4FGRES bqUG73egwV2CzxldRF9BmAQpIhTfkJxgG23ohdCteUqfq+Mrv+/gmVDx2MOTP1TYPJgcXh9Cn6r yqYly7xs9ssjYclmuWeRp/7Y7F0EFQog2T8Xr5UCVc84iXRZLXot1kKPC0Yn4aD0oijq2oOswZh IGHgSHEDh1Bpc3saPQvdOSnMXOTA6jtP01k72MFq8v8rAo0QO1AXAvd1EO0lqWCHqQKcDiMDVJl EtMxovgikafbwZ/x7rPKLgB8+dVbkr+OBBpyamyIUkN/K17VI+S2T4dbXoZ7aeT0AqDZfxL1nDl nHZHND8Wa8rKSB5bhtHDtNE8cc2iszII4KqRM2RXGMtl7rFtKCO0BwJsp+oNiXprit73Oe4tJeN PHjX0CtxQDH/rjyXF6knBNQg== X-Received: by 2002:a17:903:2347:b0:2c9:e961:d256 with SMTP id d9443c01a7336-2ce9ec0f113mr75173525ad.27.1783928785568; Mon, 13 Jul 2026 00:46:25 -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.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2026 00:46:25 -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 , Conor Dooley , Krzysztof Kozlowski Subject: [PATCH v7 1/4] dt-bindings: vendor-prefixes: Add GXCAS Technology Date: Mon, 13 Jul 2026 15:45:56 +0800 Message-Id: <20260713074559.12196-2-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: quoted-printable Content-Type: text/plain; charset="utf-8" Add vendor prefix for Beijing Galaxy-CAS Technology Co., Ltd. (GXCAS). The prefix was confirmed from the manufacturer's website: https://www.gxcas.com/en/index.html Acked-by: Conor Dooley Acked-by: Krzysztof Kozlowski Signed-off-by: Zaixiang Xu --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Docum= entation/devicetree/bindings/vendor-prefixes.yaml index 396044f368e7..6793125d6cc6 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -692,6 +692,8 @@ patternProperties: description: Gateworks Corporation use "gateworks" vendor prefix deprecated: true + "^gxcas,.*": + description: Beijing Galaxy-CAS Technology Co., Ltd. "^hannstar,.*": description: HannStar Display Corporation "^haochuangyi,.*": --=20 2.34.1 From nobody Sat Jul 25 22:02:58 2026 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: quoted-printable Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Krzysztof Kozlowski --- .../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 =3D <1>; + #size-cells =3D <0>; + + humidity-sensor@44 { + compatible =3D "gxcas,gxht30", "sensirion,sht30"; + reg =3D <0x44>; + vdd-supply =3D <&vcc_3v3_reg>; + reset-gpios =3D <&gpio1 15 GPIO_ACTIVE_LOW>; + interrupt-parent =3D <&gpio1>; + interrupts =3D <16 IRQ_TYPE_LEVEL_HIGH>; + }; + }; --=20 2.34.1 From nobody Sat Jul 25 22:02:58 2026 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (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 2A5EE394492 for ; Mon, 13 Jul 2026 07:46:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783928794; cv=none; b=WCtBmk5HLVlqZl33pRjw6apCiS5MHiKdu1Ci1MgCUsosbuJxYj+ltXPbVY+eoHo8BQFrqjGGPsAoQlZkJXYAYBSJ2fK5YCDkoQIBc3qnMcRuojIwcCO0JKVRXYRWVzRP3chcO0+0mjoK3vc6VvivvkrylgZm78LYKa7v/ocgPpM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783928794; c=relaxed/simple; bh=qNUzWMILPAZO0p4szJmpre9sZOFFrs7wKaz01ErPF64=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=m5pll7kOKVFFLH6eZZkMc20JDv3yxPSNSzX+ujTIdgVTTS//XUjhbTN8WkEnHKGIvXgjTit+fTVZb9uDbz5EMLRDhMA0eD94/t3+aDFOPinzRukXlzAA9gr/5T0SmG5boirM/K0vtScUPzX9CXQTSwpqJfyt1rMWycLZmKUcXqU= 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=JeYFemyg; arc=none smtp.client-ip=209.85.214.169 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="JeYFemyg" Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-2cedda2ce6fso1173505ad.1 for ; Mon, 13 Jul 2026 00:46:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783928792; x=1784533592; 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=ekqLWa6qOCBXZnPyawtHFyqbZUfQTxYgXo+F6hxou6w=; b=JeYFemygWih8CNTk/rn7JCSEDqhYr5hIReKF/CVYGudemfie6i/5/ocI1VT5xBdnss WFSG43PSUuqSsMExtWsTuI6/HGG+ZmKa1yjtYN+D3fxsMZEkTQA56Q3l8uhRsFurDaDT MqTl5MaeVcjZBE4rdLPVhRoBKLBopOgQkFReMibWk7RTDio5Q2lps3sR3GNNVdgFs9Ht mRtwfbq6vF/2vmX3iQlBcHzkgcQXaq9vtagxTse2ixEmycZdRtwci1VwXYhju6A8+VGm MHb21+WCUyv85EYDVKE16yj0EfOVE5WkSWQmpoTyZ+WpeFOafVuSSIy8UGzPrMH0vdCO Miqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783928792; x=1784533592; 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=ekqLWa6qOCBXZnPyawtHFyqbZUfQTxYgXo+F6hxou6w=; b=oZ3zrUvM1eeqbso+tQMPvzWKuebgIngUUE/GUkjW1+J57BJPovYBEcgu2xOr4zgLJL Lj+mraMKgCwj2QFHYhxiw6zJLhpFMuPsLT1fgEPssGI336rCARB3TzQJ/wAhHYL5wjJm otp7dzyk3zI5/0nMBay43t15nSN8FIY868bw2J/dDnWm11WjomT3H+lRAwZbN2ThSNYF 6g66mEbEMeQCl2m5kMGovsaXEBvqp40dnheYUDFOID4oaMJ/Ny83zn/h4Thzhjvp8aF5 rHhkdbursS5jTN7SwnBTgz31psdJ7KOc3SCOrg29XgWXirdk6wE4kKxDayvjMX6gIeSi EJZg== X-Forwarded-Encrypted: i=1; AHgh+RrsoyZRoOzrXO1YBU6sKokRiE42WoTgGAu4yOCKjY3Awe8AFNri0BSLe3am6TPRuGVzgVoYLuOZuGyAqpw=@vger.kernel.org X-Gm-Message-State: AOJu0YylIpRk6YruCHvYASd0RaOb7e/x1VtB07T8ByfWY3+M1x6n2WCi tl3gNzRI9V0ofB28qJT8D+pNIOnPRFEWr77pi0VBq5NswiM934hyKgt7 X-Gm-Gg: AfdE7clElBiBavooSHjWSZRtHLto6jNwaYUKFXh2hyINujUTR2tLABD5Zrubzgc77Fe 78UwLyYQJQcyeXG1tPfTULxlGDYUce3FPEYcbnCmYTK8iX92XitfS+pRqM5QT9lHV9B4gyzo1wr fmtsCqAbvO5ar6m9V/1tPdRkJM0z5pF5pmLFumQxnrdI34y7tofgWfyKcAG5n9Fwar1HDyZ8VuX 3Qy79/zhLgq53z5ITVIpVtRPsyZJxG/XY9vIu4pzwLnsh5H3nkCIEViTQdes4UIb3maImhNeqOb OtSRdaOtAWX6HzVI6ZzlZuOAofEA0uiNKRUQIX78ZX3O7U0mV8ogb2IgTjL1vCoS1XyAiP8Eibj 4/TnW1dJoxLkRYoslMWj/7qvTRdR9NMnALEkzkx/M1k0GG58T/R8aGmhNsrr8sa5vhJBkLNAZBu bvMDIDPlomyIbmM5i3XS1ZuQ== X-Received: by 2002:a17:902:d988:b0:2ca:bad4:33a2 with SMTP id d9443c01a7336-2ce9e9ac01emr86979945ad.11.1783928791635; Mon, 13 Jul 2026 00:46:31 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2026 00:46:31 -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 3/4] hwmon: (sht3x) Add devicetree support Date: Mon, 13 Jul 2026 15:45:58 +0800 Message-Id: <20260713074559.12196-4-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: quoted-printable Content-Type: text/plain; charset="utf-8" Add an of_device_id table to support devicetree based instantiation of the supported sensors. The devicetree binding models all higher accuracy parts with a fallback to the base part of their group, so only the two base compatibles need to be listed. The match data distinguishes the humidity and temperature parts (SHT3x) from the temperature-only parts (STS3x), which require different configuration. Start enum sht3x_chips at 1: with sht3x equal to 0, the OF match data for the SHT devices would be NULL, causing i2c_get_match_data() to fall back to i2c_device_id name matching, which fails for devicetree names. The devices would then only work because the resulting chip id 0 happens to equal sht3x. Non-zero match data avoids relying on that coincidence. Signed-off-by: Zaixiang Xu --- drivers/hwmon/sht3x.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/sht3x.c b/drivers/hwmon/sht3x.c index c2f6b73aa7f3..6d47cfd340f8 100644 --- a/drivers/hwmon/sht3x.c +++ b/drivers/hwmon/sht3x.c @@ -61,7 +61,7 @@ static const unsigned char sht3x_cmd_read_serial_number[]= =3D { 0x37, 0x80 }; #define SHT3X_MAX_HUMIDITY 100000 =20 enum sht3x_chips { - sht3x, + sht3x =3D 1, sts3x, }; =20 @@ -939,8 +939,19 @@ static const struct i2c_device_id sht3x_ids[] =3D { =20 MODULE_DEVICE_TABLE(i2c, sht3x_ids); =20 +static const struct of_device_id sht3x_of_match[] =3D { + { .compatible =3D "sensirion,sht30", .data =3D (void *)(uintptr_t)sht3x }, + { .compatible =3D "sensirion,sts30", .data =3D (void *)(uintptr_t)sts3x }, + { } +}; + +MODULE_DEVICE_TABLE(of, sht3x_of_match); + static struct i2c_driver sht3x_i2c_driver =3D { - .driver.name =3D "sht3x", + .driver =3D { + .name =3D "sht3x", + .of_match_table =3D sht3x_of_match, + }, .probe =3D sht3x_probe, .id_table =3D sht3x_ids, }; --=20 2.34.1 From nobody Sat Jul 25 22:02:58 2026 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 61234396D28 for ; Mon, 13 Jul 2026 07:46:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783928796; cv=none; b=eIuVK5IIwyp3VAglLX01rHsjrlCxNr8hs/DYqeyjDniO+QkqHkcGEiVsNy/36NIbIXanvlo9sKUkX1dE06nR7reXi0vflyKqK8V2AmRJUKK5CwfZuGB0muUI1fdYnLbv0HkEi3jEjOW+pXsTbDTb9pS21JoSJ6BVcfAyDKnTIA0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783928796; c=relaxed/simple; bh=8D3HkhAmphdUEpR1RhwzMh9d4uJOL7QA8i4LNDI3qZo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YwNb1XDrfJl0QQ7GGtCumXXFeIGcEUpq8BNWikK8PNnm3kwX+eZ4L4/m9no397DurrRaG6h9dlIYdULjlZMJZt6JFWZMJ7jLKLV2B029iI4ftvmmWOHjuS1zNEF2TZhZCBvbOuZ9h8enUwnS7jqtKYJsJuLCW5v5vum1PV0UDIs= 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=UlPjOUq0; arc=none smtp.client-ip=209.85.214.180 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="UlPjOUq0" Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-2cca0c5799eso28569815ad.0 for ; Mon, 13 Jul 2026 00:46:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783928795; x=1784533595; 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=ShwAbMygzjU0orOp/b1DdaJ5AXEffvG0rYavMQ4hKrQ=; b=UlPjOUq0viziSGGIGPghFbWJycTZ+O6k7ho7G001rPe6/2iu2OjjUtlGVFs6KWA5s+ vfd15hUYMBDFh+dJMtV3OCpCarrT8kyPtdCVXdKAR1Cibiz2q6DaaDNslsbXOLJSRwmv pFtjkV0wp+SXolSQqHTnZdTHGeau2NsogD1R7ZXy62SOBYrz2RmshO08bbM+Ad/LhvT2 UdR/JB8P0qW0wj07g2V9TK4NbhaVzlx/txKPrd+5Znki+N5nWesg32kyd79GYOojsF2i DS3XEruc1c1bZpRUW+eg4VrnROjS/45KkY70JRCDeakjg8oV54oE3nXvFHcCh1jpTBkF dNcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783928795; x=1784533595; 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=ShwAbMygzjU0orOp/b1DdaJ5AXEffvG0rYavMQ4hKrQ=; b=ZQPL8tfvuVq+gcEMUNIAw3/76iD6+a07lKTsEdCS9flMYMVb69N3+Nk5AcE7LE4PVl gXxsavYOGYGH0GIw0UAdTBX0ztq7UMRYTahm5dB1w3t+gzr0j8EJU81+XYntYXLahmPP 4RqxayNOQBoCtH+XFXYR0ZlMmxlDUKACvkniHOp/aKjNUDwSpjZlWM3e5DFvJm3DEDbr L0x39wYjDT3UJAhixeVyL22K/YOjYrSv77h0ttQoPCMjv5URNc20YW8rLQVsA4ChFgab h3TGWwWNObU/PXY1Y9ZBODGpgQ3vCELeHIdZQt5Wlycf+v1In5w9sNwUyTn9syST05XY Z01w== X-Forwarded-Encrypted: i=1; AHgh+Rpv7hjV8+R4asfNR7T0qszODYdH97LMsbJlpgYbezhmK2D137tSd3yQgpEMvW+bUQ5u3zJCemC32AwGSs0=@vger.kernel.org X-Gm-Message-State: AOJu0YxPQEan3TgpGy6j+vHZqeftA36cxZq4moUiyVapgyvmVbcwDoNg t+BeUq2whHf668hUcQRjmMxjcHfg/Px0Yp/8WSguhyiNoSiJy21DzPub X-Gm-Gg: AfdE7cnXIqWJJc758ZB5JKv8FbIpuSsCX9QxEt/vzqWVubyDnM6rh5+xP+kGHsnk7vz kq2YPB/p2BJY65GK1k9fvIYCbF9Blsc9MzpAxKAyVkvl3wWlNBOtvZUjjJlqchmVGNSF4ic/oMB lZqgTsSndvznRCaPvyGidsjx4nsgiSTxNr96hT7c+tPGy3fDJ3xH+I9KEl7j2zN+ogy+3ozBvjn HkY4LYBC9eIWhUIWJ0cDcIVMoVVOXfm3eTkE5m0LG4PrrXq6zac6Rs5mln1/vL3Lv2rKDm1bZSf vT2qy1k5ltJF4Z3GvhbpoedwIQVDQHSqZwgnsG1uskp0tUcK2iDpIie9pnnvnVlRjhWcDOcfrkR XLZDZ3aqP4+x3R1hb1t0Ug273qyluPAz/hOe1CGL+iRQHzjfuD5b9gL3yaTFPit0y1pIjynqT3a o9gY0MAYY2oiqcs+FMrg0oiw== X-Received: by 2002:a17:903:388c:b0:2cc:9773:1313 with SMTP id d9443c01a7336-2ce9ebf84f7mr74433375ad.11.1783928794600; Mon, 13 Jul 2026 00:46:34 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2026 00:46:34 -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 4/4] hwmon: (sht3x) Document support for GXCAS GXHT30 Date: Mon, 13 Jul 2026 15:45:59 +0800 Message-Id: <20260713074559.12196-5-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: quoted-printable Content-Type: text/plain; charset="utf-8" The GXCAS GXHT30 is a humidity and temperature sensor that is a drop-in replacement for and fully software compatible with the Sensirion SHT30. It is handled by the "sensirion,sht30" fallback compatible without any driver changes; manual instantiation works with the existing sht3x device name. Document the chip as supported. Signed-off-by: Zaixiang Xu --- Documentation/hwmon/sht3x.rst | 17 ++++++++++++++--- drivers/hwmon/Kconfig | 5 +++-- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/Documentation/hwmon/sht3x.rst b/Documentation/hwmon/sht3x.rst index ea1642920295..4f67671eb0cd 100644 --- a/Documentation/hwmon/sht3x.rst +++ b/Documentation/hwmon/sht3x.rst @@ -31,6 +31,14 @@ Supported chips: =20 Datasheet: https://sensirion.com/media/documents/4B40CEF3/640B2346/Sen= sirion_Humidity_Sensors_SHT85_Datasheet.pdf =20 + * GXCAS GXHT30 + + Prefix: 'sht3x' + + Addresses scanned: none + + Datasheet: https://www.galaxy-cas.com/uploads/files/202509/GXHT30_data= sheet_V3.9_20250919170350.pdf + Author: =20 - David Frey @@ -40,9 +48,12 @@ Description ----------- =20 This driver implements support for the Sensirion SHT3x-DIS, STS3x-DIS and = SHT85 -series of humidity and temperature sensors. Temperature is measured in deg= rees -celsius, relative humidity is expressed as a percentage. In the sysfs inte= rface, -all values are scaled by 1000, i.e. the value for 31.5 degrees celsius is = 31500. +series of humidity and temperature sensors, as well as the compatible GXCAS +GXHT30. The GXHT30 is a drop-in replacement for the SHT30: instantiate it = from +devicetree with the "gxcas,gxht30", "sensirion,sht30" compatibles, or manu= ally +using the sht3x device name. Temperature is measured in degrees celsius, +relative humidity is expressed as a percentage. In the sysfs interface, all +values are scaled by 1000, i.e. the value for 31.5 degrees celsius is 3150= 0. =20 The device communicates with the I2C protocol. SHT3x sensors can have the = I2C addresses 0x44 or 0x45 (0x4a or 0x4b for sts3x), depending on the wiring. = SHT85 diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index 08c29685126a..64fc00ade5ca 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -2023,8 +2023,9 @@ config SENSORS_SHT3x depends on I2C select CRC8 help - If you say yes here you get support for the Sensiron SHT30, SHT31 and - SHT85 humidity and temperature sensors. + If you say yes here you get support for the Sensiron SHT30, SHT31, + SHT85 and the compatible GXCAS GXHT30 humidity and temperature + sensors. =20 This driver can also be built as a module. If so, the module will be called sht3x. --=20 2.34.1