From: Rob Herring <robh@kernel.org>
To: Alisa-Dariana Roman <alisadariana@gmail.com>
Cc: Alisa-Dariana Roman <alisa.roman@analog.com>,
Jonathan Cameron <Jonathan.Cameron@huawei.com>,
David Lechner <dlechner@baylibre.com>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
Lars-Peter Clausen <lars@metafoo.de>,
Michael Hennerich <Michael.Hennerich@analog.com>,
Jonathan Cameron <jic23@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Jonathan Corbet <corbet@lwn.net>
Subject: Re: [PATCH v3 1/3] dt-bindings: iio: adc: add AD7191
Date: Wed, 29 Jan 2025 10:51:29 -0600 [thread overview]
Message-ID: <20250129165129.GA2216595-robh@kernel.org> (raw)
In-Reply-To: <20250129143054.225322-2-alisa.roman@analog.com>
On Wed, Jan 29, 2025 at 04:29:02PM +0200, Alisa-Dariana Roman wrote:
> AD7191 is a pin-programmable, ultra-low noise 24-bit sigma-delta ADC
> designed for precision bridge sensor measurements. It features two
> differential analog input channels, selectable output rates,
> programmable gain, internal temperature sensor and simultaneous
> 50Hz/60Hz rejection.
>
> Signed-off-by: Alisa-Dariana Roman <alisa.roman@analog.com>
> ---
> .../bindings/iio/adc/adi,ad7191.yaml | 149 ++++++++++++++++++
> MAINTAINERS | 7 +
> 2 files changed, 156 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7191.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7191.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7191.yaml
> new file mode 100644
> index 000000000000..ac14096ba76c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7191.yaml
> @@ -0,0 +1,149 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +# Copyright 2025 Analog Devices Inc.
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/adc/adi,ad7191.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Analog Devices AD7191 ADC
> +
> +maintainers:
> + - Alisa-Dariana Roman <alisa.roman@analog.com>
> +
> +description: |
> + Bindings for the Analog Devices AD7191 ADC device. Datasheet can be
> + found here:
> + https://www.analog.com/media/en/technical-documentation/data-sheets/AD7191.pdf
> + The device's PDOWN pin must be connected to the SPI controller's chip select
> + pin.
> +
> +properties:
> + compatible:
> + enum:
> + - adi,ad7191
> +
> + reg:
> + maxItems: 1
> +
> + spi-cpol: true
> +
> + spi-cpha: true
> +
> + clocks:
> + maxItems: 1
> + description: |
Don't need '|' if no formatting.
> + Must be present when CLKSEL pin is tied HIGH to select external clock
> + source (either a crystal between MCLK1 and MCLK2 pins, or a
> + CMOS-compatible clock driving MCLK2 pin). Must be absent when CLKSEL pin
> + is tied LOW to use the internal 4.92MHz clock.
> +
> + interrupts:
> + maxItems: 1
> +
> + avdd-supply:
> + description: AVdd voltage supply
> +
> + dvdd-supply:
> + description: DVdd voltage supply
> +
> + vref-supply:
> + description: Vref voltage supply
> +
> + odr-gpios:
> + description: |
Don't need '|' if no formatting.
> + ODR1 and ODR2 pins for output data rate selection. Should be defined if
> + adi,odr-value is absent.
> + minItems: 2
> + maxItems: 2
> +
> + adi,odr-value:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: |
> + Should be present if ODR pins are pin-strapped. Possible values:
> + 120 Hz (ODR1=0, ODR2=0)
> + 60 Hz (ODR1=0, ODR2=1)
> + 50 Hz (ODR1=1, ODR2=0)
> + 10 Hz (ODR1=1, ODR2=1)
> + If defined, odr-gpios must be absent.
> + enum: [120, 60, 50, 10]
> +
> + pga-gpios:
> + description: |
Don't need '|' if no formatting.
With those fixed,
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
> + PGA1 and PGA2 pins for gain selection. Should be defined if adi,pga-value
> + is absent.
> + minItems: 2
> + maxItems: 2
next prev parent reply other threads:[~2025-01-29 16:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-29 14:29 [PATCH v3 0/3] Add support for AD7191 Alisa-Dariana Roman
2025-01-29 14:29 ` [PATCH v3 1/3] dt-bindings: iio: adc: add AD7191 Alisa-Dariana Roman
2025-01-29 16:51 ` Rob Herring [this message]
2025-01-29 14:29 ` [PATCH v3 2/3] iio: adc: ad7191: " Alisa-Dariana Roman
2025-01-31 18:35 ` Jonathan Cameron
2025-01-29 14:29 ` [PATCH v3 3/3] docs: iio: " Alisa-Dariana Roman
2025-01-31 18:39 ` Jonathan Cameron
2025-01-31 18:26 ` [PATCH v3 0/3] Add support for AD7191 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=20250129165129.GA2216595-robh@kernel.org \
--to=robh@kernel.org \
--cc=Jonathan.Cameron@huawei.com \
--cc=Michael.Hennerich@analog.com \
--cc=alisa.roman@analog.com \
--cc=alisadariana@gmail.com \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-doc@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).