public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Angelo Dureghello <adureghello@baylibre.com>
Cc: "David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Lars-Peter Clausen" <lars@metafoo.de>,
	"Michael Hennerich" <Michael.Hennerich@analog.com>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org
Subject: Re: [PATCH v2 3/5] iio: adc: ad7606: add offset and phase calibration support
Date: Sun, 4 May 2025 16:21:58 +0100	[thread overview]
Message-ID: <20250504162158.7f89d76f@jic23-huawei> (raw)
In-Reply-To: <20250502-wip-bl-ad7606-calibration-v2-3-174bd0af081b@baylibre.com>

On Fri, 02 May 2025 15:27:00 +0200
Angelo Dureghello <adureghello@baylibre.com> wrote:

> From: Angelo Dureghello <adureghello@baylibre.com>
> 
> Add support for offset and phase calibration, only for
> devices that support software mode, that are:
> 
> ad7606b
> ad7606c-16
> ad7606c-18
> 
> Signed-off-by: Angelo Dureghello <adureghello@baylibre.com>

One trivial typo.

> +static int ad7606_set_calib_phase(struct ad7606_state *st, int ch, int val,
> +				  int val2)
> +{
> +	int wreg, start_ns, step_ns, stop_ns;
> +
> +	if (val != 0)
> +		return -EINVAL;
> +
> +	start_ns = st->chip_info->calib_phase_avail[0][1];
> +	step_ns = st->chip_info->calib_phase_avail[1][1];
> +	stop_ns = st->chip_info->calib_phase_avail[2][1];
> +
> +	/*
> +	 * ad7606b: phase dielay from 0 to 318.75 μs in steps of 1.25 μs.

Spell check. delay



> +	 * ad7606c-16/18: phase delay from 0 µs to 255 µs in steps of 1 µs.
> +	 */

  parent reply	other threads:[~2025-05-04 15:22 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-02 13:26 [PATCH v2 0/5] iio: adc: add ad7606 calibration support Angelo Dureghello
2025-05-02 13:26 ` [PATCH v2 1/5] Documentation: ABI: IIO: add calibconv_delay documentation Angelo Dureghello
2025-05-04 15:16   ` Jonathan Cameron
2025-05-04 19:48     ` David Lechner
2025-05-05 13:28       ` Jonathan Cameron
2025-05-02 13:26 ` [PATCH v2 2/5] iio: core: add ADC delay calibration definition Angelo Dureghello
2025-05-02 13:27 ` [PATCH v2 3/5] iio: adc: ad7606: add offset and phase calibration support Angelo Dureghello
2025-05-02 13:39   ` Andy Shevchenko
2025-05-06 12:59     ` Angelo Dureghello
2025-05-07 14:45       ` Andy Shevchenko
2025-05-06 14:46     ` Angelo Dureghello
2025-05-07 14:46       ` Andy Shevchenko
2025-05-02 19:04   ` David Lechner
2025-05-04  8:30   ` Nuno Sá
2025-05-04  8:34     ` Nuno Sá
2025-05-04 15:21   ` Jonathan Cameron [this message]
2025-05-02 13:27 ` [PATCH v2 4/5] dt-bindings: iio: adc: adi,ad7606: add gain " Angelo Dureghello
2025-05-02 16:30   ` Conor Dooley
2025-05-02 18:54   ` David Lechner
2025-05-02 13:27 ` [PATCH v2 5/5] iio: adc: ad7606: " Angelo Dureghello
2025-05-02 13:36   ` Andy Shevchenko
2025-05-02 19:04   ` David Lechner
2025-05-04  8:35   ` Nuno Sá

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=20250504162158.7f89d76f@jic23-huawei \
    --to=jic23@kernel.org \
    --cc=Michael.Hennerich@analog.com \
    --cc=adureghello@baylibre.com \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=krzk+dt@kernel.org \
    --cc=lars@metafoo.de \
    --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