linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* run-time change of configuration of ad74412
@ 2022-12-02 11:16 Rasmus Villemoes
  2022-12-02 14:39 ` Nuno Sá
  0 siblings, 1 reply; 5+ messages in thread
From: Rasmus Villemoes @ 2022-12-02 11:16 UTC (permalink / raw)
  To: Jonathan Cameron, Cosmin Tanislav, Michael Hennerich,
	Lars-Peter Clausen
  Cc: linux-iio@vger.kernel.org

Hi,

My customer wants to be able to change the configuration of the four
channels of the ad74412 at run-time; their board can be used in various
scenarios, and having to specify the functions in device tree is too
inflexible.

Is there any precedent in other iio drivers for such a configuration
change, and/or is it feasible to implement this in the ad74413r.c driver?

I do not need to be able to change it continuously, just once after
userspace has come up and before anything actually starts making use of
the device, but it is not possible for me to know the correct
configuration in the bootloader, so having U-Boot patch the dtb is not
an option. A somewhat hacky way would be to build the driver as a
module, and allow module parameter(s) to overrule whatever is in
devicetree, but that doesn't really work if there was more than one
ad74412/ad74413 present, unless one invents and parses some weird syntax
to have certain settings apply to $this-chipselect on $that-bus.

Rasmus

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-12-11 11:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-02 11:16 run-time change of configuration of ad74412 Rasmus Villemoes
2022-12-02 14:39 ` Nuno Sá
2022-12-08 13:33   ` [POC] iio: ad74413: allow channel configuration to be given via module parameters Rasmus Villemoes
2022-12-09  8:46     ` Tanislav, Cosmin
2022-12-11 12:00       ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).