Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3005864rdh; Wed, 27 Sep 2023 22:33:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGdRPKWhLQC90EbQxW6vtw1uiAI/Fv+r8G5s/ggd+ZZW7itsiAOWgFOUzUWzdJ0i1X3kOMJ X-Received: by 2002:a17:90a:cb8f:b0:273:f584:40ca with SMTP id a15-20020a17090acb8f00b00273f58440camr210208pju.16.1695879226169; Wed, 27 Sep 2023 22:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695879226; cv=none; d=google.com; s=arc-20160816; b=rK0VjWaz1eVgq1jdE/6LrzIg1DXruOYJWEr5KevSPArM+j8BoeW2kXrCUZjnXP7A24 8qEl9e/sl/8f9fWXWBTzQsiQ0ptjTMvM5yGOCpz0QnCSW3Fl2+Is696Al/wVxZg1iHBE 8pvSDXVKO5NCbUTQNaEmx0HsvFasUmzkMlVXWtKDECxgl87tkqUJUin6JfSq/Hv4qNo6 opQrzm1GdyjBbZ/HMX44sQjWdfEFslgg2DTmTaWMm2uVpsdQ7k39hl4D7YNDGVzQsEGk xQmYLWAdL6Zjud5BIcWI4VdMGPzzbzLaKLGUVndxco/L+mJ8p5vYhIy3toxBpNv0MHLD ew+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=CYLc3HDZug2/Yd29NYOTkdZgvZmGgRReX54Dn37yNTg=; fh=VqjlHJHmhZQL5vOfg1vOvIU9JAIVk+Kz0mfoSvXJqJU=; b=zCjF3XgyDtf5WJ/diaAKysdHLsxXm1P0TWuftNsRrWN1VcSs6JKryZFhjCm2XBsnbB ad7L7jX1QzDXlYAPVEoVHsXx6E5MI+gbbE10pcwPkEHnTyeLriPXUdvxvPFNrJ6ZlBga xApEupKW6jr1KCwUhW4CZFohcDZb4/BbBWg0maU3JOTqNdDEedUKkyuSvopdaLfQa44W 8FCoF1sHTTW/4dxNCjsGRVDOkuNfD6qJiFyy5MM2bkb7dcHAsIzqapOYOhp/Te0hkZuw sZ+cZrbK1ErRE7/yLxdYRI2/k0DIckm0mZqp0G0N2dJc55M7eEmPWZh5xOIUvJ7USjbr 383A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="kL//kzkU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id i7-20020a17090a974700b00262e99964bdsi10201798pjw.99.2023.09.27.22.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 22:33:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="kL//kzkU"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 291DE812A960; Wed, 27 Sep 2023 14:37:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229957AbjI0Vhi (ORCPT + 99 others); Wed, 27 Sep 2023 17:37:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229746AbjI0Vhh (ORCPT ); Wed, 27 Sep 2023 17:37:37 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 643FC11F; Wed, 27 Sep 2023 14:37:35 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-504a7f9204eso1480037e87.3; Wed, 27 Sep 2023 14:37:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695850653; x=1696455453; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=CYLc3HDZug2/Yd29NYOTkdZgvZmGgRReX54Dn37yNTg=; b=kL//kzkUd8to1zWPEMatFMfKLbPhT7dBR+a7ejtoFxbzj7AVgOXVif9qc3dQt6iypE yxQLvtrqkZHnzv9NIE1kmjukgsztO+gQNjRGtH9pKF7tGjv9MO0oYajiDjNy4KjKs8S4 EGRZJszbg0O0WfBNzS+nsBivBLlxIj36bL4/louKVri7r89GHruJCagHd6glPAXjnAs9 kM04Ws0yfWz3svrieHbd9lS/Wfg9tiue5rf6yHQq/LdfiNSUOU1HdLqKjZo3MY1iYyuF SBMJUTQojom05OpplMx9uacI82r+WsSYqmwHS/xKW0h0bjaaW6+LBWOA0njD14bkSTAP m09w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695850653; x=1696455453; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CYLc3HDZug2/Yd29NYOTkdZgvZmGgRReX54Dn37yNTg=; b=Zue6j0AcCoC/YkqXDHHYzsShot9cOctzzyMfBbHbGciB+djZS++xfwOxbSp70sZtD8 tL4fZEsDVfZGBlqIkY9ySfQs/b/f5Wjbltwm1eys5uVyW86J4Gjd67weqycozAoZv7Z3 RBhMuvlXNteQj3/Ocshlx979X4wyJMEyml3sPfg9nddoBG0B9TLuSkxrU1tqX7w+O6tm UV8wiRIfsfX8HqGso5z+SoesIjWz6aTph+mj7WvDPnkbg8lTMOdfvDC/Hour5vduJR5t fudbtKpcJbz8CVcxIAnVmNqq152xh8H2xl0GINZsP01VvHe6gHCG8Idc90eG12y03eP+ XZWw== X-Gm-Message-State: AOJu0YwgurFd4DxfU3X77XcXsBnGfJG2gGMEvBDKCxP5I0Qqt7l1Fcj/ d/06grzeOKpuWAcXKUGXAg55k6UfRSjA8RSbYcHi+L9wSfOXjg== X-Received: by 2002:a05:6512:39d2:b0:500:c589:95fb with SMTP id k18-20020a05651239d200b00500c58995fbmr3118553lfu.55.1695850653252; Wed, 27 Sep 2023 14:37:33 -0700 (PDT) MIME-Version: 1.0 References: <20230918080314.11959-1-jagathjog1996@gmail.com> <20230918080314.11959-2-jagathjog1996@gmail.com> <20230924143710.7c6edc4a@jic23-huawei> In-Reply-To: <20230924143710.7c6edc4a@jic23-huawei> From: Jagath Jog J Date: Thu, 28 Sep 2023 03:07:22 +0530 Message-ID: Subject: Re: [RFC 1/2] dt-bindings: iio: imu: Add DT binding doc for BMI323 To: Jonathan Cameron 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Wed, 27 Sep 2023 14:37:45 -0700 (PDT) HI Jonathan, 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: > > > 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,bmi= 323.yaml > > > > diff --git a/Documentation/devicetree/bindings/iio/imu/bosch,bmi323.yam= l 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 accelerat= ion and > > + gyroscopic measurements with hardware fifo buffering. Sensor also pr= ovides > > + events information such as motion, steps, orientation, single and do= uble > > + 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, set > > + to "INT2" if INT2 pin should be used instead > > 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. If both interrupt pins are wired, should the DTS file need to define both of the pins? > > Lots of different sources of interrupts so might be advantageous > to split them up across two wires. A simple case being to route > errors to one and everything 'good' to the other. No obligation to > support that in the Linux driver though if you don't need to. Sure I will split into two different wires in bindings. > > > + > > + drive-open-drain: > > + description: | > > + set if the specified interrupt pin should be configured as > > + open drain. If not set, defaults to push-pull. > > Two pins. Might be different so you need two controls. Sure, In bindings I will add two different drive controls. If both interrupt pins are wired with different drive options should the DTS file still define both of the pins? > > > + > > +required: > > + - compatible > > + - reg > > As mentioned, need power supplies specified and marked as required > (though they may be provided via always on regulators and rely on stubs > being created by the regulator subsystem on a given board). > Looks like there are at least 2 supplies. Sure, I will add 2 power supplies in the next series. Regards Jagath