Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp365415pxb; Thu, 21 Jan 2021 08:54:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/1miGzgBel06+pxucI06yyn9A3qrciXhF5h7ojyM36V13tJPkiE7Ojry51NcgodJR6NVD X-Received: by 2002:a17:906:2583:: with SMTP id m3mr226338ejb.499.1611248059878; Thu, 21 Jan 2021 08:54:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611248059; cv=none; d=google.com; s=arc-20160816; b=nPYSBsUxkGeauVXusUGLW0Uakl47E0QPLfKn5lgNTZeBxkgb2tOnx8u5MrJkzHGtt3 Je1y59MkQOjhownIQi5TMtvZDDJeT350NM3Cxh6itlpc3y5p0CaPJQmdagpQV3yZ2UdP mGBWKkebRq0aX1m3OQqTRBtnWGf4Xr/rGRGaxsL9cGcMDdxJY9208pkGO1hFaP7FGz2O zpIPhDbMjJ8wGydrJIKRH6UUpE/qABDTGQD5+zv0Vf+n2ijSTLNgk4A499E0kYLVWaHj 8t6DB7D24inPR5MzG8JxNS/YuYkeQ1UYvi2wFg1rrCHxSnseZ7Atr+7TnFNyYRSmbPsk zCeQ== 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=gEH1C5VJl34iMuJknRlS10f6+SCQL+QONOOHA3zpVAI=; b=A6RiNSfzNyAPQ91W3UjRIEhjDdn+Da89xGe4nqAvvXkoJ+mdutZp8sbHsBRVWUKvnA uqUz17aQ4RDu0kuXlGb8qytIm5pYfpyQoYul+B8hXD096ny7/qmHv09K0QyxqRORXDX3 qmkM511tLlLyENa/s4P8Tf34R2mgZReUYiYfgDos+XS91tziihnQV7zyI4EyQkyyutr9 4rX9PUVFiZKGHwx6kfqca67ReY2YAN838j/2Dgfkg5RtBC5Lub3g8vBATn6tcAEoki3T 7wTDPu+B6581+7vQnO63Jb5Rrk8SRXdRvog/KtKIM5pF4ymwQXht+XLjHPeYF3d8ga9U 5s7A== 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 u24si2730954edb.344.2021.01.21.08.53.55; Thu, 21 Jan 2021 08:54:19 -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 S2387970AbhAUQuO (ORCPT + 99 others); Thu, 21 Jan 2021 11:50:14 -0500 Received: from jax4mhob07.myregisteredsite.com ([64.69.218.87]:55042 "EHLO jax4mhob07.registeredsite.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731961AbhAUP6V (ORCPT ); Thu, 21 Jan 2021 10:58:21 -0500 Received: from mailpod.hostingplatform.com ([10.30.71.205]) by jax4mhob07.registeredsite.com (8.14.4/8.14.4) with ESMTP id 10LFv9hX007615 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 21 Jan 2021 10:57:09 -0500 Received: (qmail 16974 invoked by uid 0); 21 Jan 2021 15:57:09 -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; 21 Jan 2021 15:57:09 -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 v7 1/2] dt-bindings: iio: accel: Add bmi088 accelerometer bindings Date: Thu, 21 Jan 2021 16:56:58 +0100 Message-Id: <20210121155700.9267-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 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 | 66 +++++++++++++++++++ 1 file changed, 66 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..db5dbaf80fa2 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/accel/bosch,bmi088.yaml @@ -0,0 +1,66 @@ +# 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. + 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