diff options
author | Fabrice Gasnier <fabrice.gasnier@st.com> | 2017-10-25 11:27:45 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2017-12-02 10:40:28 +0000 |
commit | 3fb2e24ed7b713bd6c1a03ab9f9849f76629f26f (patch) | |
tree | 0692f0f47fdb2bb743f01853b8350876f63ccc89 /Documentation/auxdisplay | |
parent | 0bae72aa8a89fd2b6a8ae4b21ff9141fc1f3b496 (diff) | |
download | talos-op-linux-3fb2e24ed7b713bd6c1a03ab9f9849f76629f26f.tar.gz talos-op-linux-3fb2e24ed7b713bd6c1a03ab9f9849f76629f26f.zip |
iio: adc: stm32: add support for differential channels
STM32H7 ADC channels can be configured either as single ended or
differential with 'st,adc-channels' or 'st,adc-diff-channels'
(positive and negative input pair: <vinp vinn>, ...).
Differential channels have different offset and scale, from spec:
raw value = (full_scale / 2) * (1 + (vinp - vinn) / vref).
Add offset attribute.
Differential channels are selected by DIFSEL register. Negative
inputs must be added to pre-selected channels as well (PCSEL).
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'Documentation/auxdisplay')
0 files changed, 0 insertions, 0 deletions