From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95D4AC83003 for ; Wed, 29 Apr 2020 13:40:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 757C02087E for ; Wed, 29 Apr 2020 13:40:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linumiz.com header.i=@linumiz.com header.b="BacXzOBA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728484AbgD2NkS (ORCPT ); Wed, 29 Apr 2020 09:40:18 -0400 Received: from gproxy9-pub.mail.unifiedlayer.com ([69.89.20.122]:53307 "EHLO gproxy9-pub.mail.unifiedlayer.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728474AbgD2NkQ (ORCPT ); Wed, 29 Apr 2020 09:40:16 -0400 Received: from cmgw11.unifiedlayer.com (unknown [10.9.0.11]) by gproxy9.mail.unifiedlayer.com (Postfix) with ESMTP id 1EAC01E0843 for ; Wed, 29 Apr 2020 07:40:15 -0600 (MDT) Received: from md-in-79.webhostbox.net ([43.225.55.182]) by cmsmtp with ESMTP id Tmwej45KRVKjoTmwgjXnZy; Wed, 29 Apr 2020 07:40:15 -0600 X-Authority-Reason: nr=8 X-Authority-Analysis: v=2.3 cv=D8xp1MZj c=1 sm=1 tr=0 a=LfuyaZh/8e9VOkaVZk0aRw==:117 a=LfuyaZh/8e9VOkaVZk0aRw==:17 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=qf4gfuq51q0A:10:nop_charset_1 a=cl8xLZFz6L8A:10:nop_rcvd_month_year a=oz0wMknONp8A:10:endurance_base64_authed_username_1 a=vU9dKmh3AAAA:8 a=gEfo2CItAAAA:8 a=U4Au-FSsymrcop1UMgkA:9 a=k40Crp0UdiQA:10:nop_charset_2 a=rsP06fVo5MYu2ilr0aT5:22 a=sptkURWiP4Gy88Gu7hUp:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linumiz.com ; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References :In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=x/MFNzAJcS07WLC0HV/XoJWLUxwR781mQq/IIrAfjro=; b=BacXzOBA+UnNkwTGM24L16I7e9 SH34QLIXeTnDwFZxmLp5QIhOV5HFeA4lO1a8j12zqmGK6tNLxUJil6Zjaomuecb6IVFrpwYpU0Neh thaaPYE4W6Dk85Ursy98he0XZLuD7WsXIpFuXIJwdDVnb1J1nPsQiPTGM8CmE5++sw6IW+8pOZa+0 5hwxZo2/F/Es9Ct2DU0Z0SLca0IwoOt0LS/IRMz3+n2XZBTjgk3l3kWIszQhSvF7jQMKMmuNKSaCX +rjF+BUFLKSaXHI0FHXcE6YA5WMiGE9IlnwyeAbJn0u49aXHWsBHUH44m8Lz4gYIICyqhcN6J/Jzb dUFm341A==; Received: from p5b3f6bb1.dip0.t-ipconnect.de ([91.63.107.177]:33262 helo=localhost.localdomain) by md-in-79.webhostbox.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1jTmwd-0009y4-06; Wed, 29 Apr 2020 13:40:11 +0000 From: Saravanan Sekar To: robh+dt@kernel.org, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, broonie@kernel.org, lgirdwood@gmail.com, saravanan@linumiz.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [PATCH v2 1/4] dt-bindings: iio: add document bindings for wsen-itds accel sensor Date: Wed, 29 Apr 2020 15:39:40 +0200 Message-Id: <20200429133943.18298-2-saravanan@linumiz.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200429133943.18298-1-saravanan@linumiz.com> References: <20200429133943.18298-1-saravanan@linumiz.com> MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - md-in-79.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - linumiz.com X-BWhitelist: no X-Source-IP: 91.63.107.177 X-Source-L: No X-Exim-ID: 1jTmwd-0009y4-06 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: p5b3f6bb1.dip0.t-ipconnect.de (localhost.localdomain) [91.63.107.177]:33262 X-Source-Auth: saravanan@linumiz.com X-Email-Count: 14 X-Source-Cap: bGludW1jbWM7aG9zdGdhdG9yO21kLWluLTc5LndlYmhvc3Rib3gubmV0 X-Local-Domain: yes Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add device tree binding information for wsen-itds accel sensor driver. Signed-off-by: Saravanan Sekar --- .../bindings/iio/accel/we,wsen-itds.yaml | 55 +++++++++++++++++++ 1 file changed, 55 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..eb01ed88091b --- /dev/null +++ b/Documentation/devicetree/bindings/iio/accel/we,wsen-itds.yaml @@ -0,0 +1,55 @@ +# 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 + +description: | + Acceleration and temperature iio sensor with an i2c interface. + The sensor provides additional application specific features like + tap detection, 6D orientation, 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 + +additionalProperties: false + +examples: + - | + #include + #include + 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