Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp48842ybl; Tue, 10 Dec 2019 17:21:42 -0800 (PST) X-Google-Smtp-Source: APXvYqwWNYoPXcWZKFoznhuw/ZfsdHiJgirS+Wc9ugvs7bVMSdi/IlDgEqpeFsQsuswomQfK5/pA X-Received: by 2002:aca:534f:: with SMTP id h76mr837134oib.23.1576027302698; Tue, 10 Dec 2019 17:21:42 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o15si138949otp.314.2019.12.10.17.21.30; Tue, 10 Dec 2019 17:21:42 -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 S1727113AbfLKBUd convert rfc822-to-8bit (ORCPT + 99 others); Tue, 10 Dec 2019 20:20:33 -0500 Received: from sender4-op-o11.zoho.com ([136.143.188.11]:17174 "EHLO sender4-op-o11.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726364AbfLKBUc (ORCPT ); Tue, 10 Dec 2019 20:20:32 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1576027206; cv=none; d=zohomail.com; s=zohoarc; b=Qls1+D50q9jqiloiGr+oqzkYQlGl/KBW4TDsUMtREMSgNfAdVDPN7fuQ3bFk85x+2lKSbzgZ+WD+QoqThLnUUDzYtdV/Tx6HtBvz6ol1YprXJwbYHGOUwvvxDEhTLvNW0HR+8Mb4FAkCsO8YtbLYYmPhwNS3/8tfBgrFAows0vQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576027206; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=lVmHve7IaGJq1mAmCV0uHiy0RloySQLIlcKn39Lv3RE=; b=bCBKeuZk0ycRlWGcxCdQijn8kd/L1bjP5bO7jXVlDdhL+a6cZr0ZiK2z85VLDFl7ZPYx+37VRuVFOVSTEWDsGZPToeNkgMHneKR6ETlqDukCQchvfRBTWzkv9jNuCGig5ay1DfjZxaN4f8u1Ro5Ajd4+AjYG1E1ZiOpAJ18U+2Y= 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 157602720459486.03165444394608; Tue, 10 Dec 2019 17:20:04 -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 , Dan Robertson Message-ID: <20191211010308.1525-2-dan@dlrobertson.com> Subject: [PATCH v6 1/2] dt-bindings: iio: accel: bma400: add bindings Date: Wed, 11 Dec 2019 01:03:07 +0000 X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191211010308.1525-1-dan@dlrobertson.com> References: <20191211010308.1525-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 | 39 +++++++++++++++++++ 1 file changed, 39 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..03b7ad345523 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/accel/bosch,bma400.yaml @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: GPL-2.0 +%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 + +required: + - compatible + - reg + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + accelerometer@14 { + compatible = "bosch,bma400"; + reg = <0x14>; + }; + };