Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp411653rdb; Sat, 30 Sep 2023 09:07:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGSaq20WnUDD0dl6TXCnhBDoiQFwLLLj/ssC3C7j8ZeLz2Iz9059i83jR2xvYb1zIZXs4tS X-Received: by 2002:a05:6a20:8f0c:b0:13e:fb5e:b460 with SMTP id b12-20020a056a208f0c00b0013efb5eb460mr11945420pzk.0.1696090072129; Sat, 30 Sep 2023 09:07:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696090072; cv=none; d=google.com; s=arc-20160816; b=m8ztSdlLigd1nhJVzvX/Ek2N9rYj0rAx6/0/tNM7owFm9Kw1fD7MgnhYj3tEF4pAxv 90aqG137T3cKZB+8dMy/yQg5pjAPckl1ZG7Umr95uT3clVNKHcbalI6e7XLhBQElgZka 8gifVy2xO9/0IT48NyRTiOnjsOMbIhY3VVhG/ypKflFOAHvv3kV82ICI9pyVB8mRY56b x38SoEiFOGrK60TH8BNDkd9TF0nDpq8h5g1pboIUr4IMlM6gXhqEdEFu60QBaXs9dXVb 4X7M0+vsno1+X+u4xLWVxagf8SfKCh2yqhPTXQuHrVWwHG67j/1mbQKpwR94bCOpICqR 3Alw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=mChBuUt3SkXEvXuDIGnku9UDHCu36vtk8W8RtSQTLis=; fh=csxwcn3HTJkf3xv026wyDkOaLeqx8H1WaicEHifP8CA=; b=RUBZiW0lkRmp3fpebV2AB5jBdudFzN+BCRL10dja8yC89ZKR0XvyrNEjnxyHIomw/e bywzgGqHYsYeRuhBTjy0lQXfWEXbiNN4+HUdmcYvBHZlW0H1ApWOTLTBrsx2HfGRwUM4 +7/pgDk3zVBVyVREfK23plnDM0X0XvnYGeWRSikQcY3d2lWbB49gU/3SMUD7oDZ8uSHR GQq5tvcMVxtVbTvnrF559ALpFutdcKQ7H6bsvBEUFipzeO6qT9mtCz+wB/bvQAZ0W+S+ A/I5XQd92SGTcNCbxvmvz0mHfnq72he8yL5Zs05ey43XY0CN87NU+CnuQarN7YgxUByo vBcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="MW/xi37n"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id j185-20020a638bc2000000b005660335e269si23718326pge.264.2023.09.30.09.07.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 09:07:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="MW/xi37n"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1446D80E9E9B; Sat, 30 Sep 2023 09:05:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234473AbjI3QFd (ORCPT + 99 others); Sat, 30 Sep 2023 12:05:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234460AbjI3QFc (ORCPT ); Sat, 30 Sep 2023 12:05:32 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDEB6BE; Sat, 30 Sep 2023 09:05:29 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E349C433C9; Sat, 30 Sep 2023 16:05:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696089929; bh=B8HApJopjsGysG9kMK09Fn76dse5FPqZB8+iLH4XQ9k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MW/xi37n3fWl9V2XhRxzTzTA9IlsIcZ+hZ026aJlzXomNzVUAsKiWgwE1q/WfuGXC R+1+DrB6tq2irZbtOQ4u6A7mUa14uvPb6z8Atthbuw2Xw4ga/L2e35oFDD+aIuwhwE LojBMWQXl0xYTtCJ0vc1XkgMdW83wpSA3TUrEYDoaoCKXiTWF27BMC0h5Bss1qAvfI IEtPriVDRafde9CQNjeWMYN0KTwK62YNjESG9Sq7N6FA5JQMLF9p98g5rJugoq4Nvm uHHKYln4Fxo6pwuCBNF7UG6ERcAXCLoLAGnVWvye4ydzg8R/q1/bR4XyTKqljdvubA FCpSOqurrF7ig== Date: Sat, 30 Sep 2023 17:05:30 +0100 From: Jonathan Cameron To: Jagath Jog J Cc: andriy.shevchenko@linux.intel.com, lars@metafoo.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC 1/2] dt-bindings: iio: imu: Add DT binding doc for BMI323 Message-ID: <20230930170530.0b8f185c@jic23-huawei> In-Reply-To: References: <20230918080314.11959-1-jagathjog1996@gmail.com> <20230918080314.11959-2-jagathjog1996@gmail.com> <20230924143710.7c6edc4a@jic23-huawei> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 30 Sep 2023 09:05:48 -0700 (PDT) On Thu, 28 Sep 2023 03:07:22 +0530 Jagath Jog J wrote: > HI Jonathan, >=20 > On Sun, Sep 24, 2023 at 7:07=E2=80=AFPM Jonathan Cameron wrote: > > > > On Mon, 18 Sep 2023 13:33:13 +0530 > > Jagath Jog J wrote: > > =20 > > > Add devicetree description document for Bosch BMI323, a 6-Axis IMU. > > > > > > Signed-off-by: Jagath Jog J > > > --- > > > .../bindings/iio/imu/bosch,bmi323.yaml | 81 +++++++++++++++++= ++ > > > 1 file changed, 81 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/iio/imu/bosch,b= mi323.yaml > > > > > > diff --git a/Documentation/devicetree/bindings/iio/imu/bosch,bmi323.y= aml b/Documentation/devicetree/bindings/iio/imu/bosch,bmi323.yaml > > > new file mode 100644 > > > index 000000000000..9c08988103c5 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/iio/imu/bosch,bmi323.yaml > > > @@ -0,0 +1,81 @@ > > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/iio/imu/bosch,bmi323.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: Bosch BMI323 6-Axis IMU > > > + > > > +maintainers: > > > + - Jagath Jog J > > > + > > > +description: > > > + BMI323 is a 6-axis inertial measurement unit that supports acceler= ation and > > > + gyroscopic measurements with hardware fifo buffering. Sensor also = provides > > > + events information such as motion, steps, orientation, single and = double > > > + tap detection. > > > + > > > +properties: > > > + compatible: > > > + const: bosch,bmi323 > > > + > > > + reg: > > > + maxItems: 1 > > > + > > > + interrupts: > > > + maxItems: 1 > > > + > > > + interrupt-names: > > > + enum: > > > + - INT1 > > > + - INT2 > > > + description: | > > > + set to "INT1" if INT1 pin should be used as interrupt input, s= et > > > + to "INT2" if INT2 pin should be used instead =20 > > > > Why not both? Sure driver might elect to use only one, but the binding > > describes the hardware not the driver and both might be wired. =20 >=20 > If both interrupt pins are wired, should the DTS file need to define > both of the pins? Yes it should. + we need the names to know which is which. You could rely on order, but it's more flexible to not do so, particularly when you also need to support case where only one is wired. Jonathan