From: Jonathan Cameron <jic23@kernel.org>
To: Jorge Marques <jorge.marques@analog.com>
Cc: "Lars-Peter Clausen" <lars@metafoo.de>,
"Michael Hennerich" <Michael.Hennerich@analog.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>,
"Jonathan Corbet" <corbet@lwn.net>,
"Linus Walleij" <linus.walleij@linaro.org>,
"Bartosz Golaszewski" <brgl@bgdev.pl>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
linux-gpio@vger.kernel.org
Subject: Re: [PATCH v3 1/9] dt-bindings: iio: adc: Add adi,ad4062
Date: Sat, 6 Dec 2025 16:58:22 +0000 [thread overview]
Message-ID: <20251206165822.778606e1@jic23-huawei> (raw)
In-Reply-To: <20251205-staging-ad4062-v3-1-8761355f9c66@analog.com>
On Fri, 5 Dec 2025 16:12:02 +0100
Jorge Marques <jorge.marques@analog.com> wrote:
> Add dt-bindings for AD4062 family, devices AD4060/AD4062, low-power with
> monitor capabilities SAR ADCs. Each variant of the family differs in
> resolution. The device contains two outputs (gp0, gp1). The outputs can
> be configured for range of options, such as threshold and data ready.
> The device uses a 2-wire I3C interface.
>
> Signed-off-by: Jorge Marques <jorge.marques@analog.com>
> ---
> .../devicetree/bindings/iio/adc/adi,ad4062.yaml | 124 +++++++++++++++++++++
> MAINTAINERS | 6 +
> 2 files changed, 130 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad4062.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad4062.yaml
> new file mode 100644
> index 0000000000000..a7a2ad761d1f0
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad4062.yaml
> @@ -0,0 +1,124 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +# Copyright 2024 Analog Devices Inc.
It's changed enough in the versions posted that probably wants to at
least include 2025.
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/adc/adi,ad4062.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Analog Devices AD4062 ADC family device driver
> +
> +maintainers:
> + - Jorge Marques <jorge.marques@analog.com>
> +
> +description: |
> + Analog Devices AD4062 Single Channel Precision SAR ADC family
> +
> + https://www.analog.com/media/en/technical-documentation/data-sheets/ad4060.pdf
> + https://www.analog.com/media/en/technical-documentation/data-sheets/ad4062.pdf
> +
> +properties:
> + compatible:
> + enum:
> + - adi,ad4060
> + - adi,ad4062
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + description:
> + The interrupt pins are digital outputs that can be configured at runtime
> + as multiple interrupt signals. Each can be configured as GP_INTR, RDY,
> + DEV_EN, logic low, logic high and DEV_RDY (GP1 only).
This is a bit confused. logic low / logic high aren't interrupt signals so I'd
not mention them here. Maybe something less detailed such as
Two pins are available that can be configured as either a general purpose
digital output, device enable signal (used to synchronise other parts of
the signal chain with ADC sampling), device ready (GP1 only) or various
interrupt signals. If intended for use as a GPIO or device enable, will not
present here.
For the binding I'm not sure we care about which interrupts are possible.
I guess even for device ready we might treat it as a onetime interrupt. Probably poll
it though - which requires a GPIO not an interrupt binding. If we don't need
to use that mode (and can poll a register or something like that) then no need
to mention that bit.
> RDY is the
> + active-low data ready signal, indicates when new ADC data are ready to
> + read. DEV_EN synchronizes the enable and power-down states of signal
> + chain devices with the ADC sampling instant. DEV_RDY is an active-high
> + signal that indicates when the device is ready to accept serial interface
> + communications. In GP_INTR mode, the interrupt outputs one of the
> + threshold detection interrupt signals (MIN_INTR, MAX_INTR or either).
> + minItems: 1
> + items:
> + - description:
> + GP0 pin, cannot be configured as DEV_RDY.
> + - description:
> + GP1 pin, can be configured to any setting.
> +
> + interrupt-names:
> + minItems: 1
> + items:
> + - const: gp0
> + - const: gp1
> +
> + gpio-controller:
> + description:
> + Marks the device node as a GPIO controller. GPs not listed as interrupts
> + are exposed as a GPO.
> +
> + '#gpio-cells':
> + const: 2
> + description:
> + The first cell is the GPIO number and the second cell specifies
> + GPIO flags, as defined in <dt-bindings/gpio/gpio.h>.
> +
> + vdd-supply:
> + description: Analog power supply.
> +
> + vio-supply:
> + description: Digital interface logic power supply.
> +
> + ref-supply:
> + description:
> + Reference voltage to set the ADC full-scale range. If not present,
> + vdd-supply is used as the reference voltage.
> +
> +required:
> + - compatible
> + - reg
> + - vdd-supply
> + - vio-supply
> +
> +allOf:
> + - $ref: /schemas/i3c/i3c.yaml#
next prev parent reply other threads:[~2025-12-06 16:58 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-05 15:12 [PATCH v3 0/9] Add support for AD4062 device family Jorge Marques
2025-12-05 15:12 ` [PATCH v3 1/9] dt-bindings: iio: adc: Add adi,ad4062 Jorge Marques
2025-12-06 16:58 ` Jonathan Cameron [this message]
2025-12-08 21:17 ` Jorge Marques
2025-12-05 15:12 ` [PATCH v3 2/9] docs: iio: New docs for ad4062 driver Jorge Marques
2025-12-06 17:01 ` Jonathan Cameron
2025-12-05 15:12 ` [PATCH v3 3/9] iio: adc: Add support for ad4062 Jorge Marques
2025-12-06 17:34 ` Jonathan Cameron
2025-12-08 21:16 ` Jorge Marques
2025-12-16 21:40 ` Jorge Marques
2025-12-06 18:12 ` kernel test robot
2025-12-05 15:12 ` [PATCH v3 4/9] docs: iio: ad4062: Add IIO Trigger support Jorge Marques
2025-12-05 15:12 ` [PATCH v3 5/9] iio: adc: " Jorge Marques
2025-12-06 17:45 ` Jonathan Cameron
2025-12-08 21:17 ` Jorge Marques
2025-12-05 15:12 ` [PATCH v3 6/9] docs: iio: ad4062: Add IIO Events support Jorge Marques
2025-12-05 15:12 ` [PATCH v3 7/9] iio: adc: " Jorge Marques
2025-12-06 17:52 ` Jonathan Cameron
2025-12-08 21:12 ` Jorge Marques
2025-12-05 15:12 ` [PATCH v3 8/9] docs: iio: ad4062: Add GPIO Controller support Jorge Marques
2025-12-10 23:47 ` Linus Walleij
2025-12-05 15:12 ` [PATCH v3 9/9] iio: adc: " Jorge Marques
2025-12-10 23:48 ` Linus Walleij
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=20251206165822.778606e1@jic23-huawei \
--to=jic23@kernel.org \
--cc=Michael.Hennerich@analog.com \
--cc=andy@kernel.org \
--cc=brgl@bgdev.pl \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=jorge.marques@analog.com \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linus.walleij@linaro.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=robh@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