linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Cosmin Tanislav <demonsingur@gmail.com>
Cc: Jonathan Cameron <jic23@kernel.org>,
	Linus Walleij <linus.walleij@linaro.org>,
	linux-iio@vger.kernel.org, linux-gpio@vger.kernel.org,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	Cosmin Tanislav <cosmin.tanislav@analog.com>
Subject: Re: [PATCH v3 1/2] dt-bindings: iio: adc: add AD4130
Date: Wed, 27 Apr 2022 16:41:40 -0500	[thread overview]
Message-ID: <Ymm4lJxumCPQKIhB@robh.at.kernel.org> (raw)
In-Reply-To: <a4ba3f7e-6d03-36c7-e98a-3bed7db69fc6@gmail.com>

On Wed, Apr 27, 2022 at 03:47:13PM +0300, Cosmin Tanislav wrote:
> 
> 
> On 4/26/22 03:37, Rob Herring wrote:
> > On Tue, Apr 19, 2022 at 06:08:27PM +0300, Cosmin Tanislav wrote:
> > > AD4130-8 is an ultra-low power, high precision, measurement solution for
> > > low bandwidth battery operated applications.
> > > 
> > > The fully integrated AFE (Analog Front-End) includes a multiplexer for up
> > > to 16 single-ended or 8 differential inputs, PGA (Programmable Gain
> > > Amplifier), 24-bit Sigma-Delta ADC, on-chip reference and oscillator,
> > > selectable filter options, smart sequencer, sensor biasing and excitation
> > > options, diagnostics, and a FIFO buffer.
> > > 
> > > Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
> > > ---
> > >   .../bindings/iio/adc/adi,ad4130.yaml          | 264 ++++++++++++++++++
> > >   1 file changed, 264 insertions(+)
> > >   create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml
> > > 
> > > diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml
> > > new file mode 100644
> > > index 000000000000..32996b62cd20
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad4130.yaml
> > > @@ -0,0 +1,264 @@
> > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> > > +# Copyright 2022 Analog Devices Inc.
> > > +%YAML 1.2
> > > +---
> > > +$id: http://devicetree.org/schemas/iio/adc/adi,ad4130.yaml#
> > > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > > +
> > > +title: Analog Devices AD4130 ADC device driver
> > > +
> > > +maintainers:
> > > +  - Cosmin Tanislav <cosmin.tanislav@analog.com>
> > > +
> > > +description: |
> > > +  Bindings for the Analog Devices AD4130 ADC. Datasheet can be found here:
> > > +    https://www.analog.com/media/en/technical-documentation/data-sheets/AD4130-8.pdf
> > > +
> > > +properties:
> > > +  compatible:
> > > +    enum:
> > > +      - adi,ad4130-8-16-lfcsp
> > > +      - adi,ad4130-8-16-wlcsp
> > > +      - adi,ad4130-8-24-lfcsp
> > > +      - adi,ad4130-8-24-wlcsp
> > 
> > What is lfcsp? wlcsp seems to be the package type which generally
> > shouldn't be part of the compatible.
> 
> lfcsp is a different package type. Sadly, lfcsp provides less interrupt
> options. On lfcsp, dout-int inside interrupt-names actually only means
> DOUT, while on wlcsp, it means INT. This is why we need to distinguish
> between the different package types. I can't think of any way around it,
> see my reply to Nathan for V1.
> 
> dout support is not implemented in the driver right now because when the
> interrupt pin is configured as dout, FIFO interrupts are unsupported, so
> the entire buffered part of the driver is useless, and extra logic is
> needed for IRQ detection then.

Please capture all this in the binding. At least enough I don't ask the 
same question again when I've forgotten about this.

Rob

  reply	other threads:[~2022-04-27 21:41 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-19 15:08 [PATCH v3 0/2] AD4130 Cosmin Tanislav
2022-04-19 15:08 ` [PATCH v3 1/2] dt-bindings: iio: adc: add AD4130 Cosmin Tanislav
2022-04-26  0:37   ` Rob Herring
2022-04-27 12:47     ` Cosmin Tanislav
2022-04-27 21:41       ` Rob Herring [this message]
2022-06-08  8:31     ` Cosmin Tanislav
2022-05-01 16:09   ` Jonathan Cameron
2022-04-19 15:08 ` [PATCH v3 2/2] iio: adc: ad4130: add AD4130 driver Cosmin Tanislav
2022-05-01 16:08   ` Jonathan Cameron
2022-05-02  8:53     ` Cosmin Tanislav
2022-05-07 16:35       ` Jonathan Cameron
2022-05-07 16:49         ` Cosmin Tanislav
2022-05-07 17:04           ` Jonathan Cameron
2022-05-14 13:32             ` Cosmin Tanislav
2022-05-14 16:24               ` Jonathan Cameron

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=Ymm4lJxumCPQKIhB@robh.at.kernel.org \
    --to=robh@kernel.org \
    --cc=cosmin.tanislav@analog.com \
    --cc=demonsingur@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jic23@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).