Devicetree
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: David Lechner <dlechner@baylibre.com>
Cc: Md Shofiqul Islam <shofiqtest@gmail.com>,
	linux-iio@vger.kernel.org, nuno.sa@analog.com, andy@kernel.org,
	robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	mike.looijmans@topic.nl, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: iio: adc: ti,ads1298: add ADS1299 EEG ADC variants
Date: Wed, 1 Jul 2026 00:09:47 +0100	[thread overview]
Message-ID: <20260701000947.3cc1a06c@jic23-huawei> (raw)
In-Reply-To: <a64fd56f-6e4b-4e19-9804-ce7a96f14973@baylibre.com>

On Tue, 30 Jun 2026 10:24:19 -0500
David Lechner <dlechner@baylibre.com> wrote:

> On 6/30/26 9:03 AM, Md Shofiqul Islam wrote:
> > The ADS1299, ADS1299-4, and ADS1299-6 share the same SPI interface
> > and register map as the ADS1298 ECG ADC family but are designed for
> > EEG and biopotential measurement.  Key differences from ADS1298:
> > - PGA gain up to 24x (vs 12x for ADS1298)
> > - Internal reference is always 2.4V (no 4V option)
> > 
> > Add compatible strings and update the vref-supply description to
> > document the ADS1299 reference voltage behaviour.
> > 
> > Signed-off-by: Md Shofiqul Islam <shofiqtest@gmail.com>
> > ---
> >  .../bindings/iio/adc/ti,ads1298.yaml          | 31 ++++++++++++++++---
> >  1 file changed, 26 insertions(+), 5 deletions(-)
> > 
> > diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ads1298.yaml b/Documentation/devicetree/bindings/iio/adc/ti,ads1298.yaml
> > index 71f9f9b745cb..82c5181126df 100644
> > --- a/Documentation/devicetree/bindings/iio/adc/ti,ads1298.yaml
> > +++ b/Documentation/devicetree/bindings/iio/adc/ti,ads1298.yaml
> > @@ -4,11 +4,16 @@
> >  $id: http://devicetree.org/schemas/iio/adc/ti,ads1298.yaml#
> >  $schema: http://devicetree.org/meta-schemas/core.yaml#
> >  
> > -title: Texas Instruments' ads1298 medical ADC chips
> > +title: Texas Instruments ADS1298/ADS1299 biopotential ADC chips
> >  
> >  description: |
> > -  Datasheet at: https://www.ti.com/product/ADS1298
> > -  Bindings for this chip aren't complete.
> > +  ADS1298/ADS1298R: 8-channel, 24-bit ECG ADC.
> > +  Datasheet: https://www.ti.com/product/ADS1298
> > +
> > +  ADS1299/ADS1299-4/ADS1299-6: 8/4/6-channel, 24-bit EEG/biopotential ADC.
> > +  Identical SPI interface and register map to the ADS1298 family, but with
> > +  a higher maximum PGA gain (24x vs 12x) and fixed 2.4V internal reference.
> > +  Datasheet: https://www.ti.com/product/ADS1299
Further to David's comment below about not caring about the internal reference
details, I'd drop that bit from here as well.

If you want to differentiate the parts (I'm not sure it's necessary) then say
what each one does as that will be more extensible than starting from a base
then expanding.

Something like:
ADS1298/ADS1298R: 8-channel, 24-bit ECG ADC. Max 12x PGA gain.
Datasheet: https://www.ti.com/product/ADS1298

ADS1299/ADS1299-4/ADS1299-6: 8/4/6-channel, 24-bit EEG/biopotential ADC.
Max 24x PGA gain.
Datasheet: https://www.ti.com/product/ADS1299

(check how that gets formatted and edit as appropriate)

> >  
> >  maintainers:
> >    - Mike Looijmans <mike.looijmans@topic.nl>
> > @@ -17,6 +22,9 @@ properties:
> >    compatible:
> >      enum:
> >        - ti,ads1298
> > +      - ti,ads1299
> > +      - ti,ads1299-4
> > +      - ti,ads1299-6
> >  
> >    reg:
> >      maxItems: 1
> > @@ -33,8 +41,10 @@ properties:
> >  
> >    vref-supply:
> >      description:
> > -      Optional reference voltage. If omitted, internal reference is used,
> > -      which is 2.4V when analog supply is below 4.4V, 4V otherwise.
> > +      Optional reference voltage. If omitted, internal reference is used.
> > +      For ADS1298, the internal reference is 2.4V when analog supply is
> > +      below 4.4V, 4V otherwise. For ADS1299, the internal reference is
> > +      always 2.4V.  
> 
> Not sure the dt-bindings care about the internal reference. It should
> just be a driver implementation detail.
> 
> So I would just trim this down to:
> 
> 	Optional reference voltage. If omitted, internal reference is used.
> 
> >  
> >    clocks:
> >      description: Optional 2.048 MHz external source clock on CLK pin
> > @@ -75,5 +85,16 @@ examples:
> >            spi-max-frequency = <20000000>;
> >            spi-cpha;
> >          };
> > +
> > +        adc@2 {
> > +          reg = <2>;
> > +          compatible = "ti,ads1299";
> > +          label = "ads1299-1-eeg";
> > +          avdd-supply = <&reg_iso_5v_a>;
> > +          interrupt-parent = <&gpio0>;
> > +          interrupts = <79 IRQ_TYPE_EDGE_FALLING>;
> > +          spi-max-frequency = <20000000>;
> > +          spi-cpha;
> > +        };  
> 
> Since the chips are nearly identical, not sure a 2nd example is
> particularly useful.
> 
> >      };
> >  ...  
> 


  reply	other threads:[~2026-06-30 23:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-30 14:03 [PATCH 1/2] dt-bindings: iio: adc: ti,ads1298: add ADS1299 EEG ADC variants Md Shofiqul Islam
2026-06-30 14:03 ` [PATCH 2/2] iio: adc: ti-ads1298: add ADS1299 EEG ADC family support Md Shofiqul Islam
2026-06-30 14:15   ` sashiko-bot
2026-06-30 18:32   ` David Lechner
2026-07-01  8:52   ` Andy Shevchenko
2026-06-30 15:24 ` [PATCH 1/2] dt-bindings: iio: adc: ti,ads1298: add ADS1299 EEG ADC variants David Lechner
2026-06-30 23:09   ` Jonathan Cameron [this message]
2026-06-30 23:14 ` Jonathan Cameron
2026-07-01  9:44   ` Conor Dooley

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=20260701000947.3cc1a06c@jic23-huawei \
    --to=jic23@kernel.org \
    --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 \
    /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