[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
<BE1P281MB2420EBD112C4F7A96598AE05EF922@BE1P281MB2420.DEUP281.PROD.OUTLOOK.COM>
Date: Mon, 2 Sep 2024 13:04:55 +0000
From: "Sperling, Tobias" <Tobias.Sperling@...ting.com>
To: Jonathan Cameron <jic23@...nel.org>, Guenter Roeck <linux@...ck-us.net>
CC: Conor Dooley <conor@...nel.org>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>, "linux-hwmon@...r.kernel.org"
<linux-hwmon@...r.kernel.org>, "devicetree@...r.kernel.org"
<devicetree@...r.kernel.org>, "linux-doc@...r.kernel.org"
<linux-doc@...r.kernel.org>, "jdelvare@...e.com" <jdelvare@...e.com>,
"robh@...nel.org" <robh@...nel.org>, "krzk+dt@...nel.org"
<krzk+dt@...nel.org>, "conor+dt@...nel.org" <conor+dt@...nel.org>,
"corbet@....net" <corbet@....net>, "linux-iio@...r.kernel.org"
<linux-iio@...r.kernel.org>
Subject: AW: [PATCH 1/2] dt-bindings: hwmon: Introduce ADS71x8
> On Fri, 30 Aug 2024 07:30:16 -0700
> Guenter Roeck <linux@...ck-us.net> wrote:
>
> > On 8/30/24 06:14, Conor Dooley wrote:
> > > Hey Tobias, Guenter, Jonathan,
> > >
> > > On Fri, Aug 30, 2024 at 11:49:53AM +0000, Sperling, Tobias wrote:
> > >> From b2e04ce5500faf274654be5284be9db4f3abefce Mon Sep 17 00:00:00
> 2001
> > >> From: Tobias Sperling <tobias.sperling@...ting.com>
> > >> Date: Fri, 23 Aug 2024 12:08:33 +0200
> > >> Subject: [PATCH 1/2] dt-bindings: hwmon: Introduce ADS71x8
> > >>
> > >> Add documentation for the driver of ADS7128 and ADS7138 12-bit, 8-channel
> > >> analog-to-digital converters. These ADCs have a wide operating range and
> > >> a wide feature set. Communication is based on an I2C interface.
> > >> The driver provides the functionality of manually reading single channels
> > >> or sequentially reading all channels automatically.
> > >>
> > >> Signed-off-by: Tobias Sperling <tobias.sperling@...ting.com>
> > >> ---
> > >> .../devicetree/bindings/hwmon/ti,ads71x8.yaml | 85 +++++++++++
> > >
> > > If this is a "generic" adc, why is it going into hwmon?
> > > I would have expected this to be in iio/adc, and use more typical adc
> > > bindings, even if the driver is in hwmon.
> > >
> > > Guenter/Jonathan wdyt?
> > >
> >
> > Same thought here. While the chip supports limits, making it suitable for
> > hardware monitoring, its primary use seems to be as ADC, not as hardware
> > monitoring device. The hardware monitoring API isn't well suited for the
> > fast sample rate supported by this chip.
>
> Agreed, looks like a typical IIO ADC.
>
> If the particular board needs it for hardware monitoring we have
> the bridge that should work for that (iio-hwmon).
Just some addition. In theory the chip also provides the possibility to use some
channels as GPIO making it not only work as ADC.
But yes, driver mainly implements reading of the ADC. Will try to make it an
IIO ADC device then.
> Jonathan
>
> >
> > Guenter
> >
Regards
Tobias
Powered by blists - more mailing lists