--- zzzz-none-000/linux-3.10.107/Documentation/input/rotary-encoder.txt 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/Documentation/input/rotary-encoder.txt 2021-02-04 17:41:59.000000000 +0000 @@ -9,8 +9,9 @@ and by triggering on falling and rising edges, the turn direction can be determined. -Some encoders have both outputs low in stable states, whereas others also have -a stable state with both outputs high (half-period mode). +Some encoders have both outputs low in stable states, others also have +a stable state with both outputs high (half-period mode) and some have +a stable state in all steps (quarter-period mode). The phase diagram of these two outputs look like this: @@ -32,8 +33,11 @@ |<-->| one step (half-period mode) + |<>| + one step (quarter-period mode) + For more information, please see - http://en.wikipedia.org/wiki/Rotary_encoder + https://en.wikipedia.org/wiki/Rotary_encoder 1. Events / state machine @@ -109,6 +113,7 @@ .inverted_a = 0, .inverted_b = 0, .half_period = false, + .wakeup_source = false, }; static struct platform_device rotary_encoder_device = {