| /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# 10 bus controllers for various expanded peripherals such as GPIO, keypad, 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 [all …]
|
| /linux/drivers/input/keyboard/ |
| H A D | mt6779-keypad.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #define MTK_KPD_NAME "mt6779-keypad" 50 struct mt6779_keypad *keypad = dev_id; in mt6779_keypad_irq_handler() local 51 const unsigned short *keycode = keypad->input_dev->keycode; in mt6779_keypad_irq_handler() 57 unsigned int row_shift = get_count_order(keypad->n_cols); in mt6779_keypad_irq_handler() 60 regmap_bulk_read(keypad->regmap, MTK_KPD_MEM, in mt6779_keypad_irq_handler() 63 bitmap_xor(change, new_state, keypad->keymap_state, MTK_KPD_NUM_BITS); in mt6779_keypad_irq_handler() 74 keypad->calc_row_col(key, &row, &col); in mt6779_keypad_irq_handler() 79 dev_dbg(&keypad->input_dev->dev, "%s", in mt6779_keypad_irq_handler() 82 input_event(keypad->input_dev, EV_MSC, MSC_SCAN, scancode); in mt6779_keypad_irq_handler() [all …]
|
| H A D | ep93xx_keypad.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Driver for the Cirrus EP93xx matrix keypad controller. 7 * Based on the pxa27x matrix keypad controller by Rodolfo Giometti. 26 * Keypad Interface Register offsets 64 unsigned int debounce; member 81 struct ep93xx_keypad *keypad = dev_id; in ep93xx_keypad_irq_handler() local 82 struct input_dev *input_dev = keypad->input_dev; in ep93xx_keypad_irq_handler() 86 status = __raw_readl(keypad->mmio_base + KEY_REG); in ep93xx_keypad_irq_handler() 89 key1 = keypad->keycodes[keycode]; in ep93xx_keypad_irq_handler() 92 key2 = keypad->keycodes[keycode]; in ep93xx_keypad_irq_handler() [all …]
|
| H A D | tc3589x-keypad.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2010 8 * TC35893 MFD Keypad Controller driver 21 /* Maximum supported keypad matrix row/columns size */ 25 /* keypad related Constants */ 73 * struct tc3589x_keypad_platform_data - platform specific keypad data 77 * @debounce_period: platform specific debounce time 80 * @enable_wakeup: specifies if keypad event can wake up system from sleep 95 * struct tc_keypad - data structure used by keypad driver 98 * @board: keypad platform device [all …]
|
| H A D | adp5588-keys.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Description: keypad driver for ADP5588 and ADP5587 5 * I2C QWERTY Keypad and IO Expander 8 * Copyright (C) 2008-2010 Analog Devices Inc. 12 #include <linux/delay.h> 24 #include <linux/pinctrl/pinconf-generic.h> 45 #define KP_LCK_TMR 0x0E /* Keypad Lock1 to Lock2 Timer */ 60 #define KP_GPIO1 0x1D /* Keypad or GPIO Selection */ 61 #define KP_GPIO2 0x1E /* Keypad or GPIO Selection */ 62 #define KP_GPIO3 0x1F /* Keypad or GPIO Selection */ [all …]
|
| H A D | tegra-kbc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Copyright (c) 2009-2011, NVIDIA Corporation. 13 #include <linux/delay.h> 33 /* KBC row scan time and delay for beginning the row scan. */ 156 val = readl(kbc->mmio + KBC_KP_ENT0_0 + i); in tegra_kbc_report_keys() 165 keycodes[num_down] = kbc->keycode[scancode]; in tegra_kbc_report_keys() 167 if ((keycodes[num_down] == KEY_FN) && kbc->use_fn_map) in tegra_kbc_report_keys() 178 * Ghosting occurs if there are 3 keys such that - in tegra_kbc_report_keys() 182 if (kbc->use_ghost_filter && num_down >= 3) { in tegra_kbc_report_keys() 190 * and the other is in the same column as the i-th key. in tegra_kbc_report_keys() [all …]
|
| /linux/Documentation/devicetree/bindings/input/ |
| H A D | mediatek,mt6779-keypad.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/mediatek,mt6779-keypad.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Mediatek's Keypad Controller 10 - Mattijs Korpershoek <mkorpershoek@kernel.org> 13 - $ref: /schemas/input/matrix-keymap.yaml# 16 Mediatek's Keypad controller is used to interface a SoC with a matrix-type 17 keypad device. The keypad controller supports multiple row and column lines. 19 The keypad controller can sense a key-press and key-release and report the [all …]
|
| H A D | nvidia,tegra20-kbc.txt | 2 The key controller has maximum 24 pins to make matrix keypad. Any pin 7 - compatible: "nvidia,tegra20-kbc" 8 - reg: Register base address of KBC. 9 - interrupts: Interrupt number for the KBC. 10 - nvidia,kbc-row-pins: The KBC pins which are configured as row. This is an 12 - nvidia,kbc-col-pins: The KBC pins which are configured as column. This is an 14 - linux,keymap: The keymap for keys as described in the binding document 15 devicetree/bindings/input/matrix-keymap.txt. 16 - clocks: Must contain one entry, for the module clock. 17 See ../clocks/clock-bindings.txt for details. [all …]
|
| H A D | cirrus,ep9307-keypad.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/cirrus,ep9307-keypad.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Cirrus ep93xx keypad 10 - Alexander Sverdlin <alexander.sverdlin@gmail.com> 13 - $ref: /schemas/input/matrix-keymap.yaml# 16 The KPP is designed to interface with a keypad matrix with 2-point contact 17 or 3-point contact keys. The KPP is designed to simplify the software task 18 of scanning a keypad matrix. The KPP is capable of detecting, debouncing, [all …]
|
| /linux/arch/arm/boot/dts/st/ |
| 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 | ste-href-tvk1281618-r2.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 #include <dt-bindings/interrupt-controller/irq.h> 7 #include <dt-bindings/input/input.h> 11 compatible = "gpio-keys"; 12 #address-cells = <1>; 13 #size-cells = <0>; 14 vdd-supply = <&ab8500_ldo_aux1_reg>; 15 pinctrl-names = "default"; 16 pinctrl-0 = <&prox_tvk_mode>, <&hall_tvk_mode>; 37 interrupt-parent = <&gpio6>; [all …]
|
| /linux/drivers/auxdisplay/ |
| H A D | ht16k33.c | 1 // SPDX-License-Identifier: GPL-2.0 30 #include "line-display.h" 93 struct ht16k33_keypad keypad; member 140 uint8_t data = REG_DISPLAY_SETUP | REG_DISPLAY_SETUP_ON | priv->blink; in ht16k33_display_on() 142 return i2c_smbus_write_byte(priv->client, data); in ht16k33_display_on() 147 return i2c_smbus_write_byte(priv->client, REG_DISPLAY_SETUP); in ht16k33_display_off() 156 priv->blink = REG_DISPLAY_SETUP_BLINK_OFF; in ht16k33_brightness_set() 164 return i2c_smbus_write_byte(priv->client, in ht16k33_brightness_set() 165 REG_BRIGHTNESS | (brightness - 1)); in ht16k33_brightness_set() 180 unsigned int delay; in ht16k33_blink_set() local [all …]
|
| /linux/arch/arm/boot/dts/nxp/lpc/ |
| H A D | lpc3250-phy3250.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * PHYTEC phyCORE-LPC3250 board 5 * Copyright (C) 2015-2019 Vladimir Zapolskiy <vz@mleia.com> 9 /dts-v1/; 13 model = "PHYTEC phyCORE-LPC3250 board based on NXP LPC3250"; 22 compatible = "gpio-leds"; 26 default-state = "off"; 31 linux,default-trigger = "heartbeat"; 37 power-supply = <®_lcd>; 41 remote-endpoint = <&cldc_output>; [all …]
|
| /linux/arch/arm/boot/dts/nxp/imx/ |
| H A 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 …]
|
| /linux/drivers/input/misc/ |
| H A D | iqs7222.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 #include <linux/delay.h> 116 [IQS7222_REG_GRP_CYCLE] = "cycle-%d", 117 [IQS7222_REG_GRP_CHAN] = "channel-%d", 118 [IQS7222_REG_GRP_SLDR] = "slider-%d", 120 [IQS7222_REG_GRP_GPIO] = "gpio-%d", 150 .name = "event-prox", 155 .name = "event-touch", 162 { .name = "event-press", }, 164 .name = "event-tap", [all …]
|
| /linux/arch/powerpc/boot/dts/ |
| H A D | ac14xx.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 #address-cells = <1>; 15 #size-cells = <1>; 26 timebase-frequency = <40000000>; /* 40 MHz (csb/4) */ 27 bus-frequency = <160000000>; /* 160 MHz csb bus */ 28 clock-frequency = <400000000>; /* 400 MHz ppc core */ 49 compatible = "cfi-flash"; 51 #address-cells = <1>; 52 #size-cells = <1>; 53 bank-width = <2>; [all …]
|
| /linux/arch/mips/boot/dts/ingenic/ |
| H A D | qi_lb60.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/iio/adc/ingenic,adc.h> 8 #include <dt-bindings/clock/ingenic,tcu.h> 9 #include <dt-bindings/input/input.h> 27 stdout-path = &uart0; 30 vcc: regulator-0 { 31 compatible = "regulator-fixed"; 32 regulator-name = "vcc"; [all …]
|
| /linux/arch/arm/boot/dts/nxp/mxs/ |
| H A D | imx28-tx28.dts | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 4 * Copyright 2013-2017 Lothar Waßmann <LW@KARO-electronics.de> 7 /dts-v1/; 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/interrupt-controller/irq.h> 13 model = "Ka-Ro electronics TX28 module"; 34 reg = <0x40000000 0>; /* will be filled in by U-Boot */ 38 compatible = "w1-gpio"; 43 reg_usb0_vbus: regulator-usb0-vbus { 44 compatible = "regulator-fixed"; [all …]
|
| /linux/arch/arm/boot/dts/ti/omap/ |
| H A D | am335x-evm.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/ 5 /dts-v1/; 8 #include <dt-bindings/interrupt-controller/irq.h> 12 compatible = "ti,am335x-evm", "ti,am33xx"; 16 cpu0-supply = <&vdd1_reg>; 26 stdout-path = &uart0; 30 compatible = "regulator-fixed"; 31 regulator-name = "vbat"; 32 regulator-min-microvolt = <5000000>; [all …]
|
| H A D | am335x-guardian.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/ 6 /dts-v1/; 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/interrupt-controller/irq.h> 14 compatible = "bosch,am335x-guardian", "ti,am33xx"; 17 stdout-path = &uart0; 18 tick-timer = &timer2; 23 cpu0-supply = <&dcdc2_reg>; 32 guardian_buttons: gpio-keys { [all …]
|
| H A D | am437x-gp-evm.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/ 8 /dts-v1/; 11 #include <dt-bindings/pinctrl/am43xx.h> 12 #include <dt-bindings/pwm/pwm.h> 13 #include <dt-bindings/gpio/gpio.h> 17 compatible = "ti,am437x-gp-evm","ti,am4372","ti,am43"; 24 stdout-path = &uart0; 27 evm_v3_3d: fixedregulator-v3_3d { 28 compatible = "regulator-fixed"; [all …]
|
| /linux/arch/arm/boot/dts/nvidia/ |
| H A D | tegra30-lg-x3.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 #include <dt-bindings/input/gpio-keys.h> 4 #include <dt-bindings/input/input.h> 5 #include <dt-bindings/leds/common.h> 6 #include <dt-bindings/mfd/max77620.h> 7 #include <dt-bindings/thermal/thermal.h> 10 #include "tegra30-cpu-opp.dtsi" 11 #include "tegra30-cpu-opp-microvolt.dtsi" 14 chassis-type = "handset"; 30 * pre-existing /chosen node to be available to insert the [all …]
|
| /linux/arch/arm/mach-pxa/ |
| H A D | spitz.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Support for Sharp SL-Cxx00 Series of PDAs 4 * Models: SL-C3000 (Spitz), SL-C1000 (Akita) and SL-C3100 (Borzoi) 13 #include <linux/delay.h> 20 #include <linux/platform_data/i2c-pxa.h> 28 #include <linux/input-event-codes.h> 37 #include <asm/mach-types.h> 43 #include "pxa27x-udc.h" 45 #include <linux/platform_data/mmc-pxamci.h> 46 #include <linux/platform_data/usb-ohci-pxa27x.h> [all …]
|