Lines Matching full:rotary
10 * A generic driver for rotary encoders connected to GPIO lines.
11 * See file:Documentation/input/devices/rotary-encoder.rst for more information
26 #define DRV_NAME "rotary-encoder"
201 device_property_read_u32(dev, "rotary-encoder,steps", &encoder->steps); in rotary_encoder_probe()
203 err = device_property_read_u32(dev, "rotary-encoder,steps-per-period", in rotary_encoder_probe()
214 "rotary-encoder,half-period") ? 2 : 1; in rotary_encoder_probe()
218 device_property_read_bool(dev, "rotary-encoder,rollover"); in rotary_encoder_probe()
220 if (!device_property_present(dev, "rotary-encoder,encoding") || in rotary_encoder_probe()
221 !device_property_match_string(dev, "rotary-encoder,encoding", in rotary_encoder_probe()
225 } else if (!device_property_match_string(dev, "rotary-encoder,encoding", in rotary_encoder_probe()
236 device_property_read_bool(dev, "rotary-encoder,relative-axis"); in rotary_encoder_probe()
346 { .compatible = "rotary-encoder", },
363 MODULE_DESCRIPTION("GPIO rotary encoder driver");