hwmon: (sht3x) Add support for GXCAS GXHT30
Subsystems (3)
v7 cover hwmon: (sht3x) Add support for GXCAS GXHT30
This series adds devicetree support to the sht3x driver and support for the GXCAS GXHT30 humidity and temperature sensor, a drop-in replacement for the Sensirion SHT30.
Apologies for the long delay since v6.
Changes in v7:
- Model the higher accuracy parts as compatible with the base part of their group in the binding: SHT31/SHT35/SHT85 and GXHT30 fall back to "sensirion,sht30", STS31/STS32/STS35 fall back to "sensirion,sts30", and explain the grouping in the commit message (Krzysztof).
- Drop the "gxcas,gxht30" of_device_id entry and the "gxht30" i2c_device_id entry: the GXHT30 is handled entirely by the "sensirion,sht30" fallback, with no driver changes (Krzysztof). Patch 4 now only documents the chip in Documentation/hwmon/ sht3x.rst and the Kconfig help text, following how SHT85 support was documented.
- Start enum sht3x_chips at 1 so the OF match data is never NULL and i2c_get_match_data() does not silently fall back to i2c_device_id name matching (reported by Sashiko AI review on v6).
- Mention all optional properties in the binding commit message (Sashiko AI review on v6).
- Rebase onto hwmon-next to account for the conversion of i2c_device_id tables to named initializers.
- Drop the MODULE_AUTHOR addition; authorship is recorded in git.
Changes in v6:
- Drop the trivial-devices.yaml approach from v5; add a dedicated binding and a proper of_device_id table. (Guenter)
- Split into 4 patches: vendor prefix, binding, driver DT support, GXHT30 support.
Changes in v5:
- Move to trivial-devices.yaml and drop of_match_table (wrong approach, reverted in v6).
- Drop wildcards, list specific models.
Changes in v3/v4:
- Standalone YAML binding, split driver changes from binding changes.
Changes in v2:
- Fix placeholder in MODULE_AUTHOR, fix commit message wrapping.
Zaixiang Xu (4):
dt-bindings: vendor-prefixes: Add GXCAS Technology
dt-bindings: hwmon: Add Sensirion SHT30 series
hwmon: (sht3x) Add devicetree support
hwmon: (sht3x) Document support for GXCAS GXHT30
.../bindings/hwmon/sensirion,sht30.yaml | 71 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + Documentation/hwmon/sht3x.rst | 17 ++++- drivers/hwmon/Kconfig | 5 +- drivers/hwmon/sht3x.c | 15 +++- 5 files changed, 103 insertions(+), 7 deletions(-) create mode 100644 Documentation/devicetree/bindings/hwmon/sensirion,sht30.yaml
base-commit: ca078d004cf58137bcf8cb24a8b271397431ba58
Signature · 1 line
2.34.1
PATCH v7 1/4 dt-bindings: vendor-prefixes: Add GXCAS Technology
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
--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -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,.*":
Signature · 1 line
2.34.1
[email protected]
AI reviewRe: [PATCH v7 1/4] dt-bindings: vendor-prefixes: Add GXCAS Technology
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 7 lines
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.htmlAcked-by Conor Dooley <[email protected]>Signed-off-by Zaixiang Xu <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Re: [PATCH v7 1/4] dt-bindings: vendor-prefixes: Add GXCAS Technology
In reply to Zaixiang XuQuoted 7 lines · Zaixiang Xu
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.htmlAcked-by Conor Dooley <[email protected]>Signed-off-by Zaixiang Xu <[email protected]>
Applied.
Thanks,
Guenter
PATCH v7 2/4 dt-bindings: hwmon: Add Sensirion SHT30 series
In reply to Zaixiang XuAdd 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.
--- .../bindings/hwmon/sensirion,sht30.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/sensirion,sht30.yaml
Documentation/devicetree/bindings/hwmon/sensirion,sht30.yaml new file +71 -0
@@ -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 <[email protected]> + +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 <dt-bindings/gpio/gpio.h> + #include <dt-bindings/interrupt-controller/irq.h> + + 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>; + }; + };
Signature · 1 line
2.34.1
[email protected]
AI reviewRe: [PATCH v7 2/4] dt-bindings: hwmon: Add Sensirion SHT30 series
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] Device tree nodes using the newly defined compatible strings will silently fail to probe because…
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Device tree nodes using the newly defined compatible strings will silently fail to probe because the existing sht3x driver lacks a corresponding of_match_table. --
--- Patch [2]: [PATCH v7 2/4] dt-bindings: hwmon: Add Sensirion SHT30 series --- commit a41d5511b126bf5d822219f86d5fe60736eb2e81
Author: Zaixiang Xu <[email protected]>
dt-bindings: hwmon: Add Sensirion SHT30 series
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.
Quoted 5 lines
Documentation/devicetree/bindings/hwmon/sensirion,sht30.yaml new file +0
-0
[ ... ]
Documentation/devicetree/bindings/hwmon/sensirion,sht30.yaml line 17
Quoted 9 lines
Documentation/devicetree/bindings/hwmon/sensirion,sht30.yaml new file +9
-0+maintainers: + - Zaixiang Xu <[email protected]> + +properties: + compatible: + oneOf: + - enum: + - sensirion,sht30 + - sensirion,sts30
[Severity: Medium]
Will devices using these newly defined compatible strings silently fail to probe?
Looking at the existing driver in drivers/hwmon/sht3x.c, it lacks an of_match_table and relies on this legacy ID table:
static const struct i2c_device_id sht3x_ids[] = {
{ .name = "sht3x", .driver_data = sht3x },
{ .name = "sts3x", .driver_data = sts3x },
{ .name = "sht85", .driver_data = sht3x },
{ }
};Because it relies on the I2C core extracting the compatible string to use as the legacy matching name, it will fail to match against strings like "sht30", "sts30", or "gxht30" from this new binding.
Does the driver need to be updated with an of_match_table to prevent this regression?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
Re: [PATCH v7 2/4] dt-bindings: hwmon: Add Sensirion SHT30 series
Quoted 6 lines · On Mon, 13 Jul 2026 07:55:12 +0000, [email protected] wrote:
[Severity: Medium]
Will devices using these newly defined compatible strings silently fail to probe?Looking at the existing driver in
drivers/hwmon/sht3x.c, it lacks anof_match_tableand relies on this legacy ID table:
[...]
Quoted 2 lines
Does the driver need to be updated with an
of_match_tableto prevent this regression?
The of_device_id table is added by patch 3/4 of this series ("hwmon: (sht3x) Add devicetree support"), so there is no gap once the series is applied. Within the series the binding intentionally comes first, following the usual convention that dt-bindings changes precede the driver changes that implement them.
The compatibles introduced here did not probe before this series either, so no bisection point regresses.
Thanks,
Zaixiang
Re: [PATCH v7 2/4] dt-bindings: hwmon: Add Sensirion SHT30 series
In reply to Zaixiang XuQuoted 11 lines · Zaixiang Xu
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.
Quoted 8 lines
The GXCAS GXHT30 is a drop-in replacement for the SHT30 and uses it as fallback as well.
Signed-off-by Zaixiang Xu <[email protected]>--- .../bindings/hwmon/sensirion,sht30.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/sensirion,sht30.yaml
Best regards,
Krzysztof
Re: [PATCH v7 2/4] dt-bindings: hwmon: Add Sensirion SHT30 series
In reply to Zaixiang XuQuoted 11 lines · Zaixiang Xu
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.
Quoted 5 lines
The GXCAS GXHT30 is a drop-in replacement for the SHT30 and uses it as fallback as well.
Signed-off-by Zaixiang Xu <[email protected]>Reviewed-by Krzysztof Kozlowski <[email protected]>
Applied.
Thanks,
Guenter
PATCH v7 3/4 hwmon: (sht3x) Add devicetree support
In reply to Zaixiang XuAdd 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.
--- drivers/hwmon/sht3x.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-)
drivers/hwmon/sht3x.c +13 -2
@@ -61,7 +61,7 @@ static const unsigned char sht3x_cmd_read_serial_number[] = { 0x37, 0x80 };#define SHT3X_MAX_HUMIDITY 100000enum sht3x_chips { - sht3x, + sht3x =1 , sts3x, };
@@ -939,8 +939,19 @@ static const struct i2c_device_id sht3x_ids[] = {MODULE_DEVICE_TABLE (i2c, sht3x_ids); +static const struct of_device_id sht3x_of_match[] = { + { .compatible ="sensirion,sht30" , .data = (void *)(uintptr_t )sht3x }, + { .compatible ="sensirion,sts30" , .data = (void *)(uintptr_t )sts3x }, + { } +}; + +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, };
Signature · 1 line
2.34.1
[email protected]
AI reviewRe: [PATCH v7 3/4] hwmon: (sht3x) Add devicetree support
Thank you for your contribution! Sashiko AI review found 5 potential issue(s) to consider:
Thank you for your contribution! Sashiko AI review found 5 potential issue(s) to consider:
Pre-existing issues:
- [Critical] Unaligned memory access when extracting the humidity value causes a kernel panic on strict-alignment architectures.
- [High] Integer overflow in limit_write() calculating raw limit values for temperature and humidity, resulting in limits wrapping around to 0.
- [High] Missing hwmon_lock() synchronization for extra sysfs attributes (heater_enable_store, repeatability_store).
- [High] Changing the 'repeatability' sysfs attribute fails to update the active measurement command, rendering the change ineffective until the update interval is toggled.
- [High] heater_enable_store() returns the I2C transfer length instead of the consumed buffer length, breaking sysfs writes.
--
--- Patch [3]: [PATCH v7 3/4] hwmon: (sht3x) Add devicetree support --- commit 3205e8775fc638eb1ac86ddf6feacc8304401779
Author: Zaixiang Xu <[email protected]>
hwmon: (sht3x) Add devicetree support
Add an of_device_id table to support devicetree based instantiation of the supported sensors. The match data distinguishes the humidity and temperature parts (SHT3x) from the temperature-only parts (STS3x). Enum sht3x_chips is started at 1 to prevent i2c_get_match_data() from falling back to device id matching on devicetree names.
Quoted 12 lines
drivers/hwmon/sht3x.c +1
-1@@ -61,7 +61,7 @@ static const unsigned char sht3x_cmd_read_serial_number[] = { 0x37, 0x80 };#define SHT3X_MAX_HUMIDITY 100000enum sht3x_chips { - sht3x, + sht3x =1 , sts3x, };
[ ... ]
drivers/hwmon/sht3x.c static const struct i2c_device_id sht3x_ids[] = { · line 948
Quoted 11 lines
drivers/hwmon/sht3x.c +7
-0@@ -939,8 +939,19 @@ static const struct i2c_device_id sht3x_ids[] = {MODULE_DEVICE_TABLE (i2c, sht3x_ids); +static const struct of_device_id sht3x_of_match[] = { + { .compatible ="sensirion,sht30" , .data = (void *)(uintptr_t )sht3x }, + { .compatible ="sensirion,sts30" , .data = (void *)(uintptr_t )sts3x }, + { } +}; + +MODULE_DEVICE_TABLE (of, sht3x_of_match);
While reviewing this patch, I noticed a few pre-existing regressions in this file that might be worth addressing.
[Severity: Critical]
This is a pre-existing issue, but does this unaligned memory access crash strict-alignment architectures?
drivers/hwmon/sht3x.c:sht3x_update_client() {
...
val = be16_to_cpup((__be16 *)buf);
data->temperature = sht3x_extract_temperature(val);
val = be16_to_cpup((__be16 *)(buf + 3));
data->humidity = sht3x_extract_humidity(val);
data->last_update = jiffies;
}
...
}Since buf is a stack-allocated byte array, buf + 3 is at an unaligned odd offset. Dereferencing this pointer triggers an alignment fault on strict alignment architectures like ARMv5 or SPARC.
Since these sysfs attributes are world-readable, could an unprivileged local user repeatedly read them to trigger a denial of service?
[Severity: High]
This isn't a bug introduced by this patch, but does this integer arithmetic overflow?
drivers/hwmon/sht3x.c:limit_write() {
...
/*
* ST = (T + 45) / 175 * 2^16
* SRH = RH / 100 * 2^16
* adapted for fixed point arithmetic and packed the same as
* in limit_read()
*/
raw = ((u32)(temperature + 45000) * 24543) >> (16 + 7);
raw |= ((humidity * 42950) >> 16) & 0xfe00;
...
}Writing the maximum allowed temperature or humidity limits, such as 130000 for temp1_max, causes the expression ((u32)(temperature + 45000) * 24543) to become 175000 * 24543 = 4295025000.
This overflows the 32-bit unsigned integer maximum. Does this result in a calculated raw limit of 0, corresponding to the hardware's minimum bounds, and incorrectly trigger a spurious hardware alert?
[Severity: High]
This is a pre-existing issue, but do these attributes violate the hwmon core locking rules?
drivers/hwmon/sht3x.c:heater_enable_store() {
...
mutex_lock(&data->i2c_lock);
if (status)
ret = i2c_master_send(client, (char *)&sht3x_cmd_heater_on,
SHT3X_CMD_LENGTH);
...
}drivers/hwmon/sht3x.c:repeatability_store() {
...
if (val > 2)
return -EINVAL;
data->repeatability = val;
return count;
}Attributes registered via the extra_groups parameter, such as heater_enable and repeatability, do not have automatic hwmon core serialization.
The hwmon subsystem guidelines explicitly require drivers to implement locking for extra attributes using hwmon_lock(). Should these functions use hwmon_lock() to prevent concurrent state modifications?
[Severity: High]
This isn't a bug introduced by this patch, but does repeatability_store() fail to update the active measurement command?
drivers/hwmon/sht3x.c:repeatability_store() {
...
if (val > 2)
return -EINVAL;
data->repeatability = val;
return count;
}When a user writes to the repeatability attribute, this updates the internal data->repeatability variable but fails to call sht3x_select_command() or send the required I2C commands to the device.
Does the driver continue to use the old command and wait time for all subsequent measurements in single-shot mode, rendering the change ineffective?
[Severity: High]
This is a pre-existing issue, but does heater_enable_store() break sysfs writes by returning the I2C transfer length?
drivers/hwmon/sht3x.c:heater_enable_store() {
...
if (status)
ret = i2c_master_send(client, (char *)&sht3x_cmd_heater_on,
SHT3X_CMD_LENGTH);
else
ret = i2c_master_send(client, (char *)&sht3x_cmd_heater_off,
SHT3X_CMD_LENGTH);
mutex_unlock(&data->i2c_lock);
return ret;
}This returns the result of i2c_master_send(), which is 2 (the length of the I2C command) instead of the consumed buffer length expected by sysfs.
If a user writes a string longer than 2 bytes, such as 'echo true', does the sysfs core assume a partial write and invoke the store function again with the remaining bytes, resulting in a spurious -EINVAL error?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
Re: [PATCH v7 3/4] hwmon: (sht3x) Add devicetree support
Quoted 6 lines · On Mon, 13 Jul 2026 08:01:29 +0000, [email protected] wrote:
While reviewing this patch, I noticed a few pre-existing regressions in this file that might be worth addressing.
[Severity: Critical]
This is a pre-existing issue, but does this unaligned memory access crash strict-alignment architectures?
[...]
Quoted 3 lines
[Severity: High]
This isn't a bug introduced by this patch, but does this integer arithmetic overflow?
Thanks for the report. All five findings are in pre-existing code and are not touched by this series, so I would prefer to keep them separate from the devicetree support here.
I checked the first two: the unaligned access in sht3x_update_client() (buf + 3 is an odd offset into a byte buffer, so it needs get_unaligned_be16()), and the limit_write() overflow (temperature is clamped to 130000, and (130000 + 45000) * 24543 = 4295025000 just exceeds U32_MAX, so writing the maximum limit wraps the raw temperature field to 0). Both look real.
I plan to go through all five and send fixes as a separate series after this one.
Thanks,
Zaixiang
Re: [PATCH v7 3/4] hwmon: (sht3x) Add devicetree support
In reply to Zaixiang XuQuoted 9 lines · Zaixiang Xu
Add an
of_device_idtable 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.
Quoted 8 lines
Start enum
sht3x_chipsat 1: with sht3x equal to 0, the OF match data for the SHT devices would be NULL, causingi2c_get_match_data()to fall back toi2c_device_idname 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 <[email protected]>
Applied.
Thanks,
Guenter
PATCH v7 4/4 hwmon: (sht3x) Document support for GXCAS GXHT30
In reply to Zaixiang XuThe 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.
--- Documentation/hwmon/sht3x.rst | 17 ++++++++++++++--- drivers/hwmon/Kconfig | 5 +++-- 2 files changed, 17 insertions(+), 5 deletions(-)
Documentation/hwmon/sht3x.rst +14 -3
@@ -31,6 +31,14 @@ Supported chips: Datasheet: https://sensirion.com/media/documents/4B40CEF3/640B2346/Sensirion_Humidity_Sensors_SHT85_Datasheet.pdf + * GXCAS GXHT30 + + Prefix: 'sht3x' + + Addresses scanned: none + + Datasheet: https://www.galaxy-cas.com/uploads/files/202509/GXHT30_datasheet_V3.9_20250919170350.pdf + Author: - David Frey <[email protected]>
@@ -40,9 +48,12 @@ Description ----------- This driver implements support for the Sensirion SHT3x-DIS, STS3x-DIS and SHT85 -series of humidity and temperature sensors. 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 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 manually +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 31500. 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
drivers/hwmon/Kconfig +3 -2
@@ -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. This driver can also be built as a module. If so, the module will be called sht3x.
Signature · 1 line
2.34.1
[email protected]
AI reviewRe: [PATCH v7 4/4] hwmon: (sht3x) Document support for GXCAS GXHT30
Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 9 lines
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 <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=4
Re: [PATCH v7 4/4] hwmon: (sht3x) Document support for GXCAS GXHT30
In reply to Zaixiang XuQuoted 9 lines · Zaixiang Xu
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 <[email protected]>
Applied.
Thanks,
Guenter