| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/ |
| D | rotary-encoder.txt | 1 Rotary encoder DT bindings 4 - gpios: a spec for at least two GPIOs to be used, most significant first 7 - 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 10 encoder. Only relevant for absolute axis. Defaults to 24 which is a 12 - rotary-encoder,relative-axis: register a relative axis rather than an 13 absolute one. Relative axis will only generate +1/-1 events on the input 15 - rotary-encoder,rollover: Automatic rollover when the rotary value becomes 17 - rotary-encoder,steps-per-period: Number of steps (stable states) per period. 19 1: Full-period mode (default) [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/input/ |
| D | rotary-encoder.txt | 1 Rotary encoder DT bindings 4 - gpios: a spec for at least two GPIOs to be used, most significant first 7 - 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 10 encoder. Only relevant for absolute axis. Defaults to 24 which is a 12 - rotary-encoder,relative-axis: register a relative axis rather than an 13 absolute one. Relative axis will only generate +1/-1 events on the input 15 - rotary-encoder,rollover: Automatic rollover when the rotary value becomes 17 - rotary-encoder,steps-per-period: Number of steps (stable states) per period. 19 1: Full-period mode (default) [all …]
|
| /kernel/linux/linux-5.10/drivers/input/misc/ |
| D | rotary_encoder.c | 1 // SPDX-License-Identifier: GPL-2.0-only 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" 51 signed char dir; /* 1 - clockwise, -1 - CCW */ 56 static unsigned int rotary_encoder_get_state(struct rotary_encoder *encoder) in rotary_encoder_get_state() argument 61 for (i = 0; i < encoder->gpios->ndescs; ++i) { in rotary_encoder_get_state() 62 int val = gpiod_get_value_cansleep(encoder->gpios->desc[i]); in rotary_encoder_get_state() 65 if (encoder->encoding == ROTENC_GRAY && ret & 1) in rotary_encoder_get_state() 74 static void rotary_encoder_report_event(struct rotary_encoder *encoder) in rotary_encoder_report_event() argument [all …]
|
| /kernel/linux/linux-6.6/drivers/input/misc/ |
| D | rotary_encoder.c | 1 // SPDX-License-Identifier: GPL-2.0-only 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" 51 signed char dir; /* 1 - clockwise, -1 - CCW */ 56 static unsigned int rotary_encoder_get_state(struct rotary_encoder *encoder) in rotary_encoder_get_state() argument 61 for (i = 0; i < encoder->gpios->ndescs; ++i) { in rotary_encoder_get_state() 62 int val = gpiod_get_value_cansleep(encoder->gpios->desc[i]); in rotary_encoder_get_state() 65 if (encoder->encoding == ROTENC_GRAY && ret & 1) in rotary_encoder_get_state() 74 static void rotary_encoder_report_event(struct rotary_encoder *encoder) in rotary_encoder_report_event() argument [all …]
|
| /kernel/linux/linux-5.10/Documentation/input/devices/ |
| D | rotary-encoder.rst | 2 rotary-encoder - a generic driver for GPIO connected devices 8 -------- 10 Rotary encoders are devices which are connected to the CPU or other 11 peripherals with two wires. The outputs are phase-shifted by 90 degrees 16 a stable state with both outputs high (half-period mode) and some have 17 a stable state in all steps (quarter-period mode). 33 |<-------->| 36 |<-->| 37 one step (half-period mode) 40 one step (quarter-period mode) [all …]
|
| /kernel/linux/linux-6.6/Documentation/input/devices/ |
| D | rotary-encoder.rst | 2 rotary-encoder - a generic driver for GPIO connected devices 8 -------- 10 Rotary encoders are devices which are connected to the CPU or other 11 peripherals with two wires. The outputs are phase-shifted by 90 degrees 16 a stable state with both outputs high (half-period mode) and some have 17 a stable state in all steps (quarter-period mode). 33 |<-------->| 36 |<-->| 37 one step (half-period mode) 40 one step (quarter-period mode) [all …]
|
| /kernel/linux/linux-6.6/include/linux/platform_data/ |
| D | keypad-pxa27x.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 17 * _plus_ the number of rotary-encoder sensor inputs, this can be 18 * left as 0 if only rotary encoders are enabled, the driver will 21 * 2. direct_key_map is the key code map for the direct keys, if rotary 22 * encoder(s) are enabled, direct key 0/1(2/3) will be ignored 24 * 3. rotary can be either interpreted as a relative input event (e.g. 52 /* rotary encoders 0 */ 58 /* rotary encoders 1 */
|
| /kernel/linux/linux-5.10/include/linux/platform_data/ |
| D | keypad-pxa27x.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 17 * _plus_ the number of rotary-encoder sensor inputs, this can be 18 * left as 0 if only rotary encoders are enabled, the driver will 21 * 2. direct_key_map is the key code map for the direct keys, if rotary 22 * encoder(s) are enabled, direct key 0/1(2/3) will be ignored 24 * 3. rotary can be either interpreted as a relative input event (e.g. 52 /* rotary encoders 0 */ 58 /* rotary encoders 1 */
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/nxp/imx/ |
| D | imx6dl-b1x5pv2.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 6 // Copyright 2018-2021 General Electric Company 7 // Copyright 2018-2021 Collabora 9 #include <dt-bindings/input/input.h> 10 #include "imx6dl-qmx6.dtsi" 14 stdout-path = &uart3; 20 operating-points = < 25 fsl,soc-operating-points = < 26 /* ARM kHz SOC-PU uV */ 33 operating-points = < [all …]
|
| D | imx6dl-victgo.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 7 /dts-v1/; 9 #include "imx6qdl-vicut1.dtsi" 15 gpio-keys { 16 compatible = "gpio-keys"; 17 pinctrl-names = "default"; 18 pinctrl-0 = <&pinctrl_gpiokeys>; 21 key-power { 25 wakeup-source; 28 key-enter { [all …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/nxp/mxs/ |
| D | imx28-cfa10049.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * The CFA-10049 is an expansion board for the CFA-10036 module, thus we 8 * need to include the CFA-10036 DTS. 10 #include "imx28-cfa10036.dts" 13 model = "Crystalfontz CFA-10049 Board"; 17 compatible = "i2c-mux-gpio"; 18 #address-cells = <1>; 19 #size-cells = <0>; 20 pinctrl-names = "default"; 21 pinctrl-0 = <&i2cmux_pins_cfa10049>; [all …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | imx28-cfa10049.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * The CFA-10049 is an expansion board for the CFA-10036 module, thus we 8 * need to include the CFA-10036 DTS. 10 #include "imx28-cfa10036.dts" 13 model = "Crystalfontz CFA-10049 Board"; 17 compatible = "i2c-mux-gpio"; 18 #address-cells = <1>; 19 #size-cells = <0>; 20 pinctrl-names = "default"; 21 pinctrl-0 = <&i2cmux_pins_cfa10049>; [all …]
|
| D | pxa300-raumfeld-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 4 #include <dt-bindings/gpio/gpio.h> 5 #include <dt-bindings/input/input.h> 6 #include <dt-bindings/interrupt-controller/irq.h> 10 hw-revision = <0>; 14 stdout-path = &ffuart; 22 reg_3v3: regulator-3v3 { 23 compatible = "regulator-fixed"; 24 regulator-name = "3v3-fixed-supply"; 25 regulator-min-microvolt = <3300000>; [all …]
|
| D | omap3-echo.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 5 /dts-v1/; 9 #include <dt-bindings/input/input.h> 13 compatible = "amazon,omap3-echo", "ti,omap3630", "ti,omap3"; 17 cpu0-supply = <&vdd1_reg>; 27 compatible = "regulator-fixed"; 28 regulator-name = "vcc5v"; 29 regulator-min-microvolt = <5000000>; 30 regulator-max-microvolt = <5000000>; 31 regulator-boot-on; [all …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/intel/pxa/ |
| D | pxa300-raumfeld-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 4 #include <dt-bindings/gpio/gpio.h> 5 #include <dt-bindings/input/input.h> 6 #include <dt-bindings/interrupt-controller/irq.h> 10 hw-revision = <0>; 14 stdout-path = &ffuart; 22 reg_3v3: regulator-3v3 { 23 compatible = "regulator-fixed"; 24 regulator-name = "3v3-fixed-supply"; 25 regulator-min-microvolt = <3300000>; [all …]
|
| /kernel/linux/linux-5.10/drivers/input/keyboard/ |
| D | pxa27x_keypad.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 #include <linux/platform_data/keypad-pxa27x.h> 35 #define KPREC 0x0010 /* Keypad Rotary Encoder register */ 39 /* Keypad Automatic Scan Multiple Key Presser register 0-3 */ 47 #define KPC_MKRN(n) ((((n) - 1) & 0x7) << 26) /* matrix key row number */ 48 #define KPC_MKCN(n) ((((n) - 1) & 0x7) << 23) /* matrix key column number */ 49 #define KPC_DKN(n) ((((n) - 1) & 0x7) << 6) /* direct key number */ 63 #define KPC_RE_ZERO_DEB (0x1 << 4) /* Rotary Encoder Zero Debounce */ 64 #define KPC_REE1 (0x1 << 3) /* Rotary Encoder1 Enable */ 65 #define KPC_REE0 (0x1 << 2) /* Rotary Encoder0 Enable */ [all …]
|
| /kernel/linux/linux-6.6/drivers/input/keyboard/ |
| D | pxa27x_keypad.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 #include <linux/platform_data/keypad-pxa27x.h> 35 #define KPREC 0x0010 /* Keypad Rotary Encoder register */ 39 /* Keypad Automatic Scan Multiple Key Presser register 0-3 */ 47 #define KPC_MKRN(n) ((((n) - 1) & 0x7) << 26) /* matrix key row number */ 48 #define KPC_MKCN(n) ((((n) - 1) & 0x7) << 23) /* matrix key column number */ 49 #define KPC_DKN(n) ((((n) - 1) & 0x7) << 6) /* direct key number */ 63 #define KPC_RE_ZERO_DEB (0x1 << 4) /* Rotary Encoder Zero Debounce */ 64 #define KPC_REE1 (0x1 << 3) /* Rotary Encoder1 Enable */ 65 #define KPC_REE0 (0x1 << 2) /* Rotary Encoder0 Enable */ [all …]
|
| /kernel/linux/linux-6.6/drivers/hid/ |
| D | hid-uclogic-params.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * HID driver for UC-Logic devices not fully compliant with HID standard 4 * - tablet initialization and parameter retrieval 26 /* Types of pen in-range reporting */ 28 /* Normal reports: zero - out of proximity, one - in proximity */ 30 /* Inverted reports: zero - in proximity, one - out of proximity */ 92 /* Type of in-range reporting, only valid if "id" is not zero */ 96 * high-order X and then Y bytes following the pressure field. 136 * Number of the least-significant bit of the 2-bit state of a rotary 137 * encoder, in the report. Cannot point to a 2-bit field crossing a [all …]
|
| D | hid-uclogic-rdesc.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * HID driver for UC-Logic devices not fully compliant with HID standard 4 * - original and fixed report descriptors 6 * Copyright (c) 2010-2018 Nikolai Kondrashov 196 /* Fixed report descriptor for XP-Pen Deco 01 frame controls */ 210 /* Least-significant bit of Ugee G5 frame rotary encoder state */
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/ti/omap/ |
| D | omap3-echo.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 5 /dts-v1/; 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/leds/common.h> 14 compatible = "amazon,omap3-echo", "ti,omap3630", "ti,omap3"; 18 cpu0-supply = <&vdd1_reg>; 28 compatible = "regulator-fixed"; 29 regulator-name = "vcc5v"; 30 regulator-min-microvolt = <5000000>; 31 regulator-max-microvolt = <5000000>; [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/ |
| D | st,stm32-lptimer.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mfd/st,stm32-lptimer.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: STMicroelectronics STM32 Low-Power Timers bindings 10 The STM32 Low-Power Timer (LPTIM) is a 16-bit timer that provides several 12 - PWM output (with programmable prescaler, configurable polarity) 13 - Trigger source for STM32 ADC/DAC (LPTIM_OUT) 14 - Several counter modes: 15 - quadrature encoder to detect angular position and direction of rotary [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/mfd/ |
| D | st,stm32-lptimer.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mfd/st,stm32-lptimer.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: STMicroelectronics STM32 Low-Power Timers 10 The STM32 Low-Power Timer (LPTIM) is a 16-bit timer that provides several 12 - PWM output (with programmable prescaler, configurable polarity) 13 - Trigger source for STM32 ADC/DAC (LPTIM_OUT) 14 - Several counter modes: 15 - quadrature encoder to detect angular position and direction of rotary [all …]
|
| /kernel/linux/linux-5.10/drivers/hid/ |
| D | hid-uclogic-core.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * HID driver for UC-Logic devices not fully compliant with HID standard 5 * Copyright (c) 2010-2014 Nikolai Kondrashov 21 #include "hid-uclogic-params.h" 23 #include "hid-ids.h" 38 /* In-range timer */ 40 /* Last rotary encoder state, or U8_MAX for none */ 45 * uclogic_inrange_timeout - handle pen in-range state timeout. 56 struct input_dev *input = drvdata->pen_input; in uclogic_inrange_timeout() 62 if (test_bit(BTN_TOUCH, input->key)) { in uclogic_inrange_timeout() [all …]
|
| D | hid-uclogic-rdesc.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * HID driver for UC-Logic devices not fully compliant with HID standard 4 * - original and fixed report descriptors 6 * Copyright (c) 2010-2018 Nikolai Kondrashov 138 /* Fixed report descriptor for XP-Pen Deco 01 frame controls */ 152 /* Least-significant bit of Ugee G5 frame rotary encoder state */
|
| /kernel/linux/linux-5.10/Documentation/driver-api/ |
| D | generic-counter.rst | 1 .. SPDX-License-Identifier: GPL-2.0 22 some devices are quadrature encoder counters or tally counters, all 39 ------ 42 signal output line of a rotary encoder. Not all counter devices provide 57 ------- 68 Signal does not trigger the count function. In Pulse-Direction count 91 ----- 106 * Pulse-Direction: 114 - x1 A: 120 - x1 B: [all …]
|