diff options
author | Max Krummenacher <max.oss.09@gmail.com> | 2014-08-16 18:01:33 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-12-21 14:26:13 +0100 |
commit | 56ca491137bbe9d1801945173b4aefaaee71e28c (patch) | |
tree | ee198643fe646db0280c2182da6b47c4aa9a6d2e /Documentation | |
parent | 48db21d00ec9970f31312e62f36d549ef0ffa396 (diff) |
stmpe-adc: add device tree bindings
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
(cherry picked from commit 16692ff50af0d7a216d71ff39b69d8971b08b690)
(cherry picked from commit 6f88e1d8c28585002d51f4c4232abea61a022763)
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/staging/iio/adc/stmpe-adc.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/staging/iio/adc/stmpe-adc.txt b/Documentation/devicetree/bindings/staging/iio/adc/stmpe-adc.txt new file mode 100644 index 000000000000..b73a1069ed8e --- /dev/null +++ b/Documentation/devicetree/bindings/staging/iio/adc/stmpe-adc.txt @@ -0,0 +1,30 @@ +STMPE ADC driver +---------------- + +Required properties: + - compatible: "st,stmpe-adc" + +Optional properties: +Note that the ADC is shared with the STMPE touchscreen, so if using both the +settings should be the same. +If they are not, the last one to be initialized will win. +- st,sample-time: ADC converstion time in number of clock. (0 -> 36 clocks, 1 -> + 44 clocks, 2 -> 56 clocks, 3 -> 64 clocks, 4 -> 80 clocks, 5 -> 96 clocks, 6 + -> 144 clocks), recommended is 4. +- st,mod-12b: ADC Bit mode (0 -> 10bit ADC, 1 -> 12bit ADC) +- st,ref-sel: ADC reference source (0 -> internal reference, 1 -> external + reference) +- st,adc-freq: ADC Clock speed (0 -> 1.625 MHz, 1 -> 3.25 MHz, 2 || 3 -> 6.5 MHz) + +Node name must be stmpe_adc and should be child node of stmpe node to +which it belongs. + +Example: + + stmpe_adc { + compatible = "st,stmpe-adc"; + st,sample-time = <4>; + st,mod-12b = <1>; + st,ref-sel = <0>; + st,adc-freq = <1>; + }; |