Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2732081pxb; Tue, 19 Jan 2021 04:56:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzr10BNmtywczBt8Wz2KMvKVGW6tSZXQmnAvuujmofBeIhFZ2zSuZxrDevMTvxhNV89325X X-Received: by 2002:a17:906:494c:: with SMTP id f12mr3021994ejt.56.1611060962520; Tue, 19 Jan 2021 04:56:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611060962; cv=none; d=google.com; s=arc-20160816; b=Ak1EGmQ6TZ6X3AW42Ngv3B6K7RzJgv3jkKG6fcLhOtX92qvsTamKu1E+q2vTuMWNl9 yeZK6aeZ84MTRvNuP75/HYhyCX3ZcGVA76vumX/V79XRWVD3ODDIfulX3Mdv5MpH08Pg yv0mDZDxsdtBtsvzDUcq5rqMjOqeM7sPqowKOX/qGuoWBrLV2DoYVLNxq0hhAv3kLGiz euIWJL6YASN/D/Uiu7BxWjYidBAvY8FTcCC2CUK7PONP+dOARR0lsoqdfQ5x+3FKtFEq vdwKBzPYBwaqhGt9AJRC5aIZJj7c4JIpsmY+4T/nzkBD/jMAxXgOIPTZfETB+lXAMD3F DocQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=rWGiJ2V3FiytuUoDy0A731Cx0wneHmIuFstAZw+Qo/k=; b=et+3l6U05TTcfgJY1m3Rz1WAIMKS37M6ma+VdgOgFiqvXrMbW1Ys40yvA9lLZFT1ce o1cJRmySPmHaWasSlgoO/wVPfRq/OvakHH1bTpTqM2iX7eEGePWB+ere8yx3hl/3XWZS 1I3rvTnxQ5cClQgQIOkDG4P2IvrI0w0OFK3zPQ1xKpriR3rJXOioaXuYtfXkYhidkvi5 WZD5kdSE3t07aZQW91rw/ric61J8eUs0sraRvPd1BuRJVxM3C9qla762wleFmTeAj7GK MYn7PMlKNyE8bOPGwMQUu3uph2pSUfEJLl9wJdqFMYmIq50SyKsGE9ecVRiYxZwMLd3i Pomw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v13si7998605ejf.621.2021.01.19.04.55.39; Tue, 19 Jan 2021 04:56:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391991AbhASMxA (ORCPT + 99 others); Tue, 19 Jan 2021 07:53:00 -0500 Received: from jax4mhob15.registeredsite.com ([64.69.218.103]:49612 "EHLO jax4mhob15.registeredsite.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389750AbhASMrU (ORCPT ); Tue, 19 Jan 2021 07:47:20 -0500 Received: from mailpod.hostingplatform.com ([10.30.71.205]) by jax4mhob15.registeredsite.com (8.14.4/8.14.4) with ESMTP id 10JCkRDJ110432 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 19 Jan 2021 07:46:28 -0500 Received: (qmail 17343 invoked by uid 0); 19 Jan 2021 12:46:27 -0000 X-TCPREMOTEIP: 83.128.90.119 X-Authenticated-UID: mike@milosoftware.com Received: from unknown (HELO phenom.domain?not?set.invalid) (mike@milosoftware.com@83.128.90.119) by 0 with ESMTPA; 19 Jan 2021 12:46:27 -0000 From: Mike Looijmans To: linux-iio@vger.kernel.org Cc: Mike Looijmans , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 1/2] dt-bindings: iio: accel: Add bmi088 accelerometer bindings Date: Tue, 19 Jan 2021 13:46:21 +0100 Message-Id: <20210119124622.9490-1-mike.looijmans@topic.nl> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds the device-tree bindings for the Bosch Sensortec BMI088 IMU, the accelerometer part. Signed-off-by: Mike Looijmans --- Changes in v6: I't been almost a year since the last commit, sorry... Fixed the yaml errors Add interrupt, vdd and vddio properties Changes in v5: submit together with driver code as patch series Changes in v2: convert to yaml format .../bindings/iio/accel/bosch,bmi088.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml diff --git a/Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml b/Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml new file mode 100644 index 000000000000..459b9969fd12 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/accel/bosch,bmi088.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/bosch,bmi088.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bosch BMI088 IMU accelerometer part + +maintainers: + - Mike Looijmans + +description: | + Acceleration part of the IMU sensor with an SPI interface + Specifications about the sensor can be found at: + https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmi088-ds001.pdf + +properties: + compatible: + enum: + - bosch,bmi088_accel + + reg: + maxItems: 1 + + vdd-supply: true + + vddio-supply: true + + interrupts: + minItems: 1 + maxItems: 2 + description: | + Type should be either IRQ_TYPE_LEVEL_HIGH or IRQ_TYPE_LEVEL_LOW. + The first interrupt listed must be the one connected to the INT1 pin, the + second must be the one connected to the INT2 pin. + +required: + - compatible + - reg + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + bmi088_accel@1 { + compatible = "bosch,bmi088_accel"; + reg = <1>; + spi-max-frequency = <10000000>; + interrupt-parent = <&gpio6>; + interrupts = <19 IRQ_TYPE_LEVEL_LOW>; + }; + }; +... -- 2.17.1