Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5421970rdb; Wed, 13 Dec 2023 08:11:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGCPHw0Z1nxV+xuss/TdfEoavsXsUFbME4f/RHi82o7lCHgC3OsZEHMzLVPRytVmLeyXobf X-Received: by 2002:a17:903:187:b0:1d0:7165:3fa0 with SMTP id z7-20020a170903018700b001d071653fa0mr4754133plg.1.1702483918347; Wed, 13 Dec 2023 08:11:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702483918; cv=none; d=google.com; s=arc-20160816; b=y3sXeJCtG/HvlZcC2qwwMFOjrDIr2PxsHoQ1g+xz2k+HzZCAsM6SWbqrUw+9xfcJ3K akMRjCTJ9E+X/6f2WDDe1k30q4K/5kFhEQIOCWrZb73gr0nsvbTVbQDRgtiNX/AOUFOK wKLN3lNVGSDcLrr5wYt9EEnhXYeQqob4n5TodCFDJaFVH/4pkVCYKB0RAuNHIW97TSDf 9vGRTTGgxuGjnVkVpqnu3n2UJMHoreNKTksyN2nvie2t0D0fdaq5YwCjWEDcANvFpJsH IrysIgszcqOhRfEvhZ9ndByzK1r2RZgqtI3z+TqSzUGEVRN5ygqLEt04rx+DAuQCz07l 72Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=AGQ7Sud2hxgSqWYQEhsiTVaOMSAryCw5n3jqU/+V+6g=; fh=vzsDz8bZJ50mj36y8nxVaiodXzhIi7LB2Yn3GrfFEnI=; b=Y36aho4TCf0K/6b2BejW411OYG5SoqQCiL9usUD2taao6NC8hsbFc1ikiFskEM3PML YETit/T2OavybPJvsuZkSrVODf1wQB8Nfo/YWV8InE0q10sOLi2p77ZjQWsVSnpHxsy+ HjvoQfE2QrMauuCdjBRWrlSUGlo0CyFHG3LaVmo5r3x8mwp8UGeTcAMK5X0Reh3IqbJQ tOABQytmyXGcTMPscFsLIVBJXbhEWo1642FCXlP5ePvaJ0CtjaT5pSOTz3vZE3yJ7AA0 vvhSZj+1wrzn8gJmrABY6pNHnEfGe5d1gYoIUVuuTluc/pBafjCyNxvfKQSJ/LbXaEi9 QZvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KzF+ocBP; 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 w13-20020a170902a70d00b001cf817b01d2si9724261plq.277.2023.12.13.08.11.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:11:58 -0800 (PST) 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=KzF+ocBP; 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 3856480401BD; Wed, 13 Dec 2023 08:11:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233382AbjLMQLk (ORCPT + 99 others); Wed, 13 Dec 2023 11:11:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233113AbjLMQLj (ORCPT ); Wed, 13 Dec 2023 11:11:39 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6AC391 for ; Wed, 13 Dec 2023 08:11:45 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF873C433C8; Wed, 13 Dec 2023 16:11:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702483905; bh=81xPCJRD7sl164kIgTp1GjUGAC/Vhq0axvltDwrUq6E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KzF+ocBP2mjoUW7K6RrQnV1IecVV9GUl7VbnGppZXWa9pFdZ/9oqsPkdpKaNjNG9F sDnv+khOdzHKBkx/qW3goyvSyP+kSr2TFJwb6+iFJXAkSpwU4uhLmLpcBzE4uFJwxs Ldbqq1qKObWZbW5OpTFV7fwuAGj17EBuzWiJknnlhNBUXz51OZbc7Ri/SgKhuV1OQR miGZlwfVq5+IWZ9Y3moitNR97Hkv5ewYYM5W4X7ni3pXx03hFk+fS23T6G3q/48gt/ rb5SOoCl6uGLokBwxdad36Qzv4ikjEhSaEjLuQ4crLA6Saiyc13X69hGOPfx+Tb3KT HAY+glTMvRqpw== Date: Wed, 13 Dec 2023 16:11:40 +0000 From: Conor Dooley To: David Lechner Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Cameron , Michael Hennerich , Nuno =?iso-8859-1?Q?S=E1?= , Liam Girdwood , Mark Brown , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/3] dt-bindings: iio: adc: Add binding for AD7380 ADCs Message-ID: <20231213-harmless-aspect-b7cee2d0173f@spud> References: <20231213-ad7380-mainline-v2-0-cd32150d84a3@baylibre.com> <20231213-ad7380-mainline-v2-2-cd32150d84a3@baylibre.com> <20231213-grooving-bulk-58fcfc20be11@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qvGfKPR0cMEVlYu+" Content-Disposition: inline In-Reply-To: <20231213-grooving-bulk-58fcfc20be11@spud> 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,T_SCC_BODY_TEXT_LINE 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]); Wed, 13 Dec 2023 08:11:55 -0800 (PST) --qvGfKPR0cMEVlYu+ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 13, 2023 at 04:10:40PM +0000, Conor Dooley wrote: > On Wed, Dec 13, 2023 at 05:21:19AM -0600, David Lechner wrote: > > This adds a binding specification for the Analog Devices Inc. AD7380 > > family of ADCs. > >=20 > > Signed-off-by: David Lechner > > --- > >=20 > > v2 changes: > > - Added maxItems to reg property > > - Replaced adi,sdo-mode property with spi-rx-bus-channels > > - Made spi-rx-bus-channels property optional with default value of 1 > > (this made the if: check more complex) > > - Changed example to use gpio for interrupt > >=20 > > .../devicetree/bindings/iio/adc/adi,ad7380.yaml | 107 +++++++++++++= ++++++++ > > MAINTAINERS | 9 ++ > > 2 files changed, 116 insertions(+) > >=20 > > diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml = b/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml > > new file mode 100644 > > index 000000000000..43d58c52f7dd > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7380.yaml > > @@ -0,0 +1,107 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/iio/adc/adi,ad7380.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Analog Devices Simultaneous Sampling Analog to Digital Converte= rs > > + > > +maintainers: > > + - Michael Hennerich > > + - Nuno S=E1 > > + > > +description: | > > + * https://www.analog.com/en/products/ad7380.html > > + * https://www.analog.com/en/products/ad7381.html > > + * https://www.analog.com/en/products/ad7383.html > > + * https://www.analog.com/en/products/ad7384.html > > + > > +$ref: /schemas/spi/spi-peripheral-props.yaml# > > + > > +properties: > > + compatible: > > + enum: > > + - adi,ad7380 > > + - adi,ad7381 > > + - adi,ad7383 > > + - adi,ad7384 > > + > > + reg: > > + maxItems: 1 > > + > > + spi-max-frequency: > > + maximum: 80000000 > > + spi-cpol: true > > + spi-cpha: true > > + > > + spi-rx-bus-channels: >=20 > This is now being framed as a standard property, so I think it should be > in spi-peripheral-props, no? Granted, you'd need a rather more > generalised explanation of the property in that case. >=20 > > + description: > > + In 1-wire mode, the SDOA pin acts as the sole data line and the = SDOB/ALERT > > + pin acts as the ALERT interrupt signal. In 2-wire mode, data for= input A > > + is read from SDOA and data for input B is read from SDOB/ALERT (= and the > > + ALERT interrupt signal is not available). > > + enum: [1, 2] >=20 > Jonathan also mentioned specifying that this defaults to 1-wire. I > didn't see a response or that implemented. Did you miss that comment > from him? Ah, I read the patchset backwards, d'oh. I see you did in fact do both of these things. Apologies! --qvGfKPR0cMEVlYu+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZXnXvAAKCRB4tDGHoIJi 0gCaAP99Nw069HRWHRkR+FtYfcruPmekFSXXFB33zvwWkx5HwAEAgxNJu+bcPA7w U/bdib1bIPbUfCwaFj1cLZ9bDIzd2A8= =0aeo -----END PGP SIGNATURE----- --qvGfKPR0cMEVlYu+--