diff options
| author | Fabrice Gasnier <[email protected]> | 2017-07-24 16:10:40 +0000 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2017-08-09 13:14:10 +0000 |
| commit | ee2ac1cdd356f34a2962141d5c157254da3f5a62 (patch) | |
| tree | 9b9d3f3967c07b867dec33be29a9286c27500acb /drivers/iio/trigger/stm32-timer-trigger.c | |
| parent | dt-bindings: iio: adc: stm32: add optional st,min-sample-time-nsecs (diff) | |
| download | kernel-ee2ac1cdd356f34a2962141d5c157254da3f5a62.tar.gz kernel-ee2ac1cdd356f34a2962141d5c157254da3f5a62.zip | |
iio: adc: stm32: add optional st,min-sample-time-nsecs
STM32 ADC allows each channel to be sampled with a different sampling time,
by setting SMPR registers. Basically, value depends on local electrical
properties. Selecting correct value for sampling time highly depends on
analog source impedance. There is a manual that may help in this process:
'How to get the best ADC accuracy in STM32...'
This patch allows to configure minimum sampling time via device tree,
either for:
- all channels at once:
st,min-sample-time-nsecs = <10000>;
- independently for each channel (must match "st,adc-channels" list):
st,adc-channels = <0 1>;
st,min-sample-time-nsecs = <5000 10000>;
Signed-off-by: Fabrice Gasnier <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions
