[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240803152515.2f61eb5e@jic23-huawei>
Date: Sat, 3 Aug 2024 15:25:15 +0100
From: Jonathan Cameron <jic23@...nel.org>
To: Trevor Gamblin <tgamblin@...libre.com>
Cc: Lars-Peter Clausen <lars@...afoo.de>, Michael Hennerich
<Michael.Hennerich@...log.com>, Nuno Sá <nuno.sa@...log.com>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Jonathan Corbet <corbet@....net>, David
Lechner <dlechner@...libre.com>, Uwe Kleine-Konig
<u.kleine-koenig@...libre.com>, linux-iio@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-doc@...r.kernel.org
Subject: Re: [PATCH RFC 0/3] iio: adc: add new ad7625 driver
On Wed, 31 Jul 2024 09:48:02 -0400
Trevor Gamblin <tgamblin@...libre.com> wrote:
> This series adds a new driver for the Analog Devices Inc. AD7625,
> AD7626, AD7960, and AD7961. These chips are part of a family of
> LVDS-based SAR ADCs. The initial driver implementation does not support
> the devices' self-clocked mode, although that can be added later.
>
> One aspect that is still uncertain is whether there should be a
> devicetree property indicating if the DCO+/- pins are connected, so
> specific feedback on that is appreciated.
Would be good to give more detail. What is DCO?
Seems to be a delayed clock skewed so it aligns with the data being
out in response to clk. Host drives clk, but samples on dco.
Given the device needs to do slightly different things depending
on whether that is what the host is using, I think it definitely does
need to be in DT.
Maybe you need to represent it as the ADC also having a PWM
output that the LVDS DT node binds to if present. That binding
then indicates to the ADC driver that it needs to operating in the
mode that doesn't send the synchronisation 101 pattern.
If you are always representing the ADC and the lvds side of things
as a single node, then need a flag in here somewhere so we can
tell if they are in use or not.
Given this exists as a potential difference between two separate
parts pf a system I'd definitely think about whether we can give them separate
representations with clear 'connectivity' between them
One of those cases were a bit of ascii art would probably be good
to put the problem clearly for the DT reviewers.
Jonathan
>
> The devices make use of two offset PWM signals, one to trigger
> conversions and the other as a burst signal for transferring data to the
> host. These rely on the new PWM waveform functionality being
> reviewed in [1].
>
> This work is being done by BayLibre and on behalf of Analog Devices
> Inc., hence the maintainers are @analog.com.
>
> Special thanks to David Lechner for his guidance and reviews.
>
> Signed-off-by: Trevor Gamblin <tgamblin@...libre.com>
> ---
> Trevor Gamblin (3):
> dt-bindings: iio: adc: add AD762x/AD796x ADCs
> iio: adc: ad7625: add driver
> docs: iio: new docs for ad7625 driver
>
> .../devicetree/bindings/iio/adc/adi,ad7625.yaml | 176 ++++++
> Documentation/iio/ad7625.rst | 91 +++
> MAINTAINERS | 11 +
> drivers/iio/adc/Kconfig | 15 +
> drivers/iio/adc/Makefile | 1 +
> drivers/iio/adc/ad7625.c | 626 +++++++++++++++++++++
> 6 files changed, 920 insertions(+)
> ---
> base-commit: ac6a258892793f0a255fe7084ec2b612131c67fc
> change-id: 20240730-ad7625_r1-60d17ea28958
>
> Best regards,
Powered by blists - more mailing lists