aboutsummaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/input/rotary-encoder.txt
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2016-03-01 18:25:26 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-03-02 15:48:05 -0800
commit7dde4e74744772efdc85d7ed13495c7b6a0d881b (patch)
treedc7155cf1226b26e0a14fc3c00e0d6a92be31a30 /Documentation/devicetree/bindings/input/rotary-encoder.txt
parenta9e340dce3c3bceeb42f6b6d33b7858822d76cb6 (diff)
Input: rotary-encoder - support more than 2 gpios as input
This changes how the used gpios are stored (i.e. a struct gpio_descs instead of two struct gpio_desc) and as with >2 gpios the states are numbered differently the function rotary_encoder_get_state returns unencoded numbers instead of grey encoded numbers before. The latter has some implications on how the returned value is used and so the change is bigger than one might expect at first. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Rob Herring <robh@kernel.org> Acked-by: Daniel Mack <daniel@zonque.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Documentation/devicetree/bindings/input/rotary-encoder.txt')
-rw-r--r--Documentation/devicetree/bindings/input/rotary-encoder.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/input/rotary-encoder.txt b/Documentation/devicetree/bindings/input/rotary-encoder.txt
index de99cbbbf6da..6c9f0c8a846c 100644
--- a/Documentation/devicetree/bindings/input/rotary-encoder.txt
+++ b/Documentation/devicetree/bindings/input/rotary-encoder.txt
@@ -1,7 +1,7 @@
Rotary encoder DT bindings
Required properties:
-- gpios: a spec for two GPIOs to be used
+- gpios: a spec for at least two GPIOs to be used, most significant first
Optional properties:
- linux,axis: the input subsystem axis to map to this rotary encoder.