Searched +full:rotary +full:- +full:encoder (Results 1 – 21 of 21) sorted by relevance
1 Rotary encoder DT bindings4 - gpios: a spec for at least two GPIOs to be used, most significant first7 - linux,axis: the input subsystem axis to map to this rotary encoder.9 - rotary-encoder,steps: Number of steps in a full turnaround of the10 encoder. Only relevant for absolute axis. Defaults to 24 which is a12 - rotary-encoder,relative-axis: register a relative axis rather than an13 absolute one. Relative axis will only generate +1/-1 events on the input15 - rotary-encoder,rollover: Automatic rollover when the rotary value becomes17 - rotary-encoder,steps-per-period: Number of steps (stable states) per period.19 1: Full-period mode (default)[all …]
1 // SPDX-License-Identifier: GPL-2.0-only10 * A generic driver for rotary encoders connected to GPIO lines.11 * See file:Documentation/input/devices/rotary-encoder.rst for more information26 #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() argument61 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 …]
1 # SPDX-License-Identifier: GPL-2.0-only40 Say Y here to use the PowerOn Key for ST-Ericsson's AB850041 Mix-Sig PMIC.44 will be called ab8500-ponkey.64 module will be called ad714x-i2c.74 module will be called ad714x-spi.84 module will be called arizona-haptics.142 will be called pm8941-pwrkey.150 on Qualcomm PM8xxx chip. This driver supports ff-memless interface154 module will be called pm8xxx-vibrator.[all …]
2 rotary-encoder - a generic driver for GPIO connected devices8 --------10 Rotary encoders are devices which are connected to the CPU or other11 peripherals with two wires. The outputs are phase-shifted by 90 degrees16 a stable state with both outputs high (half-period mode) and some have17 a stable state in all steps (quarter-period mode).33 |<-------->|36 |<-->|37 one step (half-period mode)40 one step (quarter-period mode)[all …]
1 /* SPDX-License-Identifier: GPL-2.0 */17 * _plus_ the number of rotary-encoder sensor inputs, this can be18 * left as 0 if only rotary encoders are enabled, the driver will21 * 2. direct_key_map is the key code map for the direct keys, if rotary22 * encoder(s) are enabled, direct key 0/1(2/3) will be ignored24 * 3. rotary can be either interpreted as a relative input event (e.g.52 /* rotary encoders 0 */58 /* rotary encoders 1 */
1 // SPDX-License-Identifier: GPL-2.0-or-later7 * The CFA-10049 is an expansion board for the CFA-10036 module, thus we8 * 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 …]
1 // SPDX-License-Identifier: GPL-2.04 #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 …]
1 // SPDX-License-Identifier: GPL-2.0-only5 /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 …]
2 * This file is dual-licensed: you can use it either under the terms41 /dts-v1/;47 compatible = "rockchip,rk3036-echo", "rockchip,rk3036";49 fiq-debugger {50 compatible = "rockchip,fiq-debugger";52 rockchip,serial-id = <2>;53 rockchip,wake-irq = <0>;55 rockchip,irq-mode-enable = <0>;58 pinctrl-names = "default";59 pinctrl-0 = <&uart2_xfer>;[all …]
1 // SPDX-License-Identifier: GPL-2.0-only29 #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 …]
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)6 /dts-v1/;8 #include <dt-bindings/input/input.h>13 compatible = "rockchip,rk3308-ai-va-v10", "rockchip,rk3308";16 …bootargs = "earlycon=uart8250,mmio32,0xff0c0000 console=ttyFIQ0 root=PARTUUID=614e0000-0000 rootfs…19 adc-keys0 {20 compatible = "adc-keys";21 io-channels = <&saradc 0>;22 io-channel-names = "buttons";23 poll-interval = <100>;[all …]
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 bindings10 The STM32 Low-Power Timer (LPTIM) is a 16-bit timer that provides several12 - 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 …]
1 // SPDX-License-Identifier: GPL-2.0+3 * HID driver for UC-Logic devices not fully compliant with HID standard5 * Copyright (c) 2010-2014 Nikolai Kondrashov21 #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 …]
1 /* SPDX-License-Identifier: GPL-2.0+ */3 * HID driver for UC-Logic devices not fully compliant with HID standard4 * - original and fixed report descriptors6 * Copyright (c) 2010-2018 Nikolai Kondrashov138 /* Fixed report descriptor for XP-Pen Deco 01 frame controls */152 /* Least-significant bit of Ugee G5 frame rotary encoder state */
1 /* SPDX-License-Identifier: GPL-2.0+ */3 * HID driver for UC-Logic devices not fully compliant with HID standard4 * - tablet initialization and parameter retrieval22 /* Types of pen in-range reporting */24 /* Normal reports: zero - out of proximity, one - in proximity */26 /* Inverted reports: zero - in proximity, one - out of proximity */32 /* Convert a pen in-range reporting type to a string */57 /* Type of in-range reporting, only valid if "id" is not zero */61 * high-order X and then Y bytes following the pressure field.91 * Number of the least-significant bit of the 2-bit state of a rotary[all …]
8 * (C) Copyright 2009-2010 Freescale Semiconductor, Inc.10 * SPDX-License-Identifier: GPL-2.0+15 #include <asm/arch/imx-regs.h>27 #define timestamp (gd->arch.tbl)28 #define lastdec (gd->arch.lastinc)56 /* Reset Timers and Rotary Encoder module */ in timer_init()57 mxs_reset_block(&timrot_regs->hw_timrot_rotctrl_reg); in timer_init()61 writel(0, &timrot_regs->hw_timrot_timcount0); in timer_init()63 writel(0, &timrot_regs->hw_timrot_fixed_count0); in timer_init()69 &timrot_regs->hw_timrot_timctrl0); in timer_init()[all …]
1 .. SPDX-License-Identifier: GPL-2.022 some devices are quadrature encoder counters or tally counters, all39 ------42 signal output line of a rotary encoder. Not all counter devices provide57 -------68 Signal does not trigger the count function. In Pulse-Direction count91 -----106 * Pulse-Direction:114 - x1 A:120 - x1 B:[all …]
1 // SPDX-License-Identifier: GPL-2.0-or-later125 #define LOW_PEAK (-7)136 int range = HIGH_PEAK - LOW_PEAK; in decode_erp()139 weight_b = abs(mid_value - a) - (range / 2 - 100) / 2; in decode_erp()147 weight_a = 100 - weight_b; in decode_erp()151 pos_b = b - LOW_PEAK + DEG270; in decode_erp()153 pos_b -= DEG360; in decode_erp()156 pos_b = HIGH_PEAK - b + DEG90; in decode_erp()161 pos_a = a - LOW_PEAK; in decode_erp()164 pos_a = HIGH_PEAK - a + DEG180; in decode_erp()[all …]
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)3 ---4 $id: http://devicetree.org/schemas/vendor-prefixes.yaml#5 $schema: http://devicetree.org/meta-schemas/core.yaml#10 - Rob Herring <robh@kernel.org>19 "^(at25|devbus|dmacap|dsa|exynos|fsi[ab]|gpio-fan|gpio|gpmc|hdmi|i2c-gpio),.*": true21 "^(pinctrl-single|#pinctrl-single|PowerPC),.*": true22 "^(pl022|pxa-mmc|rcar_sound|rotary-encoder|s5m8767|sdhci),.*": true23 "^(simple-audio-card|st-plgpio|st-spics|ts),.*": true38 "^active-semi,.*":[all …]
2 * linux/include/asm-arm/arch-pxa/pxa-regs.h12 * - 2003/01/20: Robert Schwebel <r.schwebel@pengutronix.de13 * Original file taken from linux-2.4.19-rmk4-pxa1. Added some definitions.22 /* FIXME hack so that SA-1111.h will work [cb] */134 #define DCSR_NODESC (1 << 30) /* No-Descriptor Fetch (read / write) */147 #define DCSR_REQPEND (1 << 8) /* Request Pending (read-only) */148 #define DCSR_STOPSTATE (1 << 3) /* Stop State (read-only) */302 #define DCMD_ENDIAN (1 << 18) /* Device Endian-ness. */309 #define DCMD_LENGTH 0x01fff /* length mask (max = 8K - 1) */354 #define SACR1 0x40400004 /* Serial Audio I 2 S/MSB-Justified Control Register */[all …]
... then 81 /usr/share/command-not-found/command-not-found -- "$ ...