Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp204224lqb; Thu, 14 Mar 2024 09:03:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWmGho398wbmHeQpIr0Bk2+P6GzMEDdfC86QoJyB9pfi/wK5yNd/jjSMGnr+oVxsmxlIDyilOTN1MKKyb+ki7G5Oh/v3tM8VSPi/yMusw== X-Google-Smtp-Source: AGHT+IGX1wlL2xZI/ft6cKEXyxPCiw1FAl6pxaS7uonzdy8jsYZtBxGIbRmHbq1mq4Brpg+tFUhw X-Received: by 2002:a17:902:e5c2:b0:1de:e026:1b8e with SMTP id u2-20020a170902e5c200b001dee0261b8emr1647163plf.41.1710432199970; Thu, 14 Mar 2024 09:03:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710432199; cv=pass; d=google.com; s=arc-20160816; b=SUg9PLN8H8FOdnVOky97t6/7xHF+2zQcu8vUVL5m6GnIU8E90zecoIfarruCRzJ8JH lN2+eplpvaQqEUJn/S+8e77SPNY3Q8vm+XFOKBKe11M7CWosnrQoKnIp9W1AuHHyoPab 6a8q8G1mimP0sFJzP0ARHWrcRF6SF+7SJAs/e2BV3gDfwOEV14RZipfNwpToKOx5ktfe FaF2VG/6JFlYlmcouv+QuAlJkx+Apj3dZDvv0ptUYCSMBcvjD4aSD9mVrlNN/g3Z5Due enfpP1oe4iPZwbnl8zfL3WM/qrvns8MDLEiGq/EnYhEVfIDQDePZ5H+h7d6QQJ4r/oL8 TWYg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=SWbhk0M0pYWBHQl3jcidlFtgqCoVtSmo505/PkDGLks=; fh=ymHzIIKCF9yDev6vEqP7wZ7V4TOZMm0CkP6JcmcB1VQ=; b=R9KBfcvOUXBnAQNsB6hG8Hcf3G/r5VhpU2oRxjRIZvJZupiGK1RxVAel84BHYStjP8 O0osZgT7egL9ZjVUpoRl3k246uywKN5RRSFbRlWM955n+e3fdQ2FBLnqVumumwcGwdhG ZwKsSs7lTiUTtMTk4oEcwnX5bEpfYlBgi3cqhsyKjbz2V0zBLj7yy3aT8rLp/9DQoO7+ g3IwgKNWukoaCwt8P5PlGItAP0wt+biwtrb6SCeU8yoy5r8NLM2kr0fqE+MLnVGrITpv +0dfyzgLfcae8WX3gtZSceyEDf/EQBTqEcIZLV1SqmJ7hBMBA/kjebq5y39niizkKueQ FZTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=iB+Rgdmu; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-103542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103542-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id j7-20020a170903028700b001dc7aa0654esi1811731plr.413.2024.03.14.09.03.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 09:03:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=iB+Rgdmu; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-103542-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103542-linux.lists.archive=gmail.com@vger.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id AEEECB233C0 for ; Thu, 14 Mar 2024 16:01:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00ABE73502; Thu, 14 Mar 2024 16:01:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="iB+Rgdmu" Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E6DF17317A for ; Thu, 14 Mar 2024 16:01:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710432100; cv=none; b=Yza9P0BUHDyB8FneD6UZmOP9oBqQSxYfD/GBm0IwrwUsq3ji2gPwPP0rJEgpq6vwOyVOWHCtxSdNXOKNvMHlzvLo2zfMXsBfCoqFF2+pP9een35JwPH1tr84+KK7EVr5LV50wrD1ke4O1QlTfeep3lckpEfFEVio72MGCDP5ChI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710432100; c=relaxed/simple; bh=RPt4+zH2JGF+EQbBemfUY1fFy2ECcpkCY7CdtLIo/gs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=m1fPAasKgnp9mFcmEzqoN7j8Wp13tt4wPvmbXFYijry792v2Ceg0T166cGqCKXhI9oTPV2S2f2YV06JE/L+AAs2f8uMyuyBJ37A+DsIl9ZHnebq9rwO27H74qohs4KOAiYsKnWCT9C+I5K+NSUMGN4d0MXAHspt/D1qIURslz+o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=iB+Rgdmu; arc=none smtp.client-ip=209.85.208.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-2d41d1bedc9so14527751fa.3 for ; Thu, 14 Mar 2024 09:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1710432096; x=1711036896; 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=SWbhk0M0pYWBHQl3jcidlFtgqCoVtSmo505/PkDGLks=; b=iB+RgdmusRcaaWa89pdZ8RbXBeneYh68jhpim4sofBZ1dNEhEJc05WM5A+9JuqEQG6 2VZqeXM+FMOCfm9mdj1dordackLd1ex51Hhp4MORF+U+6xjXn4IvriDRLQFA91BBmqgb MSb7mZmeSgjvyhmwLQ2h4xgWDKKXrxd4pcJpf4j9E9OX6VzDgUk3BOMo+V9JEF4DgsOj a4etfjZSU6/8CFGNPHUUx2Yq8rYUGkiPNKEb5tSUur6YVryHH9DwJgV/TmjQ50ANycHA zfz8CW2sPaJRBf/6L/jmDbghGQby1IWKenuxEhDJVXPsSqHyuanZKr1or2QCfHOcVrLw khGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710432096; x=1711036896; 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=SWbhk0M0pYWBHQl3jcidlFtgqCoVtSmo505/PkDGLks=; b=DlJj1DGLyHHFw4FeSYGWEkgQXcwDHW2IeNL80z5BV13Rk3kPoq/l3QZSEQHYvv0lbF pTXkLfRKyryzgNwufGHocxTFlUloKpGV358AU4uW2Vf+i04AuLACXiKhAoPb1+qrzAps Ly2obHjMuNCdv4CmnQ2t7A2ptVAAmUv+cVPjo1xD97A9PAJFu3coixO9f6L/gORgubY6 ncdWVvReJtnl1LfdJosVjWTz/qRu8PGCKVr/WAutFqztTWcNTbNaMUUvgap9XMjUV69c ZPbEVE1it9wRL4ch+gasSqIq9uoUQoVHBYtoOHIYaPDILDKz+nTmTntaNu/tcMacIO42 41Zg== X-Forwarded-Encrypted: i=1; AJvYcCXeTfONKwJYQQYDjO2lxDAf6+grfwK2hPCM7OToaHpgZREAXuP9HlgC+JtgL5bsSLJB6EAs8ZJSl7oVIp88pdMU89CQD/eI6gXT4yeR X-Gm-Message-State: AOJu0YyJ4Emq1sQTm29hdKBpgL/eFdyJHwp6B6OK/ZA6XvtT1F1us63B +Jfh+FI+hTidH1ck52hIYvCfMBtkicO+4eErPHjeUPKPEF14iO0pd/mszt8qkeTjWQs6tF0mv4Y B/t29ZmZzXq4EvYUElYkKJdmHJFaz8Mcoe4319w== X-Received: by 2002:a2e:9f42:0:b0:2d4:6d56:4aa9 with SMTP id v2-20020a2e9f42000000b002d46d564aa9mr345474ljk.33.1710432096009; Thu, 14 Mar 2024 09:01:36 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240313-mainline-ad7944-doc-v1-0-7860416726e4@baylibre.com> <20240313-mainline-ad7944-doc-v1-2-7860416726e4@baylibre.com> <20240314155720.0e38636f@jic23-huawei> In-Reply-To: <20240314155720.0e38636f@jic23-huawei> From: David Lechner Date: Thu, 14 Mar 2024 11:01:25 -0500 Message-ID: Subject: Re: [PATCH 2/2] docs: iio: new docs for ad7944 driver To: Jonathan Cameron Cc: Michael Hennerich , =?UTF-8?B?TnVubyBTw6E=?= , Jonathan Corbet , linux-doc@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I missed the reply-all on my last reply, so adding back this lists for the record. On Thu, Mar 14, 2024 at 10:57=E2=80=AFAM Jonathan Cameron wrote: > > On Thu, 14 Mar 2024 10:52:57 -0500 > David Lechner wrote: > > > On Wed, Mar 13, 2024 at 3:28=E2=80=AFPM David Lechner wrote: > > > > ... > > > > > +AD7944 and AD7985 are pseudo-differential ADCs and have the followin= g attributes: > > > + > > > ++---------------------------------------+---------------------------= -----------------------------------+ > > > +| Attribute | Description = | > > > ++=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D+ > > > +| ``in_voltage0_raw`` | Raw ADC voltage value (*IN= +* referenced to ground sense). | > > > ++---------------------------------------+---------------------------= -----------------------------------+ > > > +| ``in_voltage0_scale`` | Scale factor to convert ra= w value to mV. | > > > ++---------------------------------------+---------------------------= -----------------------------------+ > > > + > > > > A colleague pointed out that it is perhaps a bit unusual to have > > per-channel scaling since the scale is determined by a single > > reference voltage. I guess it is OK here since there is only one > > channel. But the driver hasn't hit mainline yet, so we could change > > that if you think it is better to have a "shared" `in_voltage_scale`. > Lots of devices have per channel scaling (amplifiers on the front end) bu= t > on a single channel device, it could be shared or per channel without > it making any practical difference. > > It's unusual, but not wrong, so I'm not that fussed either way. > > > > > ... > > > > > + > > > +Show voltage input channel values: > > > + > > > +.. code-block:: console > > > + > > > + root:/sys/bus/iio/devices/iio:device0# cat voltage0-voltage1_raw > > > + -101976 > > > + root:/sys/bus/iio/devices/iio:device0# cat voltage0-voltage1_sca= le > > > + 0.038146972 > > > + > > > > Typo here. Missing `in_` on the attribute name. >