Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp343128rbb; Sat, 24 Feb 2024 03:07:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUmo5IbU41a6YjrIydLX2GMfSbIuskdFx6STXdsGtWh5r0EFbOYwQ0h9YblhGvp1eKMfeV6frKmJhCIUC0SjbCMRrhjvs9wHFr5DCh5Uw== X-Google-Smtp-Source: AGHT+IGYZcElTvC1jIeki235mckYBIOBX5cHXs5cFyqIcE7T55oGQbBmBhcx8Tdb2aRI2JRcGPjN X-Received: by 2002:a17:906:ee9:b0:a3f:b26e:139 with SMTP id x9-20020a1709060ee900b00a3fb26e0139mr1382328eji.39.1708772827275; Sat, 24 Feb 2024 03:07:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708772827; cv=pass; d=google.com; s=arc-20160816; b=ug7wy9CWqcujAVcHUfSDEi2pdT/Iz+QM3CzqG468z3KvVFB/sPQDLTIqn4BYsZFDiy l0ayRqAjmOYM1cXfVoQpRs1Kbt7XdrurKeniJBIq5UGhVfA2mLQW9WWwZ/HIsAMwEMAB taG7OJSiZFW3uLMQDhJ/Tcqb5RTu12b457JIrgbSSkhC4VKwwaDvEeXOWI3XRgkbTqx9 7rcDWjORTkDp3cwyx4OjRahVVmgmqd+M8Cak9nEgYDxEoianqTM/Rzibtd1vlkE9kC93 L34PGPYOzmqc3pcHLzafo+1tDMfT9Am6KjQh2uDpRGZEFpB4fHtPel7ZBX+Lf/1HzGuK PCwA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=cIB4znCddR1qjmuiBmTbiIoYuJDVKe+FBFWQftUxBM0=; fh=whmw1otKpCylA4r6sNug0AaFxVxkw5/vFvMjbaq8HL4=; b=RzQmyW0b8r29oSGU2rLP7VsjP9CijBO1ElbVNnkLsu3eZgRcCdWVIDkWkn8PqvWvbc oo1pAcHSy7OBwRpjIAiUs/iGfo6EM6RGWq90XId/YuDM24BhWIwIyjpxbL+amzEp7ivW ehKLCfyQtNSknCAfLzjFTLSQhaG86PlyN0JjrZT8SqwnnkVeEXGtoVLAMdtNde+G/BaW sHUPMTn/IBB/CnwMaAE2xcLU+7DiEUb8T2gO8nMTv3sXTnHJZXVZ0EbRdLfgKxzYxT0R p//QUrUYyMpp9MTuP2g87ejxeSZiyWLameYt6o+zwbSUK3h7kdqPMqRgyq3KMeLIt8Ly zr2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SEckkG1T; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79576-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79576-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qw16-20020a170906fcb000b00a3fb21a9114si414545ejb.811.2024.02.24.03.07.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 03:07:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79576-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SEckkG1T; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79576-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79576-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9EFB01F2194F for ; Sat, 24 Feb 2024 11:07:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 727392511E; Sat, 24 Feb 2024 11:06:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SEckkG1T" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8EC0C210E8; Sat, 24 Feb 2024 11:06:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708772817; cv=none; b=HMx+hcoTPpaRVrym1ltl2HmP/KLmBI1pg+R557YiOFqnf162oeRZIH7XbqOEcBsirmvHKjmxg2oR8SFzQ5FIyMG/Tmw5n2+mPH0hJahyl/hYZ8z/nKGU7rFx1z4Jhu9ArPHm+MFAQqU5w/uFfdPlatN21sI51zRVsRo3D4DhMbk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708772817; c=relaxed/simple; bh=cIB4znCddR1qjmuiBmTbiIoYuJDVKe+FBFWQftUxBM0=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=i62Kjd9i+XnKUmT+EISWqcwy6qVsQ/eZqgQ7Ka1qkxbVv1W85m43RZQS4VuxKypXf+LdfTdNAOphSrFvyvWR9kaqbd6jtLQZO8z+J87r+V2sRamRuMC/ayhLkuDmVIUJn1s+6F+wjUiQS/+h4MYwfcdbOITXMaPEmW/tbBNsHI4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SEckkG1T; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49027C433C7; Sat, 24 Feb 2024 11:06:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708772816; bh=cIB4znCddR1qjmuiBmTbiIoYuJDVKe+FBFWQftUxBM0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SEckkG1TSUc8e8L34eytMZdolSDt5McplEXt4l9EmI09MQzp+dNKaEMdKfUNKmblM JP8EVMTn9k/6oQBVghZmzN6eEi1WQcZ3FZZAX4Kqf8LVa1v0+RvD8dfWiXQaxRXSr9 Dn4Nzq7vSu38JN0yYyaQXhi5sDVm70HpK68D2oBrJm5XT8/Y2WeAD185YmmECIE4gN RDJLmQxkLgNkiD/y+oCEkNmCYdvQJtJlz7TCEcOtdaIrxG8U9zYBtdYRdSozQmgWXY CD/MDh+WUHNRj26XJ6jZ7qvUPsTnQEfXWghSVGad18Diln1uhxc0p35mchq5JXo9Bw OjiWCKsmdaxsw== Date: Sat, 24 Feb 2024 11:06:40 +0000 From: Jonathan Cameron To: David Lechner Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Hennerich , Nuno =?UTF-8?B?U8Oh?= , Liam Girdwood , Mark Brown , linux-kernel@vger.kernel.org, Stefan Popa , Julien Stephan Subject: Re: [PATCH v4 2/2] iio: adc: ad7380: new driver for AD7380 ADCs Message-ID: <20240224110640.03f3b857@jic23-huawei> In-Reply-To: References: <20240110-ad7380-mainline-v4-0-93a1d96b50fa@baylibre.com> <20240110-ad7380-mainline-v4-2-93a1d96b50fa@baylibre.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, 19 Feb 2024 13:47:03 -0600 David Lechner wrote: > On Wed, Jan 10, 2024 at 2:29=E2=80=AFPM David Lechner wrote: >=20 > ... >=20 > > + > > +/* fully differential */ > > +DEFINE_AD7380_DIFFERENTIAL_2_CHANNEL(ad7380_channels, 16); > > +DEFINE_AD7380_DIFFERENTIAL_2_CHANNEL(ad7381_channels, 14); > > +/* pseudo differential */ > > +DEFINE_AD7380_DIFFERENTIAL_2_CHANNEL(ad7383_channels, 16); > > +DEFINE_AD7380_DIFFERENTIAL_2_CHANNEL(ad7384_channels, 14); > > + =20 >=20 > Similar question to [1] in light of [2]: Since AD7383 and AD7384 are > pseudo-differential, should we handle them differently? I.e. add > aina-supply and ainb-supply DT properties for the negative inputs > (typically a V_REF / 2 supply) and remove the differential flag from > the channel spec. >=20 > [1]: https://lore.kernel.org/linux-iio/CAMknhBH2Pqa9xpPxnTCxJegVTbOG-QDeJ= A4YrQUPfj+hfSs73A@mail.gmail.com/ > [2]: https://lore.kernel.org/linux-iio/CAMknhBF5mAsN1c-194Qwa5oKmqKzef2kh= XnqA1cSdKpWHKWp0w@mail.gmail.com/ Yes. I think that gives a more intuitive interface for users. I don't think we need to 'fix' any drivers already upstream as presenting these as differential is not an ABI error as far as I am concerned. It's just less than ideal choices given our views now! (as a result of these discussions on what pseudo differential means in practice) Jonathan