From: David Lechner <dlechner@baylibre.com>
To: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
"Conor Dooley" <conor+dt@kernel.org>,
"Dumitru Ceclan" <dumitru.ceclan@analog.com>,
"Jonathan Cameron" <jic23@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Michael Hennerich" <Michael.Hennerich@analog.com>,
"Nuno Sa" <nuno.sa@analog.com>, "Rob Herring" <robh@kernel.org>
Cc: devicetree@vger.kernel.org, linux-iio@vger.kernel.org
Subject: Re: [PATCH v2 0/4] iio: adc: ad7124: Make it work on de10-nano
Date: Mon, 28 Oct 2024 11:38:44 -0500 [thread overview]
Message-ID: <9cf40804-c85d-43c5-82a3-14f75b9922e9@baylibre.com> (raw)
In-Reply-To: <20241028160748.489596-6-u.kleine-koenig@baylibre.com>
On 10/28/24 11:07 AM, Uwe Kleine-König wrote:
> Hello,
>
> this is iteration v2 to make ad7124 work on de10-nano. (Implicit) v1 is
> available at
> https://lore.kernel.org/linux-iio/20241024171703.201436-5-u.kleine-koenig@baylibre.com.
>
> The changes since v1:
>
> - Write 0 instead of 0x0001 to disable channels. While 0x0001 is the
> reset default value for these registers (apart from the channel 0 one)
> there is no sensible reason to use that value (i.e.
> AD7124_CHANNEL_AINP(0) | AD7124_CHANNEL_AINM(1)) as the value is
> reprogrammed before use anyhow. This addresses the feedback that the
> magic value 0x0001 should better be constructed using register bit
> field defintions.
>
> - Add maxItems: 1 to the new property defined in the binding patch (Krzysztof)
>
> - Rename property to rdy-gpios (Rob)
>
> - Use rdy-gpios only for gpio reading and continue using the usual irq
> defintion for the interrupt (Jonathan). I was surprised I can use both the
> GPIO as input and the matching irq.
>
> - patch #1 is new, and use GPIO_ACTIVE_LOW in the gpio descriptor
> instead of 2.
>
> Jonathan voiced concerns about the reliability of this solution and
> proposed to implement polling. I'm convinced the solution implemented
> here is robust, so I see no need to implement polling today.
>
> Still open questions:
>
> - Is rdy-gpios the right name. The line is named ̅R̅D̅Y, so maybe nrdy-gpios? Or
> nRDY-gpios?
The GPIO_ACTIVE_LOW indicates the "bar" for active low, so we don't
typically add the "n" prefix to the name. So rdy-gpios looks correct
to me.
> - Jonathan wanted some input from ADI about this series and the
> hardware details.
>
> Best regards
> Uwe
>
> Uwe Kleine-König (4):
> dt-bindings: iio: adc: adi,ad7124: Use symbolic name for interrupt
> flag
> dt-bindings: iio: adc: adi,ad7124: Allow specifications of a gpio for
> irq line
> iio: adc: ad_sigma_delta: Add support for reading irq status using a
> GPIO
> iio: adc: ad7124: Disable all channels at probe time
>
> .../bindings/iio/adc/adi,ad7124.yaml | 11 +++++-
> drivers/iio/adc/ad7124.c | 3 ++
> drivers/iio/adc/ad_sigma_delta.c | 35 ++++++++++++++++---
> include/linux/iio/adc/ad_sigma_delta.h | 1 +
> 4 files changed, 44 insertions(+), 6 deletions(-)
>
> base-commit: 9852d85ec9d492ebef56dc5f229416c925758edc
next prev parent reply other threads:[~2024-10-28 16:38 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-28 16:07 [PATCH v2 0/4] iio: adc: ad7124: Make it work on de10-nano Uwe Kleine-König
2024-10-28 16:07 ` [PATCH v2 1/4] dt-bindings: iio: adc: adi,ad7124: Use symbolic name for interrupt flag Uwe Kleine-König
2024-10-29 7:36 ` Krzysztof Kozlowski
2024-10-28 16:07 ` [PATCH v2 2/4] dt-bindings: iio: adc: adi,ad7124: Allow specifications of a gpio for irq line Uwe Kleine-König
2024-11-01 19:20 ` Rob Herring
2024-10-28 16:07 ` [PATCH v2 3/4] iio: adc: ad_sigma_delta: Add support for reading irq status using a GPIO Uwe Kleine-König
2024-10-30 13:04 ` Nuno Sá
2024-10-30 20:44 ` Jonathan Cameron
2024-10-31 10:40 ` Uwe Kleine-König
2024-10-31 12:05 ` Nuno Sá
2024-10-31 12:28 ` Nuno Sá
2024-11-04 12:49 ` Uwe Kleine-König
2024-11-04 13:15 ` Nuno Sá
2024-11-05 9:20 ` Uwe Kleine-König
2024-11-05 10:30 ` Nuno Sá
2024-10-28 16:07 ` [PATCH v2 4/4] iio: adc: ad7124: Disable all channels at probe time Uwe Kleine-König
2024-10-30 7:17 ` Nuno Sá
2024-10-28 16:38 ` David Lechner [this message]
2024-11-18 18:12 ` [PATCH v2 0/4] iio: adc: ad7124: Make it work on de10-nano Uwe Kleine-König
2024-11-23 14: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=9cf40804-c85d-43c5-82a3-14f75b9922e9@baylibre.com \
--to=dlechner@baylibre.com \
--cc=Michael.Hennerich@analog.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dumitru.ceclan@analog.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=robh@kernel.org \
--cc=u.kleine-koenig@baylibre.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