Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3376819ybl; Fri, 20 Dec 2019 08:18:25 -0800 (PST) X-Google-Smtp-Source: APXvYqyM8dYdg8XbF8n0nTS1QEChU5ypnzbhoXtqMg1UHMWMkST2ys+iEXodDtmg5nHWWQT1nvT4 X-Received: by 2002:a05:6830:1bf8:: with SMTP id k24mr1726184otb.215.1576858705279; Fri, 20 Dec 2019 08:18:25 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l18si5429802oth.236.2019.12.20.08.18.07; Fri, 20 Dec 2019 08:18:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; arc=fail (body hash mismatch); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727442AbfLTQRF convert rfc822-to-8bit (ORCPT + 99 others); Fri, 20 Dec 2019 11:17:05 -0500 Received: from sender4-op-o11.zoho.com ([136.143.188.11]:17123 "EHLO sender4-op-o11.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727233AbfLTQRE (ORCPT ); Fri, 20 Dec 2019 11:17:04 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1576858594; cv=none; d=zohomail.com; s=zohoarc; b=eq/PtXIpmw8mnC3IWs3ti6rwVt+8SKQesioHqGCPfXU8Gvon3nTKKZ617L5z8gRyElOrP3Lc0S03iuwZWo7Enmy3oNdsj3MsUG2iDzAB6YOF3d8XD7lYGjhwhn6m3m3oN3hNFod6Rxdm0wjiTWKGVEoEiHBoIU/2juudX2b168I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576858594; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=pLwgZ0YyOJqDcJRvT8Lzm1i6k9X19Sta8/0yJwxoJ7A=; b=P9qM5KGlCvWBU0Qna9BgDKViikETbUeJkPAc8EfDc1fjYEakKj4HMMKXXVBvcmn4IYCvQj7NQXkbKKAyLxcYafWvsPEOChb7VGUYNeUPB1DJwUU4Uby2O/XkvxEKlUp9SlJ/y3rDH1OE9XvXz///JVZVxDJ7yc1d6qiluPVwoTM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=dlrobertson.com; spf=pass smtp.mailfrom=dan@dlrobertson.com; dmarc=pass header.from= header.from= Received: from nessie.verizon.net (pool-173-73-58-202.washdc.fios.verizon.net [173.73.58.202]) by mx.zohomail.com with SMTPS id 1576858592422244.36209695534615; Fri, 20 Dec 2019 08:16:32 -0800 (PST) From: Dan Robertson To: Jonathan Cameron , linux-iio@vger.kernel.org, Peter Meerwald-Stadler Cc: Andy Shevchenko , devicetree@vger.kernel.org, Hartmut Knaack , Rob Herring , Mark Rutland , linux-kernel@vger.kernel.org, Randy Dunlap , Joe Perches , Linus Walleij , Dan Robertson Message-ID: <20191220160051.26321-2-dan@dlrobertson.com> Subject: [PATCH v8 1/3] dt-bindings: iio: accel: bma400: add bindings Date: Fri, 20 Dec 2019 16:00:49 +0000 X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191220160051.26321-1-dan@dlrobertson.com> References: <20191220160051.26321-1-dan@dlrobertson.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT X-ZohoMailClient: External Content-Type: text/plain; charset=utf8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add devicetree binding for the Bosch BMA400 3-axes ultra-low power accelerometer sensor. Signed-off-by: Dan Robertson --- .../bindings/iio/accel/bosch,bma400.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/accel/bosch,bma400.yaml diff --git a/Documentation/devicetree/bindings/iio/accel/bosch,bma400.yaml b/Documentation/devicetree/bindings/iio/accel/bosch,bma400.yaml new file mode 100644 index 000000000000..e87cb636b3e2 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/accel/bosch,bma400.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/accel/bosch,bma400.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bosch BMA400 triaxial acceleration sensor + +maintainers: + - Dan Robertson + +description: | + Acceleration and temerature iio sensors with an i2c interface + + Specifications about the sensor can be found at: + https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BMA400-DS000.pdf + +properties: + compatible: + enum: + - bosch,bma400 + + 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 + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + accelerometer@14 { + compatible = "bosch,bma400"; + reg = <0x14>; + vdd-supply = <&vdd>; + vddio-supply = <&vddio>; + interrupt-parent = <&gpio0>; + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; + }; + };