Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp465361pxb; Wed, 20 Jan 2021 11:19:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJyTQIbY/qzRkLpKyTj4wX0a69gU2tCqsmvfQdA7NYp59wjxwsIScjEQEDRx+cPST9LvqqIR X-Received: by 2002:aa7:c244:: with SMTP id y4mr1770806edo.239.1611170361011; Wed, 20 Jan 2021 11:19:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611170361; cv=none; d=google.com; s=arc-20160816; b=powFrB9b7RMHO5mPTBG/wTqd5dvPSfFEtWdxHXCNCCWRIqEag03tMKGgJKBV3ykwSQ AIovBsTJyYDvSLfJOD/fB2htAZdbREZTkdbHrXGZ5FoaVsKa3CAVdNfk5XZ8bRP/gbAi vv63fjVTr/r3ytabfbtQkSjS5Yy/ag7L7E4gPJfZQABeqMWt+bdr28o/NlK/ET99AiTo 5nmuJbNOawToyhP/S6XaiEi5aqxAyAQZGpoLd8r9c1uzYhOsSLceftn8AgGTk9MH9UME lYIpevAEefZbPefVDcAqv0KDqKYgiZUH1x2+UyEk5i9Gx2L6E1oRT+hJBgb0xIKfhsKB 2aow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=3yP+Xc+zP/BqV9n/HUqm0Sl8CaGIh1ag/Pjpw61t7dU=; b=Lwt+w7EJP5iXsbpjR9j4HSS8pKyUtP73n5/ZM06njq6/hACrjWHm0K3pU3jYvipi3/ oUE5Q+bKfRf4+W6Z2KbuNwSIcX58EjhyKJsaSM7GLQhzO1M7gTQ4WXvrVJykqo6vnkiM d7ufgxgnRGidlCCL2vY3JqbcN+LomuSrwF8vNdiPSf1+OYGEsZsKcHODQzpTCKcX+2ef aWnFeyxuYSWGpnYhIa6tjBGnRiZ9UMZWrRkZUBL1SEu5hizrtGwtu9UJefiVeZz6/01D tk2miGufwIEk19Ew6CIYQk8xhHqS6pAXBcd8rlsCS4f/iwFrcJlBzo/7zTKEGf/MKrKF 6QyA== 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 59si1212138edb.71.2021.01.20.11.18.54; Wed, 20 Jan 2021 11:19:21 -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 S2392274AbhATTQv (ORCPT + 99 others); Wed, 20 Jan 2021 14:16:51 -0500 Received: from frasgout.his.huawei.com ([185.176.79.56]:2386 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389703AbhATSwT (ORCPT ); Wed, 20 Jan 2021 13:52:19 -0500 Received: from fraeml710-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4DLZJW6Yxgz67XQp; Thu, 21 Jan 2021 02:47:23 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml710-chm.china.huawei.com (10.206.15.59) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Wed, 20 Jan 2021 19:51:33 +0100 Received: from localhost (10.47.67.172) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Wed, 20 Jan 2021 18:51:32 +0000 Date: Wed, 20 Jan 2021 18:50:52 +0000 From: Jonathan Cameron To: Mike Looijmans CC: , Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , , Subject: Re: [PATCH v6 1/2] dt-bindings: iio: accel: Add bmi088 accelerometer bindings Message-ID: <20210120185052.000064df@Huawei.com> In-Reply-To: <20210119124622.9490-1-mike.looijmans@topic.nl> References: <20210119124622.9490-1-mike.looijmans@topic.nl> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.67.172] X-ClientProxiedBy: lhreml717-chm.china.huawei.com (10.201.108.68) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 19 Jan 2021 13:46:21 +0100 Mike Looijmans wrote: > 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... No problem. Happens to us all sometimes! One thing inline below. Thanks, Jonathan > 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. What if the board only has the INT2 pin connected? That's looks to be a valid hardware configuration. I'd suggest using interrupt-names to cover this. > + > +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>; > + }; > + }; > +...