From: Krzysztof Kozlowski <krzk@kernel.org>
To: Gyeyoung Baek <gye976@gmail.com>, jic23@kernel.org
Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
lars@metafoo.de, gustavograzs@gmail.com,
javier.carrasco.cruz@gmail.com, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 2/3] dt-bindings: add device tree support for winsen MHZ19B CO2 sensor
Date: Sun, 30 Mar 2025 11:39:03 +0200 [thread overview]
Message-ID: <3c8f431c-f399-46a9-a031-b1fe39ccc9d4@kernel.org> (raw)
In-Reply-To: <20250329164905.632491-3-gye976@gmail.com>
On 29/03/2025 17:49, Gyeyoung Baek wrote:
> Add device tree support for winsen MHZ19B sensor.
>
> Signed-off-by: Gyeyoung Baek <gye976@gmail.com>
> ---
> .../bindings/iio/chemical/winsen,mhz19b.yaml | 31 +++++++++++++++++++
> 1 file changed, 31 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/chemical/winsen,mhz19b.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/chemical/winsen,mhz19b.yaml b/Documentation/devicetree/bindings/iio/chemical/winsen,mhz19b.yaml
> new file mode 100644
> index 000000000000..c08681e43281
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/chemical/winsen,mhz19b.yaml
> @@ -0,0 +1,31 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/chemical/dht11.yaml#
Never tested.
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: MHZ19B CO2 sensor
> +
> +maintainers:
> + - Gyeyoung Baek <gye976@gmail.com>
> +
> +description: |
> + CO2 sensor using UART serdev bus interface.
serdev is Linux thing. Just drop description.
> +
> +properties:
> + compatible:
> + const: winsen,mhz19b
> +
> +required:
> + - compatible
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + serial {
> + mhz19b-co2-sensor {
Node names should be generic. See also an explanation and list of
examples (not exhaustive) in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-03-30 9:39 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-29 16:49 [PATCH 0/3] add support for winsen MHZ19B CO2 sensor Gyeyoung Baek
2025-03-29 16:49 ` [PATCH 1/3] iio: chemical: " Gyeyoung Baek
2025-03-30 14:04 ` Jonathan Cameron
2025-03-31 14:36 ` gyeyoung
2025-04-04 11:39 ` Jonathan Cameron
2025-03-29 16:49 ` [PATCH 2/3] dt-bindings: add device tree " Gyeyoung Baek
2025-03-30 9:39 ` Krzysztof Kozlowski [this message]
2025-03-31 1:11 ` gyeyoung
2025-03-30 12:50 ` Jonathan Cameron
2025-03-31 1:32 ` gyeyoung
2025-03-29 16:49 ` [PATCH 3/3] dt-bindings: add winsen to the vendor prefixes Gyeyoung Baek
2025-03-30 9:37 ` Krzysztof Kozlowski
2025-03-31 0:13 ` gyeyoung
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=3c8f431c-f399-46a9-a031-b1fe39ccc9d4@kernel.org \
--to=krzk@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gustavograzs@gmail.com \
--cc=gye976@gmail.com \
--cc=javier.carrasco.cruz@gmail.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=robh@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).