/Linux-v6.1/Documentation/devicetree/bindings/mfd/ |
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 …]
|
/Linux-v6.1/include/linux/input/ |
D | matrix_keypad.h | 1 /* 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 …]
|
D | adp5589.h | 1 /* 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 …]
|
/Linux-v6.1/Documentation/devicetree/bindings/input/ |
D | gpio-matrix-keypad.txt | 1 * 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 …]
|
D | adi,adp5588.yaml | 1 # 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 …]
|
D | atmel,maxtouch.yaml | 1 # 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> 27 vdda-supply: 31 vdd-supply: 35 reset-gpios: 38 Optional GPIO specifier for the touchscreen's reset pin 42 wake-gpios: [all …]
|
/Linux-v6.1/drivers/input/keyboard/ |
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 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 …]
|
D | gpio_keys.c | 1 // 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 …]
|
D | nspire-keypad.c | 1 // 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 …]
|
D | omap-keypad.c | 1 // 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 …]
|
D | samsung-keypad.c | 1 // 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 …]
|
D | matrix_keypad.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * GPIO driven matrix keyboard driver 12 #include <linux/gpio/consumer.h> 19 #include <linux/gpio.h> 42 * NOTE: If drive_inactive_cols is false, then the GPIO has to be put into 43 * HiZ when de-activated to cause minmal side effect when scanning other 50 bool level_on = !pdata->active_low; in __activate_col() 53 gpio_direction_output(pdata->col_gpios[col], level_on); in __activate_col() 55 gpio_set_value_cansleep(pdata->col_gpios[col], !level_on); in __activate_col() 56 if (!pdata->drive_inactive_cols) in __activate_col() [all …]
|
D | lm8323.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2007-2009 Nokia Corporation 30 #define LM8323_CMD_WRITE_PORT_SEL 0x85 /* Set GPIO in/out. */ 31 #define LM8323_CMD_WRITE_PORT_STATE 0x86 /* Set GPIO pullup. */ 32 #define LM8323_CMD_READ_PORT_SEL 0x87 /* Get GPIO in/out. */ 33 #define LM8323_CMD_READ_PORT_STATE 0x88 /* Get GPIO pullup. */ 88 /* Load ramp counter from duty cycle field (range 0 - 0xff). */ 142 unsigned short keymap[LM8323_KEYMAP_SIZE]; member 151 #define dev_to_lm8323(d) container_of(d, struct lm8323_chip, client->dev) 171 dev_err(&lm->client->dev, "tried to send %d bytes\n", len); in lm8323_write() [all …]
|
/Linux-v6.1/include/linux/mfd/ |
D | adp5520.h | 1 /* 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 …]
|
/Linux-v6.1/arch/arm/mach-pxa/ |
D | ezx.c | 1 // 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 …]
|
D | palmtreo.c | 1 // SPDX-License-Identifier: GPL-2.0-only 22 #include <linux/gpio.h> 24 #include <linux/w1-gpio.h> 26 #include <asm/mach-types.h> 31 #include "pxa27x-udc.h" 32 #include <linux/platform_data/asoc-pxa.h> 34 #include <linux/platform_data/mmc-pxamci.h> 35 #include <linux/platform_data/video-pxafb.h> 36 #include <linux/platform_data/irda-pxaficp.h> 37 #include <linux/platform_data/keypad-pxa27x.h> [all …]
|
/Linux-v6.1/drivers/input/touchscreen/ |
D | goodix.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 * 2010 - 2012 Goodix Technology. 51 /* Our special handling for GPIO accesses through ACPI is x86 specific */ 128 /* YB1-X91L/F and YB1-X90L/F */ 130 DMI_MATCH(DMI_PRODUCT_NAME, "Lenovo YB1-X9") 143 .ident = "Cube I15-TC", 146 DMI_MATCH(DMI_PRODUCT_NAME, "I15-TC") 154 * goodix_i2c_read - read data from a register of the i2c slave device. 168 msgs[0].addr = client->addr; in goodix_i2c_read() 173 msgs[1].addr = client->addr; in goodix_i2c_read() [all …]
|
/Linux-v6.1/arch/arm/mach-mmp/ |
D | teton_bga.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/arch/arm/mach-mmp/teton_bga.c 15 #include <linux/gpio.h> 16 #include <linux/gpio-pxa.h> 18 #include <linux/platform_data/keypad-pxa27x.h> 21 #include <asm/mach-types.h> 23 #include "addr-map.h" 24 #include "mfp-pxa168.h" 62 .keymap = teton_bga_matrix_key_map, 84 /* on-chip devices */ in teton_bga_init() [all …]
|
/Linux-v6.1/drivers/input/misc/ |
D | cm109.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2007 - 2008 Alfred E. Heggestad <aeh@db.org> 10 * - Komunikate KIP1000 11 * - Genius G-talk 12 * - Allied-Telesis Corega USBPH01 13 * - ... 18 * - Authors of yealink.c 19 * - Thomas Reitmayr 20 * - Oliver Neukum for good review comments and code 21 * - Shaun Jackman <sjackman@gmail.com> for Genius G-talk keymap [all …]
|
/Linux-v6.1/arch/arm/boot/dts/ |
D | nspire-cx.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/arch/arm/boot/nspire-cx.dts 7 /dts-v1/; 14 remote-endpoint = <&panel_in>; 27 clock-names = "uart_clk", "apb_pclk"; 39 compatible = "lsi,nspire-cx-clock"; 43 compatible = "lsi,nspire-cx-ahb-divider"; 47 linux,keymap = < 73 gpio = <&gpio 2 0>; 77 model = "TI-NSPIRE CX"; [all …]
|
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"; 25 gpios = <&gpio 5 1 0>; /* GPO_P3 1, GPIO 80, active high */ 26 default-state = "off"; 30 gpios = <&gpio 5 14 0>; /* GPO_P3 14, GPIO 93, active high */ 31 linux,default-trigger = "heartbeat"; [all …]
|
D | ste-href-stuib.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright 2012 ST-Ericsson AB 6 #include <dt-bindings/interrupt-controller/irq.h> 10 compatible = "gpio-keys"; 11 #address-cells = <1>; 12 #size-cells = <0>; 13 vdd-supply = <&ab8500_ldo_aux1_reg>; 14 pinctrl-names = "default"; 15 pinctrl-0 = <&prox_stuib_mode>, <&hall_stuib_mode>; 37 interrupt-parent = <&gpio6>; [all …]
|
D | omap3-evm-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <dt-bindings/input/input.h> 7 #include "omap-gpmc-smsc911x.dtsi" 12 cpu0-supply = <&vcc>; 18 compatible = "regulator-fixed"; 19 regulator-name = "hsusb2_vbus"; 20 regulator-min-microvolt = <3300000>; 21 regulator-max-microvolt = <3300000>; 22 gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>; /* gpio_22 */ 23 startup-delay-us = <70000>; [all …]
|
D | omap4-droid4-xt894.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /dts-v1/; 4 #include "motorola-mapphone-common.dtsi" 8 compatible = "gpio-keys"; 14 linux,can-disable; 15 /* Value above 7.95ms for no GPIO hardware debounce */ 16 debounce-interval = <10>; 21 * of the gpio interrupt to avoid lost events in deeper idle states. 25 interrupts-extended = <&omap4_pmx_core 0xd6>; 27 linux,input-type = <EV_SW>; [all …]
|
D | spear300-evb.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 /dts-v1/; 13 compatible = "st,spear300-evb", "st,spear300"; 14 #address-cells = <1>; 15 #size-cells = <1>; 23 st,pinmux-mode = <2>; 24 pinctrl-names = "default"; 25 pinctrl-0 = <&state_default>; 77 cd-gpios = <&gpio1 0 0>; 83 clock-rate = <50000000>; [all …]
|