mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Stephan Costa Barros <stephanbrrs8@gmail.com>
Cc: "Andy Shevchenko" <andriy.shevchenko@intel.com>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Mike Looijmans" <mike.looijmans@topic.nl>,
	linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	"Md Shofiqul Islam" <shofiqtest@gmail.com>
Subject: Re: [PATCH 0/2] iio: adc: add TI ADS1299
Date: Sat, 24 Oct 2026 03:56:33 +0100	[thread overview]
Message-ID: <20261024035633.500a1659@jic23-hlaptop> (raw)
In-Reply-To: <20261020000031.14522-1-stephanbrrs8@gmail.com>

On Mon, 19 Oct 2026 21:00:31 -0300
Stephan Costa Barros <stephanbrrs8@gmail.com> wrote:

> On Mon, Oct 19, 2026 at 01:16:58PM +0300, Andy Shevchenko wrote:
> > On Sun, Oct 18, 2026 at 09:12:45PM -0300, Stephan Costa Barros wrote:  
> 
> [...]
> 
> > > A question on structure. The driver started from ti-ads1298.c, and in
> > > this subset the two are close.  
> 
> [...]
> 
> > Okay, I think you can try to rework this as a series on top of the existing
> > code. I can't easily see if the above difference warrants a brand new driver.  
> 
> Thanks, Andy. I'll do that for v2: first prepare ti-ads1298 for more
> than one family (chip info for the gain table, the data rates and the
> reference), then add the ADS1299 to it, with its compatibles in
> ti,ads1298.yaml instead of a new binding.
> 
> Some background: this comes from my undergraduate thesis. The project
> first planned a driver written from scratch; I then found ti-ads1298 and
> built on it instead. Beyond what ti-ads1298 does today, the out-of-tree
> driver that came out of it sets the gain of each channel, timestamps
> each buffered sample, reports lead-off as IIO_EV_TYPE_FAULT /
> IIO_EV_DIR_FAULT_OPENWIRE events, routes the internal test signal and
> shorted inputs, reads the supply monitors and the temperature sensor,
> switches SRB1 and SRB2, and runs a self test at probe; all of that is
> tested on an ADS1299. The bias drive, GPIO1-4 as a gpiochip, the CLK
> output, PWDN and suspend are written but not tested yet.
> 
> For mainline I cut this down to the generic ABI. The rest can follow as
> separate series on top of ti-ads1298, where most of it applies to the
> ADS1298 as well; only SRB1 and SRB2 are ADS1299-specific.
> 
> The automated review of this version also pointed at issues that the
> new driver inherited from ti-ads1298 too.
> 
> I had missed Md Shofiqul Islam's series when I sent this one, and found
> it only now: "[PATCH v2 0/2] iio: adc: ti-ads1298: add ADS1298/ADS1299
> driver", sent on 6 July 2026 and reviewed by Jonathan on 11 July. Md,
> are you still working on it? If not, I would like to take it on,
> following Jonathan's review there (per-chip match data, the reference
> voltage and the ID register), and I can test it on hardware: an ADS1299
> with DRDY as an interrupt.
> 
> Jonathan, if you would rather keep a separate driver, please let me
> know before I start.
> 
Definitely worth having a go to extend the existing driver.
If you run into major problems or unexpected complexity then
possibly come back to the separate one.

Jonathan

> Stephan


      reply	other threads:[~2026-10-24  2:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19  0:12 Stephan Costa Barros
2026-10-19  0:12 ` [PATCH 1/2] dt-bindings: " Stephan Costa Barros
2026-10-20  7:44   ` Krzysztof Kozlowski
2026-10-19  0:12 ` [PATCH 2/2] iio: adc: ti-ads1299: add driver for " Stephan Costa Barros
2026-10-19  7:03   ` Uwe Kleine-König
2026-10-19 23:59     ` Stephan Costa Barros
2026-10-19 10:16 ` [PATCH 0/2] iio: adc: add " Andy Shevchenko
2026-10-20  0:00   ` Stephan Costa Barros
2026-10-24  2:56     ` Jonathan Cameron [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261024035633.500a1659@jic23-hlaptop \
    --to=jic23@kernel.org \
    --cc=andriy.shevchenko@intel.com \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mike.looijmans@topic.nl \
    --cc=nuno.sa@analog.com \
    --cc=robh@kernel.org \
    --cc=shofiqtest@gmail.com \
    --cc=stephanbrrs8@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®