Re: [PATCH v2] iio: iadc: Qualcomm SPMI PMIC current ADC driver

Mark Rutland
2014-09-24T17:10:51Z

> > > > +
> > > > +- qcom,rsense:
> > > > + Usage: optional
> > > > + Value type: <u32>
> > > > + Definition: External sense register value in Ohm. Defining this
> > > > + propery will instruct ADC to use external ADC sense channel.
> > > > + If property is not defined ADC will use internal sense channel.
> > >
> > > The latter two sentences sound like a driver description.
> > >
> > > What exactly is the difference between the internal and external
> > > channels, and what exactly is the value in the sense register used for?
> >
> > Internal - when using chip build-in resistor
> > External - when using off-chip resistor
>
> Would it be possible to use the internal channel when you have an
> external resistor?
>
> If so, does the device have a channel per resistor, or can either
> resistor be selected and applied to the single channel the device has?
>
> This might be better worded as "external-registor-ohms".

I meant to say "external-resistor-ohms".

Muscle memory and lack of coffee got the better of me.

Mark.