On 2018-03-27 00:23, Rob Herring wrote:
On Mon, Mar 19, 2018 at 06:02:45PM +0100, Peter Rosin wrote:
Allow linear scaling and modification of the type of an io-channel.
When an ADC channel measures the midpoint of a voltage divider, the
interesting voltage is often the voltage over the full resistance
of the divider. Likewise, measuring the voltage over a resistor is
often a way to get to the current through it.
This binding allows description of such hardware which is external
to the ADC.
Not that I can think of. At the moment.+++ b/Documentation/devicetree/bindings/iio/wrapper/io-channel-unit-converter.txtWould this apply to something besides ADCs?
@@ -0,0 +1,84 @@
+I/O channel unit converter bindings
+
+Allow linear scaling and modification of the type of an io-channel.
+
+When an ADC channel measures the midpoint of a voltage divider, the
+interesting voltage is often the voltage over the full resistance
+of the divider. Likewise, measuring the voltage over a resistor is
+often a way to get to the current through it.
+
+Required properties:
+- compatible : "io-channel-unit-converter"