Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp615022lqt; Thu, 6 Jun 2024 12:58:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX5KuiscezxYLSdcSxySrZLZGKmB5kNYZmKCqzN7xk2tlMloGc91e3ov3vmOWhSKcz847gbWPil+M9nYVNDAsUHNdBOVM1BervyGRsaWw== X-Google-Smtp-Source: AGHT+IGTFrDeKGDbTN1I+nNPZADdxcYDCIqYcdvGcbpbWmgMSWxis8ARejqWkqyrH8z8n73zqWhE X-Received: by 2002:a05:6a21:6d8e:b0:1af:66aa:7fc7 with SMTP id adf61e73a8af0-1b2f96a3670mr639338637.3.1717703910462; Thu, 06 Jun 2024 12:58:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717703910; cv=pass; d=google.com; s=arc-20160816; b=vPFo1pu+Tq1Y+iCWKqpHKcipDYRoDnzOeN41ySkcQYOyEF8IAN6mv7mUXkuPN3ne0p yP1Ie8RdtjYmlzLao5F+nVLUgPkJ9q+9rgRS+e4JjvHhsmqgCW9tDlF5U6Lq1yXTaVRU PkbX8o9HC6WCIpTFdkrOVwo9fkde/JHxwJVnMV6607Q1WWDKRCj9Cd3mIs2FNt/7RDfj zHroy7rPnZLXuKCxN5zR5lvSHy4Ffa+ehAu/sgnKCZ6lDwlGy9WkSrqEPUDJ7FCEIs4L wqlmw1u/c/mnsntgbhPe4M2GvOjN6esC7AljvmapJmFzo9AnHg4/r55VLPqThUxjYV1l 6dIA== 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=0wKpVyieFGGu4XHR0fgYRHUZdsPwVXFbCU8ibEYc3mM=; fh=FH+qPOqc1BGcW7OlmsMfPBTRRn2SdiO9SB+EA5WEXS8=; b=UUxG46h919PqMUYsV9gOpdhY5PzCXiLFwU5AtAzxR/w1YkBV01mzOoQ9aOi14Nbchj AqpSkxiHafCjvU6/NGCw0ex6YRjcZ+CRzq+USHbVwwMpj47OhSsTgt2eiRkqVMdzcBGY AzoLsumgp+Y4c9Ab9aWbbpmrNe85qCQj+fz/uCdHy4UojrH8rGuG3wayNT9SBN2bsklJ mGd+w9V1DoPT1kfYM9NrurlCl/lXBa/4gJkxdRtG3KWQYnI1xP56UnOK4JXwK3f4ZmfB OQXP+k0YRIQ4Lf1+L4UCw9hkniZUwe1Py3SmEnFUE8AUtYDi1J8LJqdTibDhWgcOKw79 LSng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kxw0PvxZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-204963-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204963-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de2895dc69si1641626a12.645.2024.06.06.12.58.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 12:58:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204963-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Kxw0PvxZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-204963-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204963-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 05EF92816B5 for ; Thu, 6 Jun 2024 19:58:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF2DA71B40; Thu, 6 Jun 2024 19:58:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Kxw0PvxZ" 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 D83CD44361; Thu, 6 Jun 2024 19:58:23 +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=1717703904; cv=none; b=CruEIK6MtrbLnZHUoV0YwlXhZFUf3EQxmFwzA80qSHu0/1InyC0GaZIBQpa0cA2tnenUwPS1qEyVGcubC66PMv/fHwyENwvCsZ2GBsv3nz5o8DIgR27DrpmpixiW10Mg3Rgt9w3dsuEYkxYZkJjMCsfq3ZF+k5HdldU4jhaDwsE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717703904; c=relaxed/simple; bh=Ew+uJIHo1tIv3V3cIwq+PSc8g98kQVzDQiK0ACMNhjc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=epQGY8xmgH0SrCHbt39puAh7E+0feOkLwhwUygreDAREHFy2ij2h6kUzZwGgk/is7UaVKn49zqCOB7vJ5jmlevpWe5Ac2eJPmOM8GTevnjYI7yqDJhgSPauyQEzx7HRlpVBIjhx9rjuAseDz+B3W3e2mhXmn6JHFysrfjFmzQ/E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Kxw0PvxZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B09AC2BD10; Thu, 6 Jun 2024 19:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717703903; bh=Ew+uJIHo1tIv3V3cIwq+PSc8g98kQVzDQiK0ACMNhjc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Kxw0PvxZlvq15FdUzivZMcou6nAZV13taDbuK/NcPoGENpZmvccKY9eOC1Trn7u+d 8KmYAxQ/4bKhzl/LMlp+kPI6D3uOAu1jMM99XckQ6/hp7r/qPIwNKTpoCyD6cdQXKj 5p94n0MwBhXTpu7HX0kRqMOWqx3SE98CfaonMv3PEFbtqHwAhwFM67WH8hsZ7mZGdw li2/G/wYPqzoZEppGcvUCH2hwJ/MvYjC9iCUq3PnDZYTDOMw22KF8QNpNQF9ujOf+Y UFVhgxDIqQtqv7I8mpJrBLFli0ULUwsm0K6NmiodGfbPWOb1PqPB+DRyL7G3U09xuB R8Rg64G1sreSw== Date: Thu, 6 Jun 2024 20:58:13 +0100 From: Jonathan Cameron To: "Ceclan, Dumitru" Cc: Dumitru Ceclan via B4 Relay , dumitru.ceclan@analog.com, Lars-Peter Clausen , Michael Hennerich , Rob Herring , Krzysztof Kozlowski , Conor Dooley , David Lechner , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/6] dt-bindings: adc: ad7173: add support for ad411x Message-ID: <20240606205813.65b342c4@jic23-huawei> In-Reply-To: <0f0c0b92-af0d-4e68-9880-bacfd53d726f@gmail.com> References: <20240531-ad4111-v4-0-64607301c057@analog.com> <20240531-ad4111-v4-1-64607301c057@analog.com> <20240601193512.0e17992b@jic23-huawei> <20240603210014.6258134d@jic23-huawei> <0f0c0b92-af0d-4e68-9880-bacfd53d726f@gmail.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.42; 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 Wed, 5 Jun 2024 09:54:31 +0300 "Ceclan, Dumitru" wrote: > On 03/06/2024 23:00, Jonathan Cameron wrote: > > On Mon, 3 Jun 2024 12:46:10 +0300 > > "Ceclan, Dumitru" wrote: > > =20 > >> On 01/06/2024 21:35, Jonathan Cameron wrote: =20 > >>> On Fri, 31 May 2024 22:42:27 +0300 > >>> Dumitru Ceclan via B4 Relay wrote: > >>> =20 > >>>> From: Dumitru Ceclan =20 >=20 > ... >=20 > >>>> + Supported only by AD7172-2, AD7172-4, AD7175-2, AD7175-8,= AD7177-2: > >>>> + 19: ((AVDD1 =E2=88=92 AVSS)/5)+ > >>>> + 20: ((AVDD1 =E2=88=92 AVSS)/5)=E2=88=92 =20 > >>> > >>> That's what it says on the datasheet (so fine to copy that here) but = I'm curious, what does > >>> that mean in practice? How can we have negative and postive signals = of the difference > >>> between two power supply voltages where I'm fairly sure AVDD1 always = greater than AVSS. > >>> =20 > >> > >> I have not tested that as I do not have a model that supports this wir= ed up. > >> If I had to guess they are the same signal but one should be connected= to the > >> positive input, one to the negative input...but I could be wrong. =20 > >=20 > > If they are, then as far as I we are concerned is this one channel with= two > > representations depending on whether it is 1st or 2nd in the list? > > Can we use one number and hide that detail in the driver? > >=20 > > Seems odd though if that is the case. > >=20 > > I guess if we find out later this is the case we can tighten the bindin= g to > > enforce the right one instead of squashing them to one value, but that > > is a bit ugly. Any chance of digging out the info? If not we can go a= head > > but ideally answering things like this make a our life easier in the lo= ng run. > >=20 > > Jonathan > > =20 >=20 > "(Avdd1/Avss)/5+ as positive input and (Avdd/Avss)/5- as negative > this is used for monitoring power supplies, the inputs must be selected= in pair" > Perhaps it's an internal voltage divider...? I dunno >=20 > So it seems like this cannot be used as a common mode voltage input. > I'll restrict the driver to only allow these inputs paired together > and rename the define for these selections. Most mysterious :) I'd be interested to know what value it reads back if you ever get the part. Ah well, great to have gotten that extra detail even if it leaves more questions! Jonathan >=20 >=20 >=20