From: Conor Dooley <conor@kernel.org>
To: Zaixiang Xu <zaixiang.xu.dev@gmail.com>
Cc: linux@roeck-us.net, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, linux-hwmon@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/3] dt-bindings: hwmon: Add Sensirion SHT3x and GXCAS GXHT30
Date: Thu, 19 Mar 2026 17:05:24 +0000 [thread overview]
Message-ID: <20260319-matcher-private-103adc8d3252@spud> (raw)
In-Reply-To: <1773920314-17755-3-git-send-email-zaixiang.xu.dev@gmail.com>
[-- 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 --]
next prev parent reply other threads:[~2026-03-19 17:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2026-03-19 11:38 ` [PATCH v2 3/3] hwmon: (sht3x) Add support for " Zaixiang Xu
2026-03-19 18:20 ` Guenter Roeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260319-matcher-private-103adc8d3252@spud \
--to=conor@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=robh@kernel.org \
--cc=zaixiang.xu.dev@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox