aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/staging
diff options
context:
space:
mode:
authorStefan Wahren <stefan.wahren@i2se.com>2014-12-29 10:27:20 +0000
committerJonathan Cameron <jic23@kernel.org>2015-01-05 18:59:56 +0000
commita5b940fa4ac0c4d8d9e07bda17a68a042e4d1d94 (patch)
tree040029358bb5bba0b454eb53f6802165f699eb21 /Documentation/devicetree/bindings/staging
parentiio: imu: kmx61: Use correct base when reading data (diff)
downloadlinux-dev-a5b940fa4ac0c4d8d9e07bda17a68a042e4d1d94.tar.xz
linux-dev-a5b940fa4ac0c4d8d9e07bda17a68a042e4d1d94.zip
DT: mxs-lradc: fix ranges of ts properties
This patch fixes off-by-one issues in the devicetree binding of mxs-lradc. According to the i.MX23 and i.MX28 reference manuals [1][2] the range of NUM_SAMPLES is 0..31, but property ave-ctrl is substracted by 1 before used. Considering all limitations the range of DELAY is 1..2047, but also property ave-delay is substracted by 1 before used. The patch has been suggested by Hartmut Knaack and Kristina Martsenko. [1] - http://cache.freescale.com/files/dsp/doc/ref_manual/IMX23RM.pdf [2] - http://cache.freescale.com/files/dsp/doc/ref_manual/MCIMX28RM.pdf Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/staging')
-rw-r--r--Documentation/devicetree/bindings/staging/iio/adc/mxs-lradc.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/staging/iio/adc/mxs-lradc.txt b/Documentation/devicetree/bindings/staging/iio/adc/mxs-lradc.txt
index ee05dc390694..307537787574 100644
--- a/Documentation/devicetree/bindings/staging/iio/adc/mxs-lradc.txt
+++ b/Documentation/devicetree/bindings/staging/iio/adc/mxs-lradc.txt
@@ -12,9 +12,9 @@ Optional properties:
property is not present, then the touchscreen is
disabled. 5 wires is valid for i.MX28 SoC only.
- fsl,ave-ctrl: number of samples per direction to calculate an average value.
- Allowed value is 1 ... 31, default is 4
+ Allowed value is 1 ... 32, default is 4
- fsl,ave-delay: delay between consecutive samples. Allowed value is
- 1 ... 2047. It is used if 'fsl,ave-ctrl' > 1, counts at
+ 2 ... 2048. It is used if 'fsl,ave-ctrl' > 1, counts at
2 kHz and its default is 2 (= 1 ms)
- fsl,settling: delay between plate switch to next sample. Allowed value is
1 ... 2047. It counts at 2 kHz and its default is