From patchwork Fri Oct 18 03:18:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Robertson X-Patchwork-Id: 1179150 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=dlrobertson.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 46vZMl3CYkz9sPW for ; Fri, 18 Oct 2019 16:29:07 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391761AbfJRF3G convert rfc822-to-8bit (ORCPT ); Fri, 18 Oct 2019 01:29:06 -0400 Received: from sender4-op-o19.zoho.com ([136.143.188.19]:17907 "EHLO sender4-op-o19.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731644AbfJRF3G (ORCPT ); Fri, 18 Oct 2019 01:29:06 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1571370212; cv=none; d=zoho.com; s=zohoarc; b=kbAtEvTx8j677Jh3CDpgwDgzcmgvqS0LPM28Mv1oyoCNcv4QI587ONMf2RGEn4tb6tKGwlXnGUGIMsOF4Mhto2GnYYFzD7W1WEJQHAdoQQhmqr1xjZsgKPS7G+udQW7oRBiwXeMSEWesetIZdgaAdUSgy+vba1uxrI0aFzwVsJY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571370212; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=0M608GbAEJ9tM/ZcceqJxrV2lLBxBGooik+pYAv+CVU=; b=UXve6fXAJA6R0D03WQobADYB1lMiPgVuwUvKMiFrth6H1b7xHRU3iOXZKsQCuJGBrC15OuIVgMUQyU8BRZTL5thfeL4xV4fWIMHK/qrETAHnItgHidQTd8Vhr8yyvj8PDNCAV4xZ4i2G+zlJp4gBJ6qkbmtJq+yG4Xjzabm9t24= ARC-Authentication-Results: i=1; mx.zoho.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-100-15-144-194.washdc.fios.verizon.net [100.15.144.194]) by mx.zohomail.com with SMTPS id 1571370211739228.7610384308789; Thu, 17 Oct 2019 20:43:31 -0700 (PDT) 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 , Dan Robertson Message-ID: <20191018031848.18538-2-dan@dlrobertson.com> Subject: [PATCH v4 1/2] dt-bindings: iio: accel: bma400: add bindings Date: Fri, 18 Oct 2019 03:18:47 +0000 X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191018031848.18538-1-dan@dlrobertson.com> References: <20191018031848.18538-1-dan@dlrobertson.com> MIME-Version: 1.0 X-ZohoMailClient: External Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add devicetree binding for the Bosch BMA400 3-axes ultra-low power accelerometer sensor. Signed-off-by: Dan Robertson --- .../devicetree/bindings/iio/accel/bma400.yaml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/accel/bma400.yaml diff --git a/Documentation/devicetree/bindings/iio/accel/bma400.yaml b/Documentation/devicetree/bindings/iio/accel/bma400.yaml new file mode 100644 index 000000000000..e0a85dc7bf34 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/accel/bma400.yaml @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/accel/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: + - | + i2c0 { + #address-cells = <1>; + #size-cells = <0>; + bma400@14 { + compatible = "bosch,bma400"; + reg = <0x14>; + }; + };