[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200420215248.GA26239@bogus>
Date: Mon, 20 Apr 2020 16:52:48 -0500
From: Rob Herring <robh@...nel.org>
To: Saravanan Sekar <saravanan@...umiz.com>
Cc: jic23@...nel.org, knaack.h@....de, lars@...afoo.de,
pmeerw@...erw.net, broonie@...nel.org, lgirdwood@...il.com,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-iio@...r.kernel.org
Subject: Re: [PATCH 2/4] dt-bindings: iio: add document bindings for
wsen-itds accel sensor
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@...umiz.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@...umiz.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
>
Powered by blists - more mailing lists