hwmon: (sht3x) Add support for GXCAS GXHT30
Subsystems (2)
v4 cover hwmon: (sht3x) Add support for GXCAS GXHT30
This series adds support for the GXCAS GXHT30 humidity and temperature sensor. The GXHT30 is software compatible with the Sensirion SHT30 series.
This series also introduces the missing YAML binding schema for the Sensirion SHT30 family, replacing wildcards with specific model names.
Changes in v4:
- Use match data (.data) to correctly distinguish between SHT (humidity/ temperature) and STS (temperature-only) sensors in the driver, fixing a logic error where STS sensors would report bogus humidity (suggested by Guenter Roeck and AI review).
- Update YAML bindings to use fallback compatibles for compatible chips and add optional 'interrupts' and 'vdd-supply' properties (suggested by Guenter Roeck and AI review).
- Simplified of_match_table to only include base models due to the newly added fallback mechanism.
- Renamed binding file from sensirion,sht3x.yaml to sensirion,sht30.yaml.
- Include Conor's Acked-by for the vendor-prefix patch.
Changes in v3:
- Split driver changes into two patches: one for DT framework and one for adding GXHT30 (suggested by Guenter Roeck).
- Fixed commit message line lengths (suggested by Guenter Roeck).
- Removed wildcards 'x' from compatibles and used specific model names (suggested by Conor Dooley).
- Added manufacturer website to vendor-prefix patch (suggested by Conor Dooley).
- Fixed missing newline at end of YAML file (reported by kernel test robot).
Changes in v2:
- Fix placeholder "Your Name" in MODULE_AUTHOR.
Zaixiang Xu (4):
dt-bindings: vendor-prefixes: Add GXCAS Technology
dt-bindings: hwmon: Add Sensirion SHT30 series
hwmon: (sht3x) Add devicetree support
hwmon: (sht3x) Add support for GXCAS GXHT30
.../bindings/hwmon/sensirion,sht30.yaml | 50 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + drivers/hwmon/sht3x.c | 16 +++++- 3 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/hwmon/sensirion,sht30.yaml
Signature · 1 line
2.34.1
PATCH v4 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
@@ -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,.*":
Signature · 1 line
2.34.1
PATCH v4 2/4 dt-bindings: hwmon: Add Sensirion SHT30 series
In reply to Zaixiang XuAdd YAML devicetree binding schema for Sensirion SHT30 series. Use fallback compatibles for compatible chips and add optional interrupts and vdd-supply properties.
--- .../bindings/hwmon/sensirion,sht30.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/sensirion,sht30.yaml
Documentation/devicetree/bindings/hwmon/sensirion,sht30.yaml new file +50 -0
@@ -0,0 +1,50 @@ +# 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-schema.yaml# + +title: Sensirion SHT30 Humidity and Temperature Sensor + +maintainers: + - Zaixiang Xu <[email protected]> + +description: | + The SHT30 series is a family of humidity and temperature sensors by Sensirion. + Compatible sensors like the GXCAS GXHT30 are also supported. + +properties: + compatible: + enum: + - gxcas,gxht30 + - sensirion,sht30 + - sensirion,sht31 + - sensirion,sht35 + - sensirion,sht85 + - sensirion,sts30 + - sensirion,sts31 + - sensirion,sts32 + - sensirion,sts35 + + 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>; + }; + }; +
Signature · 1 line
2.34.1
PATCH v4 3/4 hwmon: (sht3x) Add devicetree support
In reply to Zaixiang XuAdd of_match_table to support devicetree based instantiation. Specific match data is used to distinguish between temperature/humidity (SHT) and temperature-only (STS) sensors.
--- drivers/hwmon/sht3x.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
drivers/hwmon/sht3x.c +12 -1
@@ -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 *)sht3x }, + { .compatible ="sensirion,sts30" , .data = (void *)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
PATCH v4 4/4 hwmon: (sht3x) Add support for GXCAS GXHT30
In reply to Zaixiang XuAdd support for the GXCAS GXHT30 humidity and temperature sensor. The GXHT30 is software compatible with the Sensirion SHT30.
--- drivers/hwmon/sht3x.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/hwmon/sht3x.c +3 -0
@@ -934,6 +934,7 @@ static const struct i2c_device_id sht3x_ids[] = { {"sht3x", sht3x}, {"sts3x", sts3x}, {"sht85", sht3x}, + {"gxht30", sht3x}, {} };
@@ -942,6 +943,7 @@ MODULE_DEVICE_TABLE(i2c, sht3x_ids);static const struct of_device_id sht3x_of_match[] = { { .compatible ="sensirion,sht30" , .data = (void *)sht3x }, { .compatible ="sensirion,sts30" , .data = (void *)sts3x }, + { .compatible ="gxcas,gxht30" , .data = (void *)sht3x }, { } };
@@ -959,5 +961,6 @@ module_i2c_driver(sht3x_i2c_driver);MODULE_AUTHOR ("David Frey <[email protected]>" );MODULE_AUTHOR ("Pascal Sachs <[email protected]>" ); +MODULE_AUTHOR ("Zaixiang Xu <[email protected]>" );MODULE_DESCRIPTION ("Sensirion SHT3x humidity and temperature sensor driver" );MODULE_LICENSE ("GPL" );
Signature · 1 line
2.34.1
Conor Dooley
NAKRe: [PATCH v4 2/4] dt-bindings: hwmon: Add Sensirion SHT30 series
In reply to Zaixiang XuQuoted 6 lines · Zaixiang Xu
Add YAML devicetree binding schema for Sensirion SHT30 series. Use fallback compatibles for compatible chips and add optional interrupts and vdd-supply properties.
The robot did not report that this binding was missing. It also told you not to add these tags.
You also ignored my and Krzysztof's reviews.
NAK.
pw-bot: changes-requested
Quoted 65 lines
Signed-off-by Zaixiang Xu <[email protected]>--- .../bindings/hwmon/sensirion,sht30.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/sensirion,sht30.yamlDocumentation/devicetree/bindings/hwmon/sensirion,sht30.yaml new file +50
-0@@ -0,0 +1,50 @@ +# 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-schema.yaml# + +title: Sensirion SHT30 Humidity and Temperature Sensor + +maintainers: + - Zaixiang Xu <[email protected]> + +description: | + The SHT30 series is a family of humidity and temperature sensors by Sensirion. + Compatible sensors like the GXCAS GXHT30 are also supported. + +properties: + compatible: + enum: + - gxcas,gxht30 + - sensirion,sht30 + - sensirion,sht31 + - sensirion,sht35 + - sensirion,sht85 + - sensirion,sts30 + - sensirion,sts31 + - sensirion,sts32 + - sensirion,sts35 + + 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>; + }; + }; +Signature · 1 line
2.34.1
Guenter Roeck
maintainerRe: [PATCH v4 2/4] dt-bindings: hwmon: Add Sensirion SHT30 series
Quoted 8 lines · Conor Dooley
Quoted 6 lines · Zaixiang Xu
Add YAML devicetree binding schema for Sensirion SHT30 series. Use fallback compatibles for compatible chips and add optional interrupts and vdd-supply properties.
Quoted 7 lines
The robot did not report that this binding was missing. It also told you not to add these tags.
You also ignored my and Krzysztof's reviews.
NAK.
Maybe we should just point to AI feedback:
https://sashiko.dev/#/patchset/1774429690-129139-1-git-send-email-zaixiang.xu.dev%40gmail.com
and only get involved after AI does not report any problems.
Guenter
Quoted 67 lines
pw-bot: changes-requested
Quoted 65 lines
Signed-off-by Zaixiang Xu <[email protected]>--- .../bindings/hwmon/sensirion,sht30.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+)create mode 100644
Documentation/devicetree/bindings/hwmon/sensirion,sht30.yamlDocumentation/devicetree/bindings/hwmon/sensirion,sht30.yaml new file +50
-0@@ -0,0 +1,50 @@ +# 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-schema.yaml# + +title: Sensirion SHT30 Humidity and Temperature Sensor + +maintainers: + - Zaixiang Xu <[email protected]> + +description: | + The SHT30 series is a family of humidity and temperature sensors by Sensirion. + Compatible sensors like the GXCAS GXHT30 are also supported. + +properties: + compatible: + enum: + - gxcas,gxht30 + - sensirion,sht30 + - sensirion,sht31 + - sensirion,sht35 + - sensirion,sht85 + - sensirion,sts30 + - sensirion,sts31 + - sensirion,sts32 + - sensirion,sts35 + + 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>; + }; + }; +Signature · 1 line
2.34.1
Re: [PATCH v4 2/4] dt-bindings: hwmon: Add Sensirion SHT30 series
Quoted 14 lines · Guenter Roeck
Quoted 13 lines · Conor Dooley
Quoted 6 lines · Zaixiang Xu
Add YAML devicetree binding schema for Sensirion SHT30 series. Use fallback compatibles for compatible chips and add optional interrupts and vdd-supply properties.
The robot did not report that this binding was missing. It also told you not to add these tags.
You also ignored my and Krzysztof's reviews.
Quoted 9 lines
Quoted 2 lines
NAK.
Maybe we should just point to AI feedback:
https://sashiko.dev/#/patchset/1774429690-129139-1-git-send-email-zaixiang.xu.dev%40gmail.com
and only get involved after AI does not report any problems.
The presentation of info in that is weird, it creates a pseudo-commit message, and then goes on to talk about things that the pseudo-commit message has had culled.
Re: [PATCH v4 2/4] dt-bindings: hwmon: Add Sensirion SHT30 series
Quoted 20 lines · Conor Dooley
Quoted 19 lines · Guenter Roeck
Quoted 8 lines · Conor Dooley
Quoted 6 lines · Zaixiang Xu
Add YAML devicetree binding schema for Sensirion SHT30 series. Use fallback compatibles for compatible chips and add optional interrupts and vdd-supply properties.
Quoted 7 lines
The robot did not report that this binding was missing. It also told you not to add these tags.
You also ignored my and Krzysztof's reviews.
NAK.
Maybe we should just point to AI feedback:
Quoted 8 lines
Quoted 4 lines
https://sashiko.dev/#/patchset/1774429690-129139-1-git-send-email-zaixiang.xu.dev%40gmail.com
and only get involved after AI does not report any problems.
The presentation of info in that is weird, it creates a pseudo-commit message, and then goes on to talk about things that the pseudo-commit message has had culled.
How good is this LLM stuff at figuring out if previous review feedback has been resolved? Or is it not capable of looking at earlier revisions?
Guenter Roeck
maintainerRe: [PATCH v4 2/4] dt-bindings: hwmon: Add Sensirion SHT30 series
Quoted 26 lines · Conor Dooley
Quoted 25 lines · Conor Dooley
Quoted 23 lines · Guenter Roeck
Quoted 8 lines · Conor Dooley
Quoted 6 lines · Zaixiang Xu
Add YAML devicetree binding schema for Sensirion SHT30 series. Use fallback compatibles for compatible chips and add optional interrupts and vdd-supply properties.
Quoted 7 lines
The robot did not report that this binding was missing. It also told you not to add these tags.
You also ignored my and Krzysztof's reviews.
NAK.
Maybe we should just point to AI feedback:
https://sashiko.dev/#/patchset/1774429690-129139-1-git-send-email-zaixiang.xu.dev%40gmail.com
and only get involved after AI does not report any problems.
Quoted 6 lines
Quoted 3 lines
The presentation of info in that is weird, it creates a pseudo-commit message, and then goes on to talk about things that the pseudo-commit message has had culled.
How good is this LLM stuff at figuring out if previous review feedback has been resolved? Or is it not capable of looking at earlier revisions?
Both are interesting questions. For the first one, I had noticed that, but to me it seemed that the pseudo-commit message is an attempt to create a concise version of the commit message, and I have not seen evidence that the later comments did not also apply to the real commit message.
Anyway, copying Roman for feedback on both.
Thanks,
Guenter
Re: [PATCH v4 2/4] dt-bindings: hwmon: Add Sensirion SHT30 series
Quoted 31 lines · Guenter Roeck
Quoted 30 lines · Conor Dooley
Quoted 28 lines · Conor Dooley
Quoted 14 lines · Guenter Roeck
Quoted 13 lines · Conor Dooley
Quoted 6 lines · Zaixiang Xu
Add YAML devicetree binding schema for Sensirion SHT30 series. Use fallback compatibles for compatible chips and add optional interrupts and vdd-supply properties.
The robot did not report that this binding was missing. It also told you not to add these tags.
You also ignored my and Krzysztof's reviews.
Quoted 9 lines
Quoted 2 lines
NAK.
Maybe we should just point to AI feedback:
https://sashiko.dev/#/patchset/1774429690-129139-1-git-send-email-zaixiang.xu.dev%40gmail.com
and only get involved after AI does not report any problems.
The presentation of info in that is weird, it creates a pseudo-commit message, and then goes on to talk about things that the pseudo-commit message has had culled.
Quoted 8 lines
Quoted 2 lines
How good is this LLM stuff at figuring out if previous review feedback has been resolved? Or is it not capable of looking at earlier revisions?
Both are interesting questions. For the first one, I had noticed that, but to me it seemed that the pseudo-commit message is an attempt to create a concise version of the commit message, and I have not seen evidence that the later comments did not also apply to the real commit message.
Yeah, the comments did apply to the real commit message. I was just confusing to me to see what looked to me like a commit message not contain the info that was being referred to later on. I thought that the LLM was hallucinating the comments until I went back to this mail and realised the text was here.
Quoted 6 lines
Anyway, copying Roman for feedback on both.
Thanks,
Guenter
Re: [PATCH v4 2/4] dt-bindings: hwmon: Add Sensirion SHT30 series
Hello,
The pseudo-commit message is intentional, Chris Mason initially prompted it, and I'm honestly just using his format. The intention here is to ensure the LLM reviews the correct commit and at least understands what it's doing. Idk if it's really useful with Sashiko, but it's there and hopefully not too distracting.
Re previous versions: it's not implemented yet, but I plan to add this eventually.
Thanks!
Quoted 54 lines · Conor Dooley
Quoted 31 lines · Guenter Roeck
Quoted 30 lines · Conor Dooley
Quoted 28 lines · Conor Dooley
Quoted 14 lines · Guenter Roeck
Quoted 13 lines · Conor Dooley
Quoted 6 lines · Zaixiang Xu
Add YAML devicetree binding schema for Sensirion SHT30 series. Use fallback compatibles for compatible chips and add optional interrupts and vdd-supply properties.
The robot did not report that this binding was missing. It also told you not to add these tags.
You also ignored my and Krzysztof's reviews.
Quoted 9 lines
Quoted 2 lines
NAK.
Maybe we should just point to AI feedback:
https://sashiko.dev/#/patchset/1774429690-129139-1-git-send-email-zaixiang.xu.dev%40gmail.com
and only get involved after AI does not report any problems.
The presentation of info in that is weird, it creates a pseudo-commit message, and then goes on to talk about things that the pseudo-commit message has had culled.
Quoted 8 lines
Quoted 2 lines
How good is this LLM stuff at figuring out if previous review feedback has been resolved? Or is it not capable of looking at earlier revisions?
Both are interesting questions. For the first one, I had noticed that, but to me it seemed that the pseudo-commit message is an attempt to create a concise version of the commit message, and I have not seen evidence that the later comments did not also apply to the real commit message.
Yeah, the comments did apply to the real commit message. I was just confusing to me to see what looked to me like a commit message not contain the info that was being referred to later on. I thought that the LLM was hallucinating the comments until I went back to this mail and realised the text was here.
Quoted 6 lines
Anyway, copying Roman for feedback on both.
Thanks,
Guenter