* [PATCH v2 0/3] hwmon: (sht3x) Add support for GXCAS GXHT30
@ 2026-03-19 11:38 Zaixiang Xu
2026-03-19 11:38 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add GXCAS Technology Zaixiang Xu
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Zaixiang Xu @ 2026-03-19 11:38 UTC (permalink / raw)
To: linux
Cc: robh, krzk+dt, conor+dt, linux-hwmon, devicetree, linux-kernel,
zaixiang.xu.dev
This series adds support for the GXCAS GXHT30 humidity and temperature
sensor. The GXHT30 is software compatible with the Sensirion SHT3x
series, using the same I2C command set and conversion formulas.
Since the SHT3x series was previously undocumented in the kernel's
DT binding schemas, this series also introduces the missing
sensirion,sht3x.yaml binding file.
Changes in v2:
- Fix placeholder "Your Name" in MODULE_AUTHOR in sht3x.c.
Zaixiang Xu (3):
dt-bindings: vendor-prefixes: Add GXCAS Technology
dt-bindings: hwmon: Add Sensirion SHT3x and GXCAS GXHT30
hwmon: (sht3x) Add support for GXCAS GXHT30
Documentation/devicetree/bindings/hwmon/sensirion,sht3x.yaml | 44 ++++++++++++++++++++
Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 +
drivers/hwmon/sht3x.c | 16 +++++++-
3 files changed, 61 insertions(+), 1 deletion(-)
--
2.34.1
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add GXCAS Technology 2026-03-19 11:38 [PATCH v2 0/3] hwmon: (sht3x) Add support for GXCAS GXHT30 Zaixiang Xu @ 2026-03-19 11:38 ` Zaixiang Xu 2026-03-19 16:55 ` Conor Dooley 2026-03-19 11:38 ` [PATCH v2 2/3] dt-bindings: hwmon: Add Sensirion SHT3x and GXCAS GXHT30 Zaixiang Xu 2026-03-19 11:38 ` [PATCH v2 3/3] hwmon: (sht3x) Add support for " Zaixiang Xu 2 siblings, 1 reply; 7+ messages in thread From: Zaixiang Xu @ 2026-03-19 11:38 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). 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] 7+ messages in thread
* Re: [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add GXCAS Technology 2026-03-19 11:38 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add GXCAS Technology Zaixiang Xu @ 2026-03-19 16:55 ` Conor Dooley 0 siblings, 0 replies; 7+ messages in thread From: Conor Dooley @ 2026-03-19 16:55 UTC (permalink / raw) To: Zaixiang Xu Cc: linux, robh, krzk+dt, conor+dt, linux-hwmon, devicetree, linux-kernel [-- Attachment #1: Type: text/plain, Size: 1155 bytes --] On Thu, Mar 19, 2026 at 07:38:32PM +0800, Zaixiang Xu wrote: > Add vendor prefix for Beijing Galaxy-CAS Technology Co., Ltd. (GXCAS). Worth citing that gxcas comes from their website: https://www.gxcas.com/en/index.html With that, Acked-by: Conor Dooley <conor.dooley@microchip.com> pw-bot: changes-requested > > 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 > [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2 2/3] dt-bindings: hwmon: Add Sensirion SHT3x and GXCAS GXHT30 2026-03-19 11:38 [PATCH v2 0/3] hwmon: (sht3x) Add support for GXCAS GXHT30 Zaixiang Xu 2026-03-19 11:38 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add GXCAS Technology Zaixiang Xu @ 2026-03-19 11:38 ` Zaixiang Xu 2026-03-19 17:05 ` Conor Dooley 2026-03-19 11:38 ` [PATCH v2 3/3] hwmon: (sht3x) Add support for " Zaixiang Xu 2 siblings, 1 reply; 7+ messages in thread From: Zaixiang Xu @ 2026-03-19 11:38 UTC (permalink / raw) To: linux Cc: robh, krzk+dt, conor+dt, linux-hwmon, devicetree, linux-kernel, zaixiang.xu.dev Add YAML devicetree binding schema for Sensirion SHT3x series and GXCAS GXHT30 humidity and temperature sensors. Signed-off-by: Zaixiang Xu <zaixiang.xu.dev@gmail.com> --- .../bindings/hwmon/sensirion,sht3x.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/sensirion,sht3x.yaml diff --git a/Documentation/devicetree/bindings/hwmon/sensirion,sht3x.yaml b/Documentation/devicetree/bindings/hwmon/sensirion,sht3x.yaml new file mode 100644 index 000000000000..47dbb743e2ee --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/sensirion,sht3x.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/sensirion,sht3x.yaml# +$schema: http://devicetree.org/meta-schema.yaml# + +title: Sensirion SHT3x Humidity and Temperature Sensor + +maintainers: + - Zaixiang Xu <zaixiang.xu.dev@gmail.com> + +description: | + The SHT3x series is a family of humidity and temperature sensors by Sensirion. + It also includes compatible sensors like GXCAS GXHT30. + +properties: + compatible: + enum: + - sensirion,sht3x + - sensirion,sts3x + - sensirion,sht85 + - gxcas,gxht30 + + reg: + maxItems: 1 + description: I2C address (usually 0x44 or 0x45) + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + sensor@44 { + compatible = "gxcas,gxht30"; + reg = <0x44>; + }; + }; \ No newline at end of file -- 2.34.1 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2 2/3] dt-bindings: hwmon: Add Sensirion SHT3x and GXCAS GXHT30 2026-03-19 11:38 ` [PATCH v2 2/3] dt-bindings: hwmon: Add Sensirion SHT3x and GXCAS GXHT30 Zaixiang Xu @ 2026-03-19 17:05 ` Conor Dooley 0 siblings, 0 replies; 7+ messages in thread From: Conor Dooley @ 2026-03-19 17:05 UTC (permalink / raw) To: Zaixiang Xu Cc: linux, robh, krzk+dt, conor+dt, linux-hwmon, devicetree, linux-kernel [-- Attachment #1: Type: text/plain, Size: 2471 bytes --] On Thu, Mar 19, 2026 at 07:38:33PM +0800, Zaixiang Xu wrote: > Add YAML devicetree binding schema for Sensirion SHT3x series and GXCAS GXHT30 humidity and temperature sensors. Overly long line. > > Signed-off-by: Zaixiang Xu <zaixiang.xu.dev@gmail.com> > --- > .../bindings/hwmon/sensirion,sht3x.yaml | 44 +++++++++++++++++++ > 1 file changed, 44 insertions(+) > create mode 100644 Documentation/devicetree/bindings/hwmon/sensirion,sht3x.yaml > > diff --git a/Documentation/devicetree/bindings/hwmon/sensirion,sht3x.yaml b/Documentation/devicetree/bindings/hwmon/sensirion,sht3x.yaml > new file mode 100644 > index 000000000000..47dbb743e2ee > --- /dev/null > +++ b/Documentation/devicetree/bindings/hwmon/sensirion,sht3x.yaml > @@ -0,0 +1,44 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/hwmon/sensirion,sht3x.yaml# > +$schema: http://devicetree.org/meta-schema.yaml# > + > +title: Sensirion SHT3x Humidity and Temperature Sensor > + > +maintainers: > + - Zaixiang Xu <zaixiang.xu.dev@gmail.com> > + > +description: | > + The SHT3x series is a family of humidity and temperature sensors by Sensirion. > + It also includes compatible sensors like GXCAS GXHT30. > + > +properties: > + compatible: > + enum: > + - sensirion,sht3x Typically, we don't permit wildcards in compatible strings. You need to have an explanation in your commit message for why using specific compatibles for each model is okay. Even then, should really use a compatible that represents a real device, in case a sht38 comes out that isn't compatible with the sht31 etc. > + - sensirion,sts3x > + - sensirion,sht85 > + - gxcas,gxht30 None of these devices have any match data, and the driver only seems to care about sts versus !sts. Fallbacks look like they should be used for the sht devices and the gxht30. pw-bot: changes-requested Cheers, Conor. > + > + reg: > + maxItems: 1 > + description: I2C address (usually 0x44 or 0x45) > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + sensor@44 { > + compatible = "gxcas,gxht30"; > + reg = <0x44>; > + }; > + }; > \ No newline at end of file > -- > 2.34.1 > [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2 3/3] hwmon: (sht3x) Add support for GXCAS GXHT30 2026-03-19 11:38 [PATCH v2 0/3] hwmon: (sht3x) Add support for GXCAS GXHT30 Zaixiang Xu 2026-03-19 11:38 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add GXCAS Technology Zaixiang Xu 2026-03-19 11:38 ` [PATCH v2 2/3] dt-bindings: hwmon: Add Sensirion SHT3x and GXCAS GXHT30 Zaixiang Xu @ 2026-03-19 11:38 ` Zaixiang Xu 2026-03-19 18:20 ` Guenter Roeck 2 siblings, 1 reply; 7+ messages in thread From: Zaixiang Xu @ 2026-03-19 11:38 UTC (permalink / raw) To: linux Cc: robh, krzk+dt, conor+dt, linux-hwmon, devicetree, linux-kernel, zaixiang.xu.dev Add support for GXCAS GXHT30 sensor to the sht3x driver. The GXHT30 is software compatible with the Sensirion SHT3x series. Signed-off-by: Zaixiang Xu <zaixiang.xu.dev@gmail.com> --- drivers/hwmon/sht3x.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/sht3x.c b/drivers/hwmon/sht3x.c index 08306ccb6d0b..4384c18115e9 100644 --- a/drivers/hwmon/sht3x.c +++ b/drivers/hwmon/sht3x.c @@ -934,13 +934,26 @@ static const struct i2c_device_id sht3x_ids[] = { {"sht3x", sht3x}, {"sts3x", sts3x}, {"sht85", sht3x}, + {"gxht30", sht3x}, {} }; MODULE_DEVICE_TABLE(i2c, sht3x_ids); +static const struct of_device_id sht3x_of_match[] = { + { .compatible = "sensirion,sht3x" }, + { .compatible = "sensirion,sts3x" }, + { .compatible = "sensirion,sht85" }, + { .compatible = "gxcas,gxht30" }, + { } +}; +MODULE_DEVICE_TABLE(of, sht3x_of_match); + static struct i2c_driver sht3x_i2c_driver = { - .driver.name = "sht3x", + .driver = { + .name = "sht3x", + .of_match_table = sht3x_of_match, + }, .probe = sht3x_probe, .id_table = sht3x_ids, }; @@ -948,5 +961,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] 7+ messages in thread
* Re: [PATCH v2 3/3] hwmon: (sht3x) Add support for GXCAS GXHT30 2026-03-19 11:38 ` [PATCH v2 3/3] hwmon: (sht3x) Add support for " Zaixiang Xu @ 2026-03-19 18:20 ` Guenter Roeck 0 siblings, 0 replies; 7+ messages in thread From: Guenter Roeck @ 2026-03-19 18:20 UTC (permalink / raw) To: Zaixiang Xu Cc: robh, krzk+dt, conor+dt, linux-hwmon, devicetree, linux-kernel On 3/19/26 04:38, Zaixiang Xu wrote: > Add support for GXCAS GXHT30 sensor to the sht3x driver. The GXHT30 is software compatible with the Sensirion SHT3x series. > Line length. Please run checkpatch --strict on your patches. > Signed-off-by: Zaixiang Xu <zaixiang.xu.dev@gmail.com> > --- > drivers/hwmon/sht3x.c | 16 +++++++++++++++- > 1 file changed, 15 insertions(+), 1 deletion(-) > > diff --git a/drivers/hwmon/sht3x.c b/drivers/hwmon/sht3x.c > index 08306ccb6d0b..4384c18115e9 100644 > --- a/drivers/hwmon/sht3x.c > +++ b/drivers/hwmon/sht3x.c > @@ -934,13 +934,26 @@ static const struct i2c_device_id sht3x_ids[] = { > {"sht3x", sht3x}, > {"sts3x", sts3x}, > {"sht85", sht3x}, > + {"gxht30", sht3x}, > {} > }; > > MODULE_DEVICE_TABLE(i2c, sht3x_ids); > > +static const struct of_device_id sht3x_of_match[] = { > + { .compatible = "sensirion,sht3x" }, > + { .compatible = "sensirion,sts3x" }, > + { .compatible = "sensirion,sht85" }, > + { .compatible = "gxcas,gxht30" }, As mentioned in the bindings feedback, those should be explicit chip names and not include wildcards. Also, this is doing more than advertised in the commit description. It adds explicit devicetree bindings support. That should be a separate patch. Thanks, Guenter > + { } > +}; > +MODULE_DEVICE_TABLE(of, sht3x_of_match); > + > static struct i2c_driver sht3x_i2c_driver = { > - .driver.name = "sht3x", > + .driver = { > + .name = "sht3x", > + .of_match_table = sht3x_of_match, > + }, > .probe = sht3x_probe, > .id_table = sht3x_ids, > }; > @@ -948,5 +961,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"); ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-03-19 18:20 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-03-19 11:38 [PATCH v2 0/3] hwmon: (sht3x) Add support for GXCAS GXHT30 Zaixiang Xu 2026-03-19 11:38 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add GXCAS Technology Zaixiang Xu 2026-03-19 16:55 ` Conor Dooley 2026-03-19 11:38 ` [PATCH v2 2/3] dt-bindings: hwmon: Add Sensirion SHT3x and GXCAS GXHT30 Zaixiang Xu 2026-03-19 17:05 ` Conor Dooley 2026-03-19 11:38 ` [PATCH v2 3/3] hwmon: (sht3x) Add support for " Zaixiang Xu 2026-03-19 18:20 ` Guenter Roeck
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox