Home
last modified time | relevance | path

Searched refs:rotary (Results 1 – 8 of 8) sorted by relevance

/linux-4.4.14/drivers/input/misc/
Dbfin_rotary.c55 static void report_rotary_event(struct bfin_rot *rotary, int delta) in report_rotary_event() argument
57 struct input_dev *input = rotary->input; in report_rotary_event()
59 if (rotary->up_key) { in report_rotary_event()
61 delta > 0 ? rotary->up_key : rotary->down_key); in report_rotary_event()
63 input_report_rel(input, rotary->rel_code, delta); in report_rotary_event()
70 struct bfin_rot *rotary = dev_id; in bfin_rotary_isr() local
73 switch (readw(rotary->base + CNT_STATUS_OFF)) { in bfin_rotary_isr()
80 delta = readl(rotary->base + CNT_COUNTER_OFF); in bfin_rotary_isr()
82 report_rotary_event(rotary, delta); in bfin_rotary_isr()
86 report_key_event(rotary->input, rotary->button_key); in bfin_rotary_isr()
[all …]
DKconfig562 Say Y here to add support for rotary encoders connected to GPIO lines.
563 Check file:Documentation/input/rotary-encoder.txt for more
629 module will be called bfin-rotary.
/linux-4.4.14/Documentation/devicetree/bindings/input/
Drotary-encoder.txt7 - linux,axis: the input subsystem axis to map to this rotary encoder.
9 - rotary-encoder,steps: Number of steps in a full turnaround of the
12 - rotary-encoder,relative-axis: register a relative axis rather than an
15 - rotary-encoder,rollover: Automatic rollove when the rotary value becomes
17 - rotary-encoder,steps-per-period: Number of steps (stable states) per period.
22 - wakeup-source: Boolean, rotary encoder can wake up the system.
25 - rotary-encoder,half-period: Makes the driver work on half-period mode.
27 be used, such as "rotary-encoder,steps-per-period = <2>".
29 See Documentation/input/rotary-encoder.txt for more information.
33 rotary@0 {
[all …]
Dpxa27x-keypad.txt29 linux key-code for rotary up. Bit[15:0] is the linux key-code
30 for rotary down. It is for rotary 0.
31 - marvell,rotary1 : Same as marvell,rotary0. It is for rotary 1.
32 - marvell,rotary-rel-key : When rotary is used for relative axes
35 is for rotary 1, and Bit[15:0] is for rotary 0.
/linux-4.4.14/Documentation/input/
Drotary-encoder.txt1 rotary-encoder - a generic driver for GPIO connected devices
80 name 'rotary-encoder' and associate the IRQs and some specific platform
84 include/linux/rotary-encoder.h and needs to be filled with the number of
120 .name = "rotary-encoder",
/linux-4.4.14/arch/arm/boot/dts/
Dimx28-cfa10049.dts66 rotary_pins_cfa10049: rotary-10049@0 {
77 rotary_btn_pins_cfa10049: rotary-btn-10049@0 {
412 rotary {
413 compatible = "rotary-encoder";
418 rotary-encoder,relative-axis;
/linux-4.4.14/drivers/net/arcnet/
Dcom20020-pci.c183 dev->dev_id ^= inb(priv->misc + ci->rotary) >> 4; in com20020pci_probe()
328 .rotary = 0x0,
360 .rotary = 0x0,
Dcom20020.h59 int rotary; member