* [PATCH v5 0/3] hwmon: (sht3x) Add support for GXCAS GXHT30
@ 2026-04-03 10:14 Zaixiang Xu
2026-04-03 10:14 ` [PATCH v5 1/3] dt-bindings: vendor-prefixes: Add GXCAS Technology Zaixiang Xu
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Zaixiang Xu @ 2026-04-03 10:14 UTC (permalink / raw)
To: linux
Cc: robh, krzk+dt, conor+dt, linux-hwmon, devicetree, linux-kernel,
zaixiang.xu.dev
Hi all,
First, I sincerely apologize for the noise in v3 and v4. I unfortunately
missed the crucial feedback provided in v1 by Krzysztof, Conor,
and Guenter.
In this v5, I have completely dropped the incorrect approaches from the
previous versions and completely refactored the patchset to strictly
follow the maintainers' guidelines:
1. Wildcards are entirely avoided. Explicit chip names are used.
2. The standalone YAML binding has been dropped. The devices are
now added to trivial-devices.yaml.
3. The redundant of_match_table addition in the driver is dropped.
The driver now relies on the I2C core's fallback matching mechanism.
Patch 1 adds the vendor prefix for GXCAS (Carries Conor's Acked-by
from v1).
Patch 2 adds the explicit SHT3x/STS3x and GXHT30 models to
trivial-devices.yaml.
Patch 3 adds minimal I2C ID support to the sht3x driver.
---
Changelog:
v5:
- Dropped the standalone YAML binding file.
- Added explicit chip models (sht30, sht31, sht35, sht85, sts30,
sts31, gxht30) to trivial-devices.yaml to avoid wildcards.
- Dropped the of_match_table addition in sht3x.c.
- Wrapped all commit messages to 72 characters.
- Added company website to the vendor prefix commit message.
v3 & v4:
- (Incorrectly) Proceeded with the standalone YAML file.
- (Incorrectly) Added of_match_table with wildcards to the driver.
v2:
- Fix placeholder "Your Name" in MODULE_AUTHOR.
v1:
- Initial submission.
Zaixiang Xu (3):
dt-bindings: vendor-prefixes: Add GXCAS Technology
dt-bindings: trivial-devices: add Sensirion SHT3x/STS3x and GXCAS
GXHT30
hwmon: (sht3x) Add support for GXCAS GXHT30 sensor
Documentation/devicetree/bindings/trivial-devices.yaml | 9 +++++++++
Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
drivers/hwmon/sht3x.c | 2 ++
3 files changed, 13 insertions(+)
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v5 1/3] dt-bindings: vendor-prefixes: Add GXCAS Technology
2026-04-03 10:14 [PATCH v5 0/3] hwmon: (sht3x) Add support for GXCAS GXHT30 Zaixiang Xu
@ 2026-04-03 10:14 ` Zaixiang Xu
2026-04-03 10:14 ` [PATCH v5 2/3] dt-bindings: trivial-devices: add Sensirion SHT3x/STS3x and GXCAS GXHT30 Zaixiang Xu
2026-04-03 10:14 ` [PATCH v5 3/3] hwmon: (sht3x) Add support for GXCAS GXHT30 sensor Zaixiang Xu
2 siblings, 0 replies; 4+ messages in thread
From: Zaixiang Xu @ 2026-04-03 10:14 UTC (permalink / raw)
To: linux
Cc: robh, krzk+dt, conor+dt, linux-hwmon, devicetree, linux-kernel,
zaixiang.xu.dev
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 <conor.dooley@microchip.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Zaixiang Xu <zaixiang.xu.dev@gmail.com>
---
Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index ee7fd3cfe203..354836eb8e72 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -676,6 +676,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,.*":
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v5 2/3] dt-bindings: trivial-devices: add Sensirion SHT3x/STS3x and GXCAS GXHT30
2026-04-03 10:14 [PATCH v5 0/3] hwmon: (sht3x) Add support for GXCAS GXHT30 Zaixiang Xu
2026-04-03 10:14 ` [PATCH v5 1/3] dt-bindings: vendor-prefixes: Add GXCAS Technology Zaixiang Xu
@ 2026-04-03 10:14 ` Zaixiang Xu
2026-04-03 10:14 ` [PATCH v5 3/3] hwmon: (sht3x) Add support for GXCAS GXHT30 sensor Zaixiang Xu
2 siblings, 0 replies; 4+ messages in thread
From: Zaixiang Xu @ 2026-04-03 10:14 UTC (permalink / raw)
To: linux
Cc: robh, krzk+dt, conor+dt, linux-hwmon, devicetree, linux-kernel,
zaixiang.xu.dev
The Sensirion SHT3x/STS3x series (and its compatible alternative, the
GXCAS GXHT30) are simple I2C temperature and humidity sensors. They
require no external resources other than the I2C bus and power supply,
fitting perfectly into the trivial-devices category.
Historically, the driver matched against the "sht3x" wildcard compatible
string. However, as pointed out by DT maintainers, wildcards are heavily
discouraged in new bindings, and specific part numbers representing real
devices should be used instead.
Therefore, document the explicit chip names (sht30, sht31, sht35, sht85,
sts30, sts31) along with the fully compatible gxht30 in
trivial-devices.yaml. Note that sht85 is already supported in the driver
but was missing from the bindings.
Signed-off-by: Zaixiang Xu <zaixiang.xu.dev@gmail.com>
---
Documentation/devicetree/bindings/trivial-devices.yaml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
index a482aeadcd44..e6efabfb1b14 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -125,6 +125,8 @@ properties:
- fsl,mma8450
# MPR121: Proximity Capacitive Touch Sensor Controller
- fsl,mpr121
+ # GXCAS temperature & humidity sensor with I2C interface
+ - gxcas,gxht30
# HiTRON AC/DC CompactPCI Power Supply
- hitron,hac300s
# Honeywell Humidicon HIH-6130 humidity/temperature sensor
@@ -399,7 +401,14 @@ properties:
- sensirion,sht20
- sensirion,sht21
- sensirion,sht25
+ - sensirion,sht30
+ - sensirion,sht31
+ - sensirion,sht35
- sensirion,sht4x
+ - sensirion,sht85
+ # Sensirion temperature sensor with I2C interface
+ - sensirion,sts30
+ - sensirion,sts31
# Sensortek 3 axis accelerometer
- sensortek,stk8312
# Sensortek 3 axis accelerometer
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v5 3/3] hwmon: (sht3x) Add support for GXCAS GXHT30 sensor
2026-04-03 10:14 [PATCH v5 0/3] hwmon: (sht3x) Add support for GXCAS GXHT30 Zaixiang Xu
2026-04-03 10:14 ` [PATCH v5 1/3] dt-bindings: vendor-prefixes: Add GXCAS Technology Zaixiang Xu
2026-04-03 10:14 ` [PATCH v5 2/3] dt-bindings: trivial-devices: add Sensirion SHT3x/STS3x and GXCAS GXHT30 Zaixiang Xu
@ 2026-04-03 10:14 ` Zaixiang Xu
2 siblings, 0 replies; 4+ messages in thread
From: Zaixiang Xu @ 2026-04-03 10:14 UTC (permalink / raw)
To: linux
Cc: robh, krzk+dt, conor+dt, linux-hwmon, devicetree, linux-kernel,
zaixiang.xu.dev
The GXCAS GXHT30 is a humidity and temperature sensor that is software
compatible with the Sensirion SHT3x series.
Add the "gxht30" chip name to the i2c_device_id table to allow I2C core
matching. For Device Tree instantiation, this driver relies on the I2C
core fallback matching or DT compatible fallbacks (e.g., matching
"gxcas,gxht30" with "sensirion,sht30").
Signed-off-by: Zaixiang Xu <zaixiang.xu.dev@gmail.com>
---
drivers/hwmon/sht3x.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/hwmon/sht3x.c b/drivers/hwmon/sht3x.c
index 08306ccb6d0b..abcc7b4abe5a 100644
--- a/drivers/hwmon/sht3x.c
+++ b/drivers/hwmon/sht3x.c
@@ -934,6 +934,7 @@ static const struct i2c_device_id sht3x_ids[] = {
{"sht3x", sht3x},
{"sts3x", sts3x},
{"sht85", sht3x},
+ {"gxht30", sht3x},
{}
};
@@ -948,5 +949,6 @@ module_i2c_driver(sht3x_i2c_driver);
MODULE_AUTHOR("David Frey <david.frey@sensirion.com>");
MODULE_AUTHOR("Pascal Sachs <pascal.sachs@sensirion.com>");
+MODULE_AUTHOR("Zaixiang Xu <zaixiang.xu.dev@gmail.com>");
MODULE_DESCRIPTION("Sensirion SHT3x humidity and temperature sensor driver");
MODULE_LICENSE("GPL");
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-04-03 10:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-03 10:14 [PATCH v5 0/3] hwmon: (sht3x) Add support for GXCAS GXHT30 Zaixiang Xu
2026-04-03 10:14 ` [PATCH v5 1/3] dt-bindings: vendor-prefixes: Add GXCAS Technology Zaixiang Xu
2026-04-03 10:14 ` [PATCH v5 2/3] dt-bindings: trivial-devices: add Sensirion SHT3x/STS3x and GXCAS GXHT30 Zaixiang Xu
2026-04-03 10:14 ` [PATCH v5 3/3] hwmon: (sht3x) Add support for GXCAS GXHT30 sensor Zaixiang Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox