From: Rob Herring <robh@kernel.org>
To: Roan van Dijk <roan@protonic.nl>
Cc: Jonathan Cameron <jic23@kernel.org>,
Tomasz Duszynski <tomasz.duszynski@octakon.com>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, david@protonic.nl,
Lars-Peter Clausen <lars@metafoo.de>
Subject: Re: [PATCH 1/3] dt-bindings: iio: chemical: sensirion,scd4x: Add yaml description
Date: Tue, 31 Aug 2021 20:43:11 -0500 [thread overview]
Message-ID: <YS7arxN5f8o5VZTI@robh.at.kernel.org> (raw)
In-Reply-To: <20210831074832.16310-2-roan@protonic.nl>
On Tue, Aug 31, 2021 at 09:48:26AM +0200, Roan van Dijk wrote:
> Add documentation for the SCD4x carbon dioxide sensor from Sensirion.
>
> Signed-off-by: Roan van Dijk <roan@protonic.nl>
> ---
> .../iio/chemical/sensirion,scd4x.yaml | 45 +++++++++++++++++++
> 1 file changed, 45 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/chemical/sensirion,scd4x.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/chemical/sensirion,scd4x.yaml b/Documentation/devicetree/bindings/iio/chemical/sensirion,scd4x.yaml
> new file mode 100644
> index 000000000000..119356933b86
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/chemical/sensirion,scd4x.yaml
> @@ -0,0 +1,45 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/chemical/sensirion,scd4x.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Sensirion SCD4X carbon dioxide sensor
> +
> +maintainers:
> + - Roan van Dijk <roan@protonic.nl>
> +
> +description: |
> + Air quality sensor capable of measuring co2 concentration, temperature
> + and relative humidity.
> +
> +properties:
> + compatible:
> + enum:
> + - sensirion,scd4x
Looks like there's 2 parts with a s/w visible difference (low power
single shot mode). So this should be 2 compatibles without wildcards.
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + vdd-supply: true
> +
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + co2-sensor@62 {
> + compatible = "sensirion,scd4x";
> + reg = <0x62>;
> + };
> + };
> --
> 2.30.2
>
>
next prev parent reply other threads:[~2021-09-01 1:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-31 7:48 [PATCH 0/3] iio: chemical: Add support for Sensirion SCD4x CO2 sensor Roan van Dijk
2021-08-31 7:48 ` [PATCH 1/3] dt-bindings: iio: chemical: sensirion,scd4x: Add yaml description Roan van Dijk
2021-09-01 1:43 ` Rob Herring [this message]
2021-08-31 7:48 ` [PATCH 2/3] MAINTAINERS: Add myself as maintainer of the scd4x driver Roan van Dijk
2021-08-31 7:48 ` [PATCH 3/3] drivers: iio: chemical: Add support for Sensirion SCD4x CO2 sensor Roan van Dijk
2021-08-31 15:59 ` kernel test robot
2021-08-31 23:35 ` kernel test robot
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=YS7arxN5f8o5VZTI@robh.at.kernel.org \
--to=robh@kernel.org \
--cc=david@protonic.nl \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=roan@protonic.nl \
--cc=tomasz.duszynski@octakon.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;
as well as URLs for NNTP newsgroup(s).