Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp189212rdg; Tue, 10 Oct 2023 07:42:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGhTzxyys9TzGxJAABj2TKjWqzTwV3//xI5f2Xn5oPvTZ/YDFfZ64s5QK0BGGsaTyxMSscR X-Received: by 2002:a17:902:9a44:b0:1be:384:7b29 with SMTP id x4-20020a1709029a4400b001be03847b29mr16940349plv.34.1696948941924; Tue, 10 Oct 2023 07:42:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696948941; cv=none; d=google.com; s=arc-20160816; b=VRa8gwbavtimj+5ixYb7dZrQ5F8XO2O00w4071/LYxPlQmjIOW38u5W/UsPJPV4zm8 q52OH2kaU5MSkd6H+jaew30jrHkNR4jdjdY/kEXhNaqX0uZvMlkjmD7TiYYSoaCFVQRl hp3UtNgfUt9+826hIKFluJqlKFE/6wznYeWRyskRAUirp5L2dzgvdysLl0UZZhcXG9MH HrhOzv+8d/mf9MeLRiWfvHdHapoXSpXknvTfcqO/sO0eWFzkskoloCIHd8GO5o1GdJLC mamzz10lkRsVzQ/3k0c2+ZhbO4n/ciYQGIxc/oPJWfrV52CP7vqM7lJh7IjwCDnt6iYY 8F2A== 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=NLUivnZfYdmQuWTVz5KfKnR6yiBIi631c0LpHMxdQ0Q=; fh=wHV5P/pCyXA08oR6gSIJBmFwJUahdu8SZj4lwnaf08s=; b=X5AdPA+7OLCE7ZzatDPaVjy8OfGq5o0dcx6AaCDvqtMyoEZajkrJIcCGlKYZSw0DNX HgNYjoQucd6CjE3V5Ie25k1Vw1dtfi6pgiFPrTkSztwx7WbZtYs3Xh3D+GP2NZN3bR34 r4vdLbHwoQJbKq76wcwRAxRj2bv6l/4FDCOSxySZhuOc/xS1p3TlZhfSkpYvi49tKWzv d3Njhw8e7lBBrvGXjdhZVj4kzqoQtE2aJRTgAv2YiWUZjcPF5fwaBDA/3c1csWHmeYR5 Uu1qkFJfYo2WhDpjG3BT2pLvcCEE2kvCepFrxXeyZ1XxmGmdEqPvRvOghmrX9kiUv3Tu 3v7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="W/VuGz2b"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id h3-20020a170902680300b001c747cafce9si1510206plk.231.2023.10.10.07.42.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 07:42:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="W/VuGz2b"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id F2A4C809541F; Tue, 10 Oct 2023 07:42:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232401AbjJJOmI (ORCPT + 99 others); Tue, 10 Oct 2023 10:42:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232137AbjJJOmH (ORCPT ); Tue, 10 Oct 2023 10:42:07 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB75799; Tue, 10 Oct 2023 07:42:05 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15081C433C7; Tue, 10 Oct 2023 14:42:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696948925; bh=lA6xTbD3hqaJF/U2LchiEukFCVhTNuxUo3PNv1B9SZI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=W/VuGz2br/m8AZim6i/6aXKvQih3Oybv4QF3iB7SsJvuNClKjaYjhadS95dPPyiTM OohA39UBUQ+DSb2bBw9Otw5Sxbtk1aJiVNF05jXUNrPOJXrE8Jn+cApS9MBtalLfie sQSmBF2aUhX6YisMhE86OIsvYs9j5CzVm9e1XeqA3p8yQfiMLl8uDj6X0Tmne2wS7+ ZIj9YFMrHaKb8R0iVxek5xeL6qRQVJgMP5XhPIw5j9oMnPFxVaycKZKhQ9d2zQ5IKk 3aXz6MjEV1bTZFqBLZ117Ve0wtksjOCkrf3+zXrgQTmvPmI0zoBwqNBhv90xU9YKLR tLI3riLR/jpvw== Date: Tue, 10 Oct 2023 15:42:16 +0100 From: Jonathan Cameron To: Linus Walleij Cc: Jagath Jog J , 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: <20231010154216.6032a1c2@jic23-huawei> In-Reply-To: References: <20230918080314.11959-1-jagathjog1996@gmail.com> <20230918080314.11959-2-jagathjog1996@gmail.com> <20230924143710.7c6edc4a@jic23-huawei> <20230930170530.0b8f185c@jic23-huawei> <20231010100002.0163d681@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=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 howler.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 (howler.vger.email [0.0.0.0]); Tue, 10 Oct 2023 07:42:19 -0700 (PDT) X-Spam-Level: ** On Tue, 10 Oct 2023 11:06:18 +0200 Linus Walleij wrote: > On Tue, Oct 10, 2023 at 10:59=E2=80=AFAM Jonathan Cameron wrote: > > Jagath Jog J wrote: =20 >=20 > > > 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 =20 > > > > Hmm. We do have precedence for a single control e.g. > > nxp,fxls8962af.yaml as drive-open-drain. So perhaps just go with that > > and if anyone is needs different values we can figure it out later. > > pin control (which is where that binding item comes from) seems to have > > examples doing much the same. Sets of pins with a single drive-open-dr= ain > > entry. > > > > Linus, any comments on this as you've dealt with far more similar cases > > than me! =20 >=20 > Also st,st-sensors use drive-open-drain. >=20 > And that in turn is used because the pin control subsystem use that > exact property. (See > Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml) >=20 > So use that. >=20 > (I'm so happy to be able to provide a definitive answer for once!) We kind of lost the question along the way. Wasn't so much about whether there was a generic binding but more about whether it is worth providing separate controls for the two IRQ pins? Or just assume no one is crazy enough to play that level of mix and match. J >=20 > Yours, > Linus Walleij