Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3598586pxb; Mon, 25 Jan 2021 22:57:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzvz4KLg3pQs7JlHj/EWT2BC8OKNCs1e49i7wWnEnRzS8BBjl6XgOkZ6YlM1DRZJt03ve/T X-Received: by 2002:a05:6402:1c0b:: with SMTP id ck11mr3448438edb.35.1611644229112; Mon, 25 Jan 2021 22:57:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611644229; cv=none; d=google.com; s=arc-20160816; b=KVFd1UUzT7VyV2p7uAcTeuZ5+fnqgOG1u/IuJPFafxw+CXjRIwmvt6swXk8k9VW51m wJAAupUaPgDHeNQyPpFBpwY47gG2kiepWL+9BPIR5qAB+vLGZVGgDYHIfTWx7dkqPEjZ FHzHCADYinns0ujldgLphKPoNHopr98T6L6HaniaeLd/Psf+UzKvzwVDbzIt9fBd01mD tUbI5RNokMGSzfYLRpCixMhToQam/YsqREwRGBB4uhNThCkZPziwpNMVKhjTd9sxL8Ml Y4dWlzYF9BhZaxWnbGuv+HLEDKJHqHelR/fOiBIidAeKyJkzn1GLayqiPJnyzjciRi0L xb+A== 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=eFoUclBKZIyMtppQjoQZv2Y3FdaQQg17WV6bev9Eezc=; b=QrtRRT06Hgy0PWpTnyMJBBOKnFw3ILylD4jSfrMosOYVwiQC7PE4CQvhwNShvZtRS7 o2uiXQcRawxYEXwRdSOhWu/4dBqRAwBgxadt5AuUDjCmlicmyGS2H1CrBLooaJq2+Ymu nXattue+lquyz+HAMfOqCzrtV/rpzg+pRNqvCccqNmhpuU1f1ad460Y5fVY0Zt2F2wuh VzCCLcg6bcatvfrr3/9RP+sJOAJdy/wCEYSMsL2zckPenZoFxhwEzE+eFuPCJe2r+qeb RwjQ6zixkiD1qUrF2vDuixxzDHw+GztipWETOPhmBK9rrSe1TzNmypsN751xv6Jqlrht 8rEw== 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 x22si6950534ejv.202.2021.01.25.22.56.44; Mon, 25 Jan 2021 22:57:09 -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 S2389145AbhAZGxl (ORCPT + 99 others); Tue, 26 Jan 2021 01:53:41 -0500 Received: from atl4mhfb03.myregisteredsite.com ([209.17.115.119]:36164 "EHLO atl4mhfb03.myregisteredsite.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729897AbhAYPfl (ORCPT ); Mon, 25 Jan 2021 10:35:41 -0500 Received: from jax4mhob22.registeredsite.com (jax4mhob22.registeredsite.com [64.69.218.110]) by atl4mhfb03.myregisteredsite.com (8.14.4/8.14.4) with ESMTP id 10PF9Pqp030577 for ; Mon, 25 Jan 2021 10:09:25 -0500 Received: from mailpod.hostingplatform.com ([10.30.71.205]) by jax4mhob22.registeredsite.com (8.14.4/8.14.4) with ESMTP id 10PF7cc0111225 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 25 Jan 2021 10:07:38 -0500 Received: (qmail 3240 invoked by uid 0); 25 Jan 2021 15:07:38 -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; 25 Jan 2021 15:07:38 -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 v8 1/2] dt-bindings: iio: accel: Add bmi088 accelerometer bindings Date: Mon, 25 Jan 2021 16:07:31 +0100 Message-Id: <20210125150732.23873-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 v8: Add spi-max-frequency: true Changes in v7: Add additionalProperties Change bmi088_accel to bmi088-accel Add interrupt-names and adjust description 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 | 68 +++++++++++++++++++ 1 file changed, 68 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..911a1ae9c83f --- /dev/null +++ b/Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml @@ -0,0 +1,68 @@ +# 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 + + spi-max-frequency: true + + 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. + Two configurable interrupt lines exist. + + interrupt-names: + description: Specify which interrupt line is in use. + items: + enum: + - INT1 + - INT2 + minItems: 1 + maxItems: 2 + +required: + - compatible + - reg + +additionalProperties: false + +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>; + interrupt-names = "INT2"; + }; + }; +... -- 2.17.1