Skip to content

iio: ti_am335x_adc: Add optional DT properties for tscadc

Vignesh R linux-devicetree linux-iio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iio: adc: ti_am335x_adc: refactor DT parsing into a functiondrivers/iio/adc/ti_am335x_adc.c+19 -101 reply
2/2iio: adc: ti_am335x_adc: make sample delay, open delay, averaging DT parametersDocumentation/devicetree/bindings/input/touchscreen/ti-tsc-adc.txt drivers/iio/adc/ti_am335x_adc.c+72 -63 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] iio: ti_am335x_adc: Add optional DT properties for tscadc

Hi,

This patch adds optional DT properties for tscadc to set open delay, sample delay and number of averages per sample for each adc channel. Open delay, sample delay and averaging are some of the parameters that affect the sampling rate and accuracy of the tscadc. Decreasing delays and averaging helps to achieve higher sampling rates, while increasing this parameters provides greater accuracy. Hence, this patch provides DT properties to set the initial values for delays and number of averages per sample. User space control via sysfs can be added later.

Vignesh R (2):
iio: adc: ti_am335x_adc: refactor DT parsing into a function
iio: adc: ti_am335x_adc: make sample delay, open delay, averaging DT
parameters

 .../bindings/input/touchscreen/ti-tsc-adc.txt      | 24 +++++++
 drivers/iio/adc/ti_am335x_adc.c                    | 83 +++++++++++++++++-----
 2 files changed, 91 insertions(+), 16 deletions(-)
Signature · 1 line
1.9.1