[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250316093752.0eacaa16@jic23-huawei>
Date: Sun, 16 Mar 2025 09:38:12 +0000
From: Jonathan Cameron <jic23@...nel.org>
To: Matti Vaittinen <mazziesaccount@...il.com>
Cc: Matti Vaittinen <matti.vaittinen@...rohmeurope.com>, Lars-Peter Clausen
<lars@...afoo.de>, Andy Shevchenko <andriy.shevchenko@...ux.intel.com>, Lad
Prabhakar <prabhakar.mahadev-lad.rj@...renesas.com>, Chen-Yu Tsai
<wens@...e.org>, Jernej Skrabec <jernej.skrabec@...il.com>, Samuel Holland
<samuel@...lland.org>, Hugo Villeneuve <hvilleneuve@...onoff.com>, Nuno Sa
<nuno.sa@...log.com>, David Lechner <dlechner@...libre.com>, Javier
Carrasco <javier.carrasco.cruz@...il.com>, Guillaume Stols
<gstols@...libre.com>, Dumitru Ceclan <mitrutzceclan@...il.com>, Trevor
Gamblin <tgamblin@...libre.com>, Matteo Martelli
<matteomartelli3@...il.com>, Alisa-Dariana Roman <alisadariana@...il.com>,
Ramona Alexandra Nechita <ramona.nechita@...log.com>, AngeloGioacchino Del
Regno <angelogioacchino.delregno@...labora.com>, linux-iio@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-acpi@...r.kernel.org, linux-renesas-soc@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-sunxi@...ts.linux.dev
Subject: Re: [PATCH v7 03/10] iio: adc: add helpers for parsing ADC nodes
On Thu, 13 Mar 2025 09:18:18 +0200
Matti Vaittinen <mazziesaccount@...il.com> wrote:
> There are ADC ICs which may have some of the AIN pins usable for other
> functions. These ICs may have some of the AIN pins wired so that they
> should not be used for ADC.
>
> (Preferred?) way for marking pins which can be used as ADC inputs is to
> add corresponding channels@N nodes in the device tree as described in
> the ADC binding yaml.
>
> Add couple of helper functions which can be used to retrieve the channel
> information from the device node.
I suspect we'll need the addition of an optional trailing timestamp
channel at somepoint. But we can add that when we need it as only
matters for drivers doing iio_push_to_buffers_with_timestamp()
Otherwise no additional comments from me.
Powered by blists - more mailing lists