From: Rob Herring <robh@kernel.org>
To: Saravanan Sekar <saravanan@linumiz.com>
Cc: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de,
pmeerw@pmeerw.net, broonie@kernel.org, lgirdwood@gmail.com,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-iio@vger.kernel.org
Subject: Re: [PATCH 2/4] dt-bindings: iio: add document bindings for wsen-itds accel sensor
Date: Mon, 20 Apr 2020 16:52:48 -0500 [thread overview]
Message-ID: <20200420215248.GA26239@bogus> (raw)
In-Reply-To: <20200415065535.7753-3-saravanan@linumiz.com>
On Wed, Apr 15, 2020 at 08:55:33AM +0200, Saravanan Sekar wrote:
> Add device tree binding information for wsen-itds accel sensor driver.
>
> Signed-off-by: Saravanan Sekar <saravanan@linumiz.com>
> ---
> .../bindings/iio/accel/we,wsen-itds.yaml | 53 +++++++++++++++++++
> 1 file changed, 53 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/accel/we,wsen-itds.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/accel/we,wsen-itds.yaml b/Documentation/devicetree/bindings/iio/accel/we,wsen-itds.yaml
> new file mode 100644
> index 000000000000..165cdf71966d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/accel/we,wsen-itds.yaml
> @@ -0,0 +1,53 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/accel/we,wsen-itds.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Würth Elektronik WSEN-ITDS triaxial acceleration sensor
> +
> +maintainers:
> + - Saravanan Sekar <saravanan@linumiz.com>
> +
> +description: |
> + Acceleration and temperature iio sensors with an i2c interface.
> + The sensor provies additional application specific features like
> + tap detection, 6D Orinetation, Free-fall, Motion and Activity.
> +
> +properties:
> + compatible:
> + enum:
> + - we,wsen-itds
> +
> + reg:
> + maxItems: 1
> +
> + vdd-supply:
> + description: phandle to the regulator that provides power to the accelerometer
> +
> + vddio-supply:
> + description: phandle to the regulator that provides power to the sensor's IO
> +
> + interrupts:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
Add:
additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> + #include <dt-bindings/interrupt-controller/irq.h>
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + accelerometer@18 {
> + compatible = "we,wsen-itds";
> + reg = <0x18>;
> + vdd-supply = <&vdd>;
> + vddio-supply = <&vddio>;
> + interrupt-parent = <&gpio0>;
> + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
> + };
> + };
> --
> 2.17.1
>
next prev parent reply other threads:[~2020-04-20 21:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-15 6:55 [PATCH 0/4] Add driver for wsen-itds accelerometer sensor Saravanan Sekar
2020-04-15 6:55 ` [PATCH 1/4] dt-bindings: Add an entry for Würth Elektronik, we Saravanan Sekar
2020-04-20 21:51 ` Rob Herring
2020-04-15 6:55 ` [PATCH 2/4] dt-bindings: iio: add document bindings for wsen-itds accel sensor Saravanan Sekar
2020-04-20 21:52 ` Rob Herring [this message]
2020-04-15 6:55 ` [PATCH 3/4] iio: accel: Add driver for wsen-itds accelerometer sensor Saravanan Sekar
2020-04-18 17:54 ` Jonathan Cameron
2020-04-27 18:32 ` Saravanan Sekar
2020-04-15 6:55 ` [PATCH 4/4] MAINTAINERS: Add entry " Saravanan Sekar
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=20200420215248.GA26239@bogus \
--to=robh@kernel.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=lgirdwood@gmail.com \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pmeerw@pmeerw.net \
--cc=saravanan@linumiz.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).