Skip to content

mxs-lradc: Add support for current sources

Harald Geyer linux-arm-kernel linux-devicetree linux-iio 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 3 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] mxs-lradc: Add support for current sources
Quoted 21 lines · Jonathan Cameron
Quoted 7 lines · Harald Geyer

My thinking is that there should be a thermistor (or whatever else) driver,
that is a consumer of the regulator and a consumer of the IIO_VOLTAGE
iio channel and provides a new device with an IIO_RESISTANCE or IIO_TEMP
channel. Maybe there is a simpler solution, that I'm missing?

I agree with that approach - need a way to describe the upstream hardware - so
will need a thermistor driver

Quoted 10 lines

Actually I'm not 100% happy with the above solution myself, because if we
start supporting devices that act as an iio-multiplexer (some device that
is an iio consumer and provides many new iio channels and can control
via gpios which of it child channels is actually routed to the upstream
device) I don't know how to properly manage the regulator device.

Quoted 9 lines

Hmm. Are you talking about muxing the regulator as well? That will get
complex indeed. Might be possible to cheat and imply the regulators are
always connected to all inputs... or do you want to dynamically change
the regulator output? That gets messy fast - though in theory might be
possible...

Yes, that's a good summary of what I'm thinking. As there is no iio-multiplexer yet, this is sort of an academic question. But it's kind of an obvious thing to want, so we shouldn't be surprised when somebody actually starts working on that.

Thanks,
Harald