Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1276892rdb; Sat, 7 Oct 2023 23:26:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGx7wUAH+AM6LlP/f7bIt2g2lS3kAV+6iQmCjMBdid81JAzfBPixmfgsOXQqCyYSAA754SC X-Received: by 2002:a17:902:f54e:b0:1c4:65d5:34ce with SMTP id h14-20020a170902f54e00b001c465d534cemr12149185plf.31.1696746392168; Sat, 07 Oct 2023 23:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696746392; cv=none; d=google.com; s=arc-20160816; b=RPM8DRWU83SHJhq3Swtk5R91G2//vVGvuSarbVLlaoiZImj/gezkS8I9dIk8tuq0QM GzJzfyaesuN3sn+SjuWpi0I4CPiNtw5bkzTiKPmDOo1SPzg1GnPeLaLUtquS/O7V3kF6 ex8mfHf7EMUjjKoV6a3hbl1n6q1Xz7vaHczfQbM4zRo40Vc4DHrf6F4NnrQWB4i3rP8t 88LwIpYxljFwfsKvtFZ0ht/76qc/V3vRNUNon0iBUe5bw0oVXvoYJwcKxHHGuFfZ1Ymc iKpghsd4aIgPLwxurzX94jzLCaHgQXjOwJ5jmvGMeKusSthDfIkEYFDd1m5BDSjlE0NK 0HVQ== 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=1Gr1mZ9X2KUB6a5Sl+O5P/cpeRCH0c3VVAkt2QKr4ZE=; fh=VqjlHJHmhZQL5vOfg1vOvIU9JAIVk+Kz0mfoSvXJqJU=; b=t7HjxhN4MuaPJmTRvVNZuPXAgy/GQt/Qz4t6HYoD4+SlHdnTYdm7YsbHD3Pf08FLCk bd2lK4+kKKOt33In0RoOpWdpJfETv7tOFZqW7xoiuHY83TV3v2Vl+cYxUhn+maDvoO5S hx28eyItyDukJe91mw1Qodt8keOZYWRx1UznPzBe3m3qvkfbaS42Fn95JzpJ2xXxwubM wDU+lqQbFuOfwTBbYLKxc0KoQtdBY8RNhLr2QILI5mfZv8kJqbz+a+QK0cPH756FlmbW ow+cVGvFgzuEwQxsgfNx9aOTh73GvA2TqMDx4W3gwI24yGj7WKIHwwjcHKvESgx1poEh /cJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BBDRmsqJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id l17-20020a635711000000b005891f74294csi7195901pgb.246.2023.10.07.23.26.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 23:26:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BBDRmsqJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 21E5C807CF4F; Sat, 7 Oct 2023 23:26:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344441AbjJHGY4 (ORCPT + 99 others); Sun, 8 Oct 2023 02:24:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344392AbjJHGYy (ORCPT ); Sun, 8 Oct 2023 02:24:54 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 609C3DB; Sat, 7 Oct 2023 23:24:53 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-533d31a8523so6306207a12.1; Sat, 07 Oct 2023 23:24:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696746292; x=1697351092; 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=1Gr1mZ9X2KUB6a5Sl+O5P/cpeRCH0c3VVAkt2QKr4ZE=; b=BBDRmsqJOAnasq9ZuKjuoRdzjrRXVJHDplYsP+LOLckjMW1OZE+GfZekdUz0fLkAhG Qv19WnGVIw4p/VNPL7mISYy+u7/Wt/tqIgjGAKvF3kFbeYm1tvCDTiZ7+L4a8OV1161T p6UXbiyuLPiS5KxtuRg7dnGQokfhUdQdkIJ4U7cbZr/XEmBxNom98wW2cRLQJ9i9g3tb h23pem2q2TZdHiC3VCrLuccsNFNX/LSwSiMfBFKr1OmUGv8Cb6hzaUmfxR+G9RfhXDMR 4KMZT4SKuk9C0yhgWtavPb1ErwjgAl0Uy+WbzBWcg4mWxduDW8MyniDoXd+jCFns9b41 +MdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696746292; x=1697351092; 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=1Gr1mZ9X2KUB6a5Sl+O5P/cpeRCH0c3VVAkt2QKr4ZE=; b=PN3IlrlLwrfGpmsxpEksfvyfDDB3SFbnN91J2JmYB7UDbhcZxy5H8oFmAm3kSurq/N dId3rEKGAF/8RrQUNtdeTaE6heQ+BQanWCTj7NSOGMMg1IdvuatjDKo0i4V54f/lG7Zy VwFcPo7VbobcBVyEr2W1ALawt353YAYroxXdVUoMCMfKaVpvXcaRfGnhwhFMBMZnycpu qmC4tyzw4zx2deEcD6aZVUFIdRI2nB4pP2Ki+7A/VXoD1flxSD4qjB1F0/A3AYHqmjMI ph5W59OX/4J+TPCui/G2ZIt4VYrgKu7lHnPqkr7Svb84zaqi+CBWeHSH2ezuu3dy4VOj +tWA== X-Gm-Message-State: AOJu0Yz4O+Kmv8hwCNnQhKp3jjUKXRoNZd5wbJQ4fjO40AbnZv9WMAmz vEKfilqBC4iRXQJVwfQM72WAuou7/CmtHyd6znk= X-Received: by 2002:aa7:da83:0:b0:533:d81b:36d5 with SMTP id q3-20020aa7da83000000b00533d81b36d5mr10401183eds.15.1696746291581; Sat, 07 Oct 2023 23:24:51 -0700 (PDT) MIME-Version: 1.0 References: <20230918080314.11959-1-jagathjog1996@gmail.com> <20230918080314.11959-2-jagathjog1996@gmail.com> <20230924143710.7c6edc4a@jic23-huawei> <20230930170530.0b8f185c@jic23-huawei> In-Reply-To: <20230930170530.0b8f185c@jic23-huawei> From: Jagath Jog J Date: Sun, 8 Oct 2023 11:54:39 +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=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Sat, 07 Oct 2023 23:26:06 -0700 (PDT) X-Spam-Level: ** Hi Jonathan, Few more questions before sending the next series. On Sat, Sep 30, 2023 at 9:35=E2=80=AFPM Jonathan Cameron = wrote: > > On Thu, 28 Sep 2023 03:07:22 +0530 > Jagath Jog J wrote: > > > 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 > > > > + 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 bindi= ng > > > 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? > > 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, particularl= y > when you also need to support case where only one is wired. In the driver, I currently prioritize INT1 over INT2 when checking (bmi323_trigger_probe(..)) based on the interrupt-names defined in the device tree. However, I'm open to suggestions on the best way to ensure that the order doesn't affect the selection process when both interrupts are defined in the device tree. Each feature, such as data-ready, watermark, tap, and others, supports either INT1 or INT2. Based on the interrupt pin defined in the device tree, I configure the all the features accordingly. Regarding your earlier suggestion to have two different controls for drive-open-drain, do I need to define sensor-specific drive controls in bindings for both interrupt pins? for ex: bosch,irq{1,2}-open-drain Regards Jagath > > > Jonathan > >