From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Eddie James <eajames@linux.ibm.com>, linux-iio@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, dbarksdale@uplogix.com
Subject: Re: [PATCH 1/2] dt-bindings: iio: humidity: Add si7020 bindings
Date: Fri, 13 May 2022 10:48:41 +0200 [thread overview]
Message-ID: <aa090e32-6e6e-b318-f2ef-5f61d0d89da7@linaro.org> (raw)
In-Reply-To: <20220511190835.51046-2-eajames@linux.ibm.com>
On 11/05/2022 21:08, Eddie James wrote:
> Document the si7020 bindings with a new "silabs,skip-reset" property.
>
> Signed-off-by: Eddie James <eajames@linux.ibm.com>
Thank you for your patch. There is something to discuss/improve.
> ---
> .../bindings/iio/humidity/silabs,si7020.yaml | 42 +++++++++++++++++++
> 1 file changed, 42 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/humidity/silabs,si7020.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/humidity/silabs,si7020.yaml b/Documentation/devicetree/bindings/iio/humidity/silabs,si7020.yaml
> new file mode 100644
> index 000000000000..ab53bb8d9606
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/humidity/silabs,si7020.yaml
> @@ -0,0 +1,42 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/humidity/silabs,si7020.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: SI7020 humidity + temperature sensor
> +
> +maintainers:
> + - David Barksdale <dbarksdale@uplogix.com>
> +
> +description: |
> + The Silicon Labs Si7013/20/21 Relative Humidity and Temperature Sensors
> + are i2c devices which have an identical programming interface for
> + measuring relative humidity and temperature.
> +
> +properties:
> + compatible:
> + const: silabs,si7020
> +
> + reg:
> + maxItems: 1
> +
> + siliabs,skip-reset:
Do not describe implementation (driver) behavior, but the device hardware.
> + $ref: /schemas/types.yaml#/definitions/flag
"type:boolean" is shorter
> + description:
> + Disables resetting of the device during probe
> +
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + si7021-a20@40 {
Generic node name, so "sensor"?
> + silabs,skip-reset;
> + compatible = "silabs,si7020";
> + reg = <0x40>;
Order the properties: 1. compatible, 2. reg, then the rest.
> + };
> +...
Best regards,
Krzysztof
next prev parent reply other threads:[~2022-05-13 8:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-11 19:08 [PATCH 0/2] iio: humidity: si7020: Check device property for skipping reset in probe Eddie James
2022-05-11 19:08 ` [PATCH 1/2] dt-bindings: iio: humidity: Add si7020 bindings Eddie James
2022-05-11 22:08 ` Eddie James
2022-05-13 8:49 ` Krzysztof Kozlowski
2022-05-12 13:49 ` Rob Herring
2022-05-13 8:48 ` Krzysztof Kozlowski [this message]
2022-05-13 8:50 ` Krzysztof Kozlowski
2022-05-11 19:08 ` [PATCH 2/2] iio: humidity: si7020: Check device property for skipping reset in probe Eddie James
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=aa090e32-6e6e-b318-f2ef-5f61d0d89da7@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=dbarksdale@uplogix.com \
--cc=devicetree@vger.kernel.org \
--cc=eajames@linux.ibm.com \
--cc=jic23@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@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).