/linux/Documentation/devicetree/bindings/input/ |
H A D | samsung,s3c6410-keypad.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/input/samsung,s3c6410-keypad.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 Samsung SoC Keypad controller is used to interface a SoC with a matrix-type 13 The keypad controller can sense a key-press and key-release and report the 17 - Krzysztof Kozlowski <krzk@kernel.org> 22 - samsung,s3c6410-keypad 23 - samsung,s5pv210-keypad 31 clock-names: [all …]
|
H A D | gpio-matrix-keypad.txt | 6 keypad can sense a key-press and key-release by means of GPIO lines and 10 - compatible: Should be "gpio-matrix-keypad" 11 - row-gpios: List of gpios used as row lines. The gpio specifier 14 - col-gpios: List of gpios used as column lines. The gpio specifier 17 - linux,keymap: The definition can be found at 18 bindings/input/matrix-keymap.txt 21 - linux,no-autorepeat: do no enable autorepeat feature. 22 - wakeup-source: use any event on keypad as wakeup event. 24 - debounce-delay-ms: debounce interval in milliseconds 25 - col-scan-delay-us: delay, measured in microseconds, that is needed [all …]
|
H A D | adc-keys.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/input/adc-keys.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Alexandre Belloni <alexandre.belloni@bootlin.com> 13 - $ref: input.yaml# 17 const: adc-keys 19 io-channels: 22 io-channel-names: 25 keyup-threshold-microvolt: [all …]
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | tc3589x.txt | 1 * Toshiba TC3589x multi-purpose expander 3 The Toshiba TC3589x series are I2C-based MFD devices which may expose the 4 following built-in devices: gpio, keypad, rotator (vibrator), PWM (for 7 - TC35890 8 - TC35892 9 - TC35893 10 - TC35894 11 - TC35895 12 - TC35896 15 - compatible : must be "toshiba,tc35890", "toshiba,tc35892", "toshiba,tc35893", [all …]
|
H A D | st,stmpe.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 15 - Linus Walleij <linus.walleij@linaro.org> 18 - $ref: /schemas/spi/spi-peripheral-props.yaml# 23 - st,stmpe601 24 - st,stmpe801 25 - st,stmpe811 26 - st,stmpe1600 27 - st,stmpe1601 [all …]
|
/linux/drivers/input/keyboard/ |
H A D | twl4030_keypad.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * twl4030_keypad.c - driver for 8x8 keypad controller in twl4030 chips 8 * Code re-written for 2430SDP by: 18 #include <linux/input.h> 27 * events, since it uses only the always-on 32KiHz oscillator, and has 29 * multi-key combinations. 50 bool autorepeat; member 56 struct input_dev *input; member 59 /*----------------------------------------------------------------------*/ 100 #define KEYP_PERIOD_US(t, prescale) ((t) / (31 << ((prescale) + 1)) - 1) [all …]
|
H A D | stmpe-keypad.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2010 5 * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson 10 #include <linux/input.h> 14 #include <linux/input/matrix_keypad.h> 61 * struct stmpe_keypad_variant - model-specific attributes 63 * auto-increments on multiple read 64 * @set_pullup: whether the pins need to have their pull-ups set 90 .col_gpios = 0x000ff, /* GPIO 0 - 7 */ 91 .row_gpios = 0x0ff00, /* GPIO 8 - 15 */ [all …]
|
H A D | gpio_keys_polled.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2007-2010 Gabor Juhos <juhosg@openwrt.org> 8 * This file was based on: /drivers/input/misc/cobalt_btns.c 11 * also was based on: /drivers/input/keyboard/gpio_keys.c 18 #include <linux/input.h> 26 #define DRV_NAME "gpio-keys-polled" 36 struct input_dev *input; member 44 static void gpio_keys_button_event(struct input_dev *input, in gpio_keys_button_event() argument 48 struct gpio_keys_polled_dev *bdev = input_get_drvdata(input); in gpio_keys_button_event() 49 unsigned int type = button->type ?: EV_KEY; in gpio_keys_button_event() [all …]
|
H A D | tc3589x-keypad.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2010 13 #include <linux/input.h> 15 #include <linux/input/matrix_keypad.h> 73 * struct tc3589x_keypad_platform_data - platform specific keypad data 95 * struct tc_keypad - data structure used by keypad driver 97 * @input: pointer to input device object 106 struct input_dev *input; member 117 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_init_key_hardware() 118 const struct tc3589x_keypad_platform_data *board = keypad->board; in tc3589x_keypad_init_key_hardware() [all …]
|
/linux/Documentation/input/ |
H A D | input-programming.rst | 2 Creating an input device driver 8 Here comes a very simple example of an input device driver. The device has 12 #include <linux/input.h> 34 return -EBUSY; 40 error = -ENOMEM; 44 button_dev->evbit[0] = BIT_MASK(EV_KEY); 45 button_dev->keybit[BIT_WORD(BTN_0)] = BIT_MASK(BTN_0); 74 First it has to include the <linux/input.h> file, which interfaces to the 75 input subsystem. This provides all the definitions needed. 81 Then it allocates a new input device structure with input_allocate_device() [all …]
|
H A D | input.rst | 7 :Copyright: |copy| 1999-2001 Vojtech Pavlik <vojtech@ucw.cz> - Sponsored by SuSE 12 Input subsystem is a collection of drivers that is designed to support 13 all input devices under Linux. Most of the drivers reside in 14 drivers/input, although quite a few live in drivers/hid and 17 The core of the input subsystem is the input module, which must be 18 loaded before any other of the input modules - it serves as a way of 22 -------------- 25 events (keystrokes, mouse movements) to the input module. 28 -------------- 30 These modules get events from input core and pass them where needed [all …]
|
/linux/drivers/input/misc/ |
H A D | soc_button_array.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 #include <linux/input.h> 23 MODULE_PARM_DESC(use_low_level_irq, "Use low-level triggered IRQ instead of edge triggered"); 30 bool autorepeat; member 52 * Some 2-in-1s which use the soc_button_array driver have this ugly issue in 53 * their DSDT where the _LID method modifies the irq-type settings of the GPIOs 57 * problematic because when re-enabling the irq, which happens whenever _LID 59 * irq-type to IRQ_TYPE_LEVEL_LOW. Where as the gpio-keys driver programs the 61 * To work around this we don't set gpio_keys_button.gpio on these 2-in-1s, 69 * Acer Switch 10 SW5-012. _LID method messes with home- and [all …]
|
/linux/Documentation/devicetree/bindings/auxdisplay/ |
H A D | holtek,ht16k33.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Robin van der Gracht <robin@protonic.nl> 13 - $ref: /schemas/input/matrix-keymap.yaml# 18 - items: 19 - enum: 20 - adafruit,3108 # 0.56" 4-Digit 7-Segment FeatherWing Display (Red) 21 - adafruit,3130 # 0.54" Quad Alphanumeric FeatherWing Display (Red) 22 - const: holtek,ht16k33 [all …]
|
/linux/arch/arm/boot/dts/samsung/ |
H A D | s5pv210-smdkv210.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2013-2014 Samsung Electronics, Co. Ltd. 12 * NOTE: This file is completely based on original board file for mach-smdkv210 17 /dts-v1/; 18 #include <dt-bindings/interrupt-controller/irq.h> 19 #include <dt-bindings/input/input.h> 35 pmic_ap_clk: clock-0 { 37 compatible = "fixed-clock"; 38 #clock-cells = <0>; 39 clock-frequency = <32768>; [all …]
|
H A D | exynos4412-smdk4412.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. 12 /dts-v1/; 14 #include "exynos-mfc-reserved-memory.dtsi" 31 stdout-path = "serial1:115200n8"; 34 fixed-rate-clocks { 36 compatible = "samsung,clock-xxti"; 37 clock-frequency = <0>; 41 compatible = "samsung,clock-xusbxti"; 42 clock-frequency = <24000000>; [all …]
|
H A D | exynos4210-smdkv310.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. 7 * Copyright (c) 2010-2011 Linaro Ltd. 14 /dts-v1/; 16 #include <dt-bindings/gpio/gpio.h> 17 #include "exynos-mfc-reserved-memory.dtsi" 34 stdout-path = "serial1:115200n8"; 37 fixed-rate-clocks { 39 compatible = "samsung,clock-xxti"; 40 clock-frequency = <12000000>; [all …]
|
/linux/arch/arm/boot/dts/st/ |
H A D | stm32f769-disco.dts | 2 * Copyright 2017 - Vikas MANOCHA <vikas.manocha@st.com> 4 * This file is dual-licensed: you can use it either under the terms 36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 43 /dts-v1/; 45 #include "stm32f769-pinctrl.dtsi" 46 #include <dt-bindings/input/input.h> 47 #include <dt-bindings/gpio/gpio.h> 50 model = "STMicroelectronics STM32F769-DISCO board"; 51 compatible = "st,stm32f769-disco", "st,stm32f769"; 55 stdout-path = "serial0:115200n8"; [all …]
|
H A D | ste-nomadik-nhk15.dts | 1 // SPDX-License-Identifier: GPL-2.0 6 /dts-v1/; 7 #include <dt-bindings/interrupt-controller/irq.h> 8 #include <dt-bindings/gpio/gpio.h> 9 #include "ste-nomadik-stn8815.dtsi" 13 compatible = "st,nomadik-nhk-15"; 22 stmpe-i2c0 = &stmpe0; 23 stmpe-i2c1 = &stmpe1; 40 ste,input = <0>; 52 ste,input = <0>; [all …]
|
H A D | stm32746g-eval.dts | 2 * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com> 4 * This file is dual-licensed: you can use it either under the terms 36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 43 /dts-v1/; 45 #include "stm32f746-pinctrl.dtsi" 46 #include <dt-bindings/input/input.h> 47 #include <dt-bindings/interrupt-controller/irq.h> 50 model = "STMicroelectronics STM32746g-EVAL board"; 51 compatible = "st,stm32746g-eval", "st,stm32f746"; 55 stdout-path = "serial0:115200n8"; [all …]
|
H A D | ste-href-tvk1281618-r3.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 #include <dt-bindings/interrupt-controller/irq.h> 8 #include <dt-bindings/input/input.h> 12 compatible = "gpio-keys"; 13 #address-cells = <1>; 14 #size-cells = <0>; 15 vdd-supply = <&ab8500_ldo_aux1_reg>; 16 pinctrl-names = "default"; 17 pinctrl-0 = <&hall_tvk_mode>; 32 interrupt-parent = <&gpio2>; [all …]
|
H A D | stm32f469-disco.dts | 2 * Copyright 2016 - Lee Jones <lee.jones@linaro.org> 4 * This file is dual-licensed: you can use it either under the terms 22 * MA 02110-1301 USA 41 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 48 /dts-v1/; 50 #include "stm32f469-pinctrl.dtsi" 51 #include <dt-bindings/gpio/gpio.h> 52 #include <dt-bindings/input/input.h> 55 model = "STMicroelectronics STM32F469i-DISCO board"; 56 compatible = "st,stm32f469i-disco", "st,stm32f469"; [all …]
|
H A D | stm32f429-disco.dts | 2 * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com> 4 * This file is dual-licensed: you can use it either under the terms 22 * MA 02110-1301 USA 41 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 48 /dts-v1/; 50 #include "stm32f429-pinctrl.dtsi" 51 #include <dt-bindings/input/input.h> 52 #include <dt-bindings/interrupt-controller/irq.h> 53 #include <dt-bindings/gpio/gpio.h> 56 model = "STMicroelectronics STM32F429i-DISCO board"; [all …]
|
/linux/include/linux/ |
H A D | hp_sdc.h | 2 * HP i8042 System Device Controller -- header 22 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 31 * HP-HIL Technical Reference Manual. Hewlett Packard Product No. 45918A 34 * for Part Number 1820-4784 Revision B. Dwg No. A-1820-4784-2 50 /* No 4X status reads take longer than this (in usec). 95 #define HP_SDC_STATUS_IBF 0x02 /* Input buffer full */ 104 #define HP_SDC_STATUS_PUP 0x70 /* Successful power-up self test */ 134 #define HP_SDC_STR 0x7f /* i8042 self-test result */ 146 #define HP_SDC_CFG_ROLLOVER 0x08 /* WTF is "N-key rollover"? */ 149 #define HP_SDC_CFG_KBD_OLD 0x03 /* keyboard code for non-HIL */ [all …]
|
H A D | hil.h | 5 * Hewlett Packard Human Interface Loop (HP-HIL) Protocol -- header. 25 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 33 * HP-HIL Technical Reference Manual. Hewlett Packard Product No. 45918A 57 * implementing a software MLC to run HIL devices on a non-parisc machine. 109 HIL_ERR_OB = 0x00000800, /* MLC is busy sending an auto-poll, 117 HIL_ERR_FOF = 0x04000000 /* Input FIFO Overflowed. */ 131 /* This gives us a 32-bit "packet" 140 HIL_CMD_EPT = 0x01, /* Enter Pass-Thru Mode */ 141 HIL_CMD_ELB = 0x02, /* Enter Loop-Back Mode */ 160 HIL_CMD_DKA = 0x3d, /* Disable Keyswitch Autorepeat */ [all …]
|
/linux/arch/arm/boot/dts/qcom/ |
H A D | qcom-msm8226-samsung-matisse-common.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 6 #include <dt-bindings/input/input.h> 7 #include "qcom-msm8226.dtsi" 10 /delete-node/ &adsp_region; 11 /delete-node/ &smem_region; 21 #address-cells = <1>; 22 #size-cells = <1>; 25 stdout-path = "display0"; 28 compatible = "simple-framebuffer"; 37 gpio-hall-sensor { [all …]
|