Home
last modified time | relevance | path

Searched +full:gpio +full:- +full:keymap (Results 1 – 25 of 197) sorted by relevance

12345678

/kernel/linux/linux-6.6/Documentation/devicetree/bindings/mfd/
Dtc3589x.txt1 * 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 …]
Dst,stmpe.yaml1 # 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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/
Dtc3589x.txt1 * 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 …]
/kernel/linux/linux-6.6/include/linux/input/
Dmatrix_keypad.h1 /* SPDX-License-Identifier: GPL-2.0 */
13 #define KEY(row, col, val) ((((row) & (MATRIX_MAX_ROWS - 1)) << 24) |\
14 (((col) & (MATRIX_MAX_COLS - 1)) << 16) |\
24 * struct matrix_keymap_data - keymap for matrix keyboards
25 * @keymap: pointer to array of uint32 values encoded with KEY() macro
26 * representing keymap
27 * @keymap_size: number of entries (initialized) in this keymap
30 * keymaps to drivers that implement matrix-like keypads/keyboards.
33 const uint32_t *keymap; member
38 * struct matrix_keypad_platform_data - platform-dependent keypad data
[all …]
Dadp5589.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright 2010-2011 Analog Devices Inc.
12 * ADP5589 specific GPI and Keymap defines
47 #define ADP5589_GPIMAPSIZE_MAX (ADP5589_GPI_PIN_END - ADP5589_GPI_PIN_BASE + 1)
50 * ADP5585 specific GPI and Keymap defines
76 #define ADP5585_GPIMAPSIZE_MAX (ADP5585_GPI_PIN_END - ADP5585_GPI_PIN_BASE + 1)
114 * ---------------- BIT ------------------
131 * ---- BIT -- -----------
150 const unsigned short *keymap; /* Pointer to keymap */ member
151 unsigned short keymapsize; /* Keymap size */
[all …]
/kernel/linux/linux-5.10/include/linux/input/
Dmatrix_keypad.h1 /* SPDX-License-Identifier: GPL-2.0 */
12 #define KEY(row, col, val) ((((row) & (MATRIX_MAX_ROWS - 1)) << 24) |\
13 (((col) & (MATRIX_MAX_COLS - 1)) << 16) |\
23 * struct matrix_keymap_data - keymap for matrix keyboards
24 * @keymap: pointer to array of uint32 values encoded with KEY() macro
25 * representing keymap
26 * @keymap_size: number of entries (initialized) in this keymap
29 * keymaps to drivers that implement matrix-like keypads/keyboards.
32 const uint32_t *keymap; member
37 * struct matrix_keypad_platform_data - platform-dependent keypad data
[all …]
Dadp5589.h1 /* SPDX-License-Identifier: GPL-2.0-only */
5 * Copyright 2010-2011 Analog Devices Inc.
12 * ADP5589 specific GPI and Keymap defines
47 #define ADP5589_GPIMAPSIZE_MAX (ADP5589_GPI_PIN_END - ADP5589_GPI_PIN_BASE + 1)
50 * ADP5585 specific GPI and Keymap defines
76 #define ADP5585_GPIMAPSIZE_MAX (ADP5585_GPI_PIN_END - ADP5585_GPI_PIN_BASE + 1)
114 * ---------------- BIT ------------------
131 * ---- BIT -- -----------
150 const unsigned short *keymap; /* Pointer to keymap */ member
151 unsigned short keymapsize; /* Keymap size */
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/
Dgpio-matrix-keypad.txt1 * GPIO driven matrix keypad device tree bindings
3 GPIO driven matrix keypad is used to interface a SoC with a matrix keypad.
6 keypad can sense a key-press and key-release by means of GPIO lines and
7 report the event using GPIO interrupts to the cpu.
10 - compatible: Should be "gpio-matrix-keypad"
11 - row-gpios: List of gpios used as row lines. The gpio specifier
12 for this property depends on the gpio controller to
14 - col-gpios: List of gpios used as column lines. The gpio specifier
15 for this property depends on the gpio controller to
17 - linux,keymap: The definition can be found at
[all …]
Datmel,maxtouch.txt4 - compatible:
14 - reg: The I2C address of the device
16 - interrupts: The sink for the touchpad's IRQ output
17 See ../interrupt-controller/interrupts.txt
21 - linux,gpio-keymap: When enabled, the SPT_GPIOPWN_T19 object sends messages
22 on GPIO bit changes. An array of up to 8 entries can be provided
25 <dt-bindings/input/input.h>.
32 - reset-gpios: GPIO specifier for the touchscreen's reset pin (active low)
39 interrupt-parent = <&gpio>;
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/input/
Dgpio-matrix-keypad.txt1 * GPIO driven matrix keypad device tree bindings
3 GPIO driven matrix keypad is used to interface a SoC with a matrix keypad.
6 keypad can sense a key-press and key-release by means of GPIO lines and
7 report the event using GPIO interrupts to the cpu.
10 - compatible: Should be "gpio-matrix-keypad"
11 - row-gpios: List of gpios used as row lines. The gpio specifier
12 for this property depends on the gpio controller to
14 - col-gpios: List of gpios used as column lines. The gpio specifier
15 for this property depends on the gpio controller to
17 - linux,keymap: The definition can be found at
[all …]
Dadi,adp5588.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Nuno Sá <nuno.sa@analog.com>
14 https://www.analog.com/media/en/technical-documentation/data-sheets/ADP5588.pdf
17 - $ref: matrix-keymap.yaml#
18 - $ref: input.yaml#
23 - adi,adp5587
24 - adi,adp5588
29 vcc-supply:
[all …]
Datmel,maxtouch.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Nick Dyer <nick@shmanahar.org>
11 - Linus Walleij <linus.walleij@linaro.org>
18 - $ref: input.yaml#
30 vdda-supply:
34 vdd-supply:
38 reset-gpios:
41 Optional GPIO specifier for the touchscreen's reset pin
[all …]
/kernel/linux/linux-6.6/drivers/input/keyboard/
Dstmpe-keypad.c1 // 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
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 */
100 .col_gpios = 0x0000ff, /* GPIO 0 - 7*/
101 .row_gpios = 0x1f7f00, /* GPIO 8-14, 16-20 */
[all …]
Dgpio_keys.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Driver for keys on GPIO lines capable of generating interrupts.
26 #include <linux/gpio.h>
27 #include <linux/gpio/consumer.h>
31 #include <dt-bindings/input/gpio-keys.h>
41 unsigned int release_delay; /* in msecs, for IRQ-only buttons */
45 unsigned int software_debounce; /* in msecs, for GPIO-driven buttons */
60 unsigned short *keymap; member
67 * There are 4 attributes under /sys/devices/platform/gpio-keys/
68 * keys [ro] - bitmap of keys (EV_KEY) which can be
[all …]
Dnspire-keypad.c1 // SPDX-License-Identifier: GPL-2.0-only
38 struct matrix_keymap_data *keymap; member
53 struct input_dev *input = keypad->input; in nspire_keypad_irq()
54 unsigned short *keymap = input->keycode; in nspire_keypad_irq() local
61 int_sts = readl(keypad->reg_base + KEYPAD_INT) & keypad->int_mask; in nspire_keypad_irq()
65 memcpy_fromio(state, keypad->reg_base + KEYPAD_DATA, sizeof(state)); in nspire_keypad_irq()
69 if (keypad->active_low) in nspire_keypad_irq()
72 changed = bits ^ keypad->state[row]; in nspire_keypad_irq()
76 keypad->state[row] = bits; in nspire_keypad_irq()
82 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift); in nspire_keypad_irq()
[all …]
Domap-keypad.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * linux/drivers/input/keyboard/omap-keypad.c
8 * Written by Timo Teräs <ext-timo.teras@nokia.com>
24 #include <linux/gpio.h>
25 #include <linux/platform_data/gpio-omap.h>
26 #include <linux/platform_data/keypad-omap.h>
27 #include <linux/soc/ti/omap1-io.h>
37 static int kp_cur_group = -1;
47 unsigned short keymap[]; member
79 for (col = 0; col < omap_kp->cols; col++) { in omap_kp_scan_keypad()
[all …]
/kernel/linux/linux-5.10/drivers/input/keyboard/
Dstmpe-keypad.c1 // 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
60 * struct stmpe_keypad_variant - model-specific attributes
62 * auto-increments on multiple read
63 * @set_pullup: whether the pins need to have their pull-ups set
89 .col_gpios = 0x000ff, /* GPIO 0 - 7 */
90 .row_gpios = 0x0ff00, /* GPIO 8 - 15 */
99 .col_gpios = 0x0000ff, /* GPIO 0 - 7*/
100 .row_gpios = 0x1f7f00, /* GPIO 8-14, 16-20 */
[all …]
Dgpio_keys.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Driver for keys on GPIO lines capable of generating interrupts.
25 #include <linux/gpio.h>
26 #include <linux/gpio/consumer.h>
30 #include <dt-bindings/input/gpio-keys.h>
40 unsigned int release_delay; /* in msecs, for IRQ-only buttons */
43 unsigned int software_debounce; /* in msecs, for GPIO-driven buttons */
57 unsigned short *keymap; member
64 * There are 4 attributes under /sys/devices/platform/gpio-keys/
65 * keys [ro] - bitmap of keys (EV_KEY) which can be
[all …]
Dnspire-keypad.c1 // SPDX-License-Identifier: GPL-2.0-only
38 struct matrix_keymap_data *keymap; member
53 struct input_dev *input = keypad->input; in nspire_keypad_irq()
54 unsigned short *keymap = input->keycode; in nspire_keypad_irq() local
61 int_sts = readl(keypad->reg_base + KEYPAD_INT) & keypad->int_mask; in nspire_keypad_irq()
65 memcpy_fromio(state, keypad->reg_base + KEYPAD_DATA, sizeof(state)); in nspire_keypad_irq()
69 if (keypad->active_low) in nspire_keypad_irq()
72 changed = bits ^ keypad->state[row]; in nspire_keypad_irq()
76 keypad->state[row] = bits; in nspire_keypad_irq()
82 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift); in nspire_keypad_irq()
[all …]
Dsamsung-keypad.c1 // SPDX-License-Identifier: GPL-2.0-or-later
23 #include <linux/input/samsung-keypad.h>
85 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_scan()
86 if (keypad->type == KEYPAD_TYPE_S5PV210) { in samsung_keypad_scan()
94 writel(val, keypad->base + SAMSUNG_KEYIFCOL); in samsung_keypad_scan()
97 val = readl(keypad->base + SAMSUNG_KEYIFROW); in samsung_keypad_scan()
98 row_state[col] = ~val & ((1 << keypad->rows) - 1); in samsung_keypad_scan()
102 writel(0, keypad->base + SAMSUNG_KEYIFCOL); in samsung_keypad_scan()
108 struct input_dev *input_dev = keypad->input_dev; in samsung_keypad_report()
115 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_report()
[all …]
/kernel/linux/linux-5.10/include/linux/platform_data/
Dadp5588.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 * Copyright 2009-2010 Analog Devices Inc.
28 #define GPIO_INT_STAT1 0x11 /* GPIO Interrupt Status */
29 #define GPIO_INT_STAT2 0x12 /* GPIO Interrupt Status */
30 #define GPIO_INT_STAT3 0x13 /* GPIO Interrupt Status */
31 #define GPIO_DAT_STAT1 0x14 /* GPIO Data Status, Read twice to clear */
32 #define GPIO_DAT_STAT2 0x15 /* GPIO Data Status, Read twice to clear */
33 #define GPIO_DAT_STAT3 0x16 /* GPIO Data Status, Read twice to clear */
34 #define GPIO_DAT_OUT1 0x17 /* GPIO DATA OUT */
35 #define GPIO_DAT_OUT2 0x18 /* GPIO DATA OUT */
[all …]
/kernel/linux/linux-5.10/include/linux/mfd/
Dadp5520.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 * ADP5520/ADP5501 MFD PMICs (Backlight, LED, GPIO and Keys)
130 * GPIO subdevice bits and masks
171 const unsigned short *keymap; /* Pointer to keymap */ member
172 unsigned short keymapsize; /* Keymap size */
198 u8 fade_in; /* Backlight Fade-In Timer */
199 u8 fade_out; /* Backlight Fade-Out Timer */
254 u8 fade_in; /* Backlight Fade-In Timer */
255 u8 fade_out; /* Backlight Fade-Out Timer */
256 u8 fade_led_law; /* fade-on/fade-off transfer characteristic */
[all …]
/kernel/linux/linux-6.6/include/linux/mfd/
Dadp5520.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 * ADP5520/ADP5501 MFD PMICs (Backlight, LED, GPIO and Keys)
130 * GPIO subdevice bits and masks
171 const unsigned short *keymap; /* Pointer to keymap */ member
172 unsigned short keymapsize; /* Keymap size */
198 u8 fade_in; /* Backlight Fade-In Timer */
199 u8 fade_out; /* Backlight Fade-Out Timer */
254 u8 fade_in; /* Backlight Fade-In Timer */
255 u8 fade_out; /* Backlight Fade-Out Timer */
256 u8 fade_led_law; /* fade-on/fade-off transfer characteristic */
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-pxa/
Dezx.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * ezx.c - Common code for the EZX platform.
5 * Copyright (C) 2005-2006 Harald Welte <laforge@openezx.org>,
6 * 2007-2008 Daniel Ribeiro <drwyrm@gmail.com>,
7 * 2007-2008 Stefan Schmidt <stefan@datenfreihafen.org>
19 #include <linux/gpio.h>
20 #include <linux/gpio/machine.h>
22 #include <linux/leds-lp3944.h>
23 #include <linux/platform_data/i2c-pxa.h>
26 #include <asm/mach-types.h>
[all …]
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dgoodix.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * 2010 - 2012 Goodix Technology.
17 #include <linux/gpio/consumer.h>
66 /* Our special handling for GPIO accesses through ACPI is x86 specific */
117 unsigned short keymap[GOODIX_MAX_KEYS]; member
190 DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "YETI-11"),
197 DMI_MATCH(DMI_PRODUCT_NAME, "Lenovo YB1-X91"),
210 .ident = "Cube I15-TC",
213 DMI_MATCH(DMI_PRODUCT_NAME, "I15-TC")
221 * goodix_i2c_read - read data from a register of the i2c slave device.
[all …]

12345678