/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# 7 title: Samsung SoC series Keypad Controller 10 Samsung SoC Keypad controller is used to interface a SoC with a matrix-type 11 keypad device. The keypad controller supports multiple row and column lines. 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 [all …]
|
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 | fsl,mpr121-touchkey.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/fsl,mpr121-touchkey.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Dmitry Torokhov <dmitry.torokhov@gmail.com> 15 https://www.nxp.com/docs/en/data-sheet/MPR121.pdf 18 - $ref: input.yaml# 21 - required: [ interrupts ] 22 - required: [ poll-interval ] 26 const: fsl,mpr121-touchkey [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 | 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 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 102 * @keypad_stopped: holds keypad status [all …]
|
H A D | samsung-keypad.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Samsung keypad driver 24 #include <linux/input/samsung-keypad.h> 78 static void samsung_keypad_scan(struct samsung_keypad *keypad, in samsung_keypad_scan() argument 84 for (col = 0; col < keypad->cols; col++) { in samsung_keypad_scan() 86 val <<= keypad->chip->column_shift; in samsung_keypad_scan() 88 writel(val, keypad->base + SAMSUNG_KEYIFCOL); in samsung_keypad_scan() 91 val = readl(keypad->base + SAMSUNG_KEYIFROW); in samsung_keypad_scan() 92 row_state[col] = ~val & GENMASK(keypad->rows - 1, 0); in samsung_keypad_scan() 96 writel(0, keypad->base + SAMSUNG_KEYIFCOL); in samsung_keypad_scan() [all …]
|
H A D | pmic8xxx-keypad.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Copyright (c) 2009-2011, Code Aurora Forum. All rights reserved. 78 * struct pmic8xxx_kp - internal keypad data structure 79 * @num_cols: number of columns of keypad 80 * @num_rows: number of row of keypad 81 * @input: input device pointer for keypad 112 return 1 << kp->num_cols; in pmic8xxx_col_state() 114 return col & ((1 << kp->num_cols) - 1); in pmic8xxx_col_state() 134 rc = regmap_read(kp->regmap, KEYP_SCAN, &scan_val); in pmic8xxx_chk_sync_read() 136 dev_err(kp->dev, "Error reading KEYP_SCAN reg, rc=%d\n", rc); in pmic8xxx_chk_sync_read() [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 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() 95 if (keypad->key1 && key1 != keypad->key1 && key2 != keypad->key1) in ep93xx_keypad_irq_handler() [all …]
|
H A D | max7359_keypad.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * max7359_keypad.c - MAX7359 Key Switch Controller Driver 10 * Datasheet: http://www.maxim-ic.com/quick_view2.cfm/qv_pk/5456 69 dev_err(&client->dev, "%s: reg 0x%x, val 0x%x, err %d\n", in max7359_write_reg() 79 dev_err(&client->dev, "%s: reg 0x%x, err %d\n", in max7359_read_reg() 84 /* runs in an IRQ thread -- can (and will!) sleep */ 87 struct max7359_keypad *keypad = dev_id; in max7359_interrupt() local 88 struct input_dev *input_dev = keypad->input_dev; in max7359_interrupt() 91 val = max7359_read_reg(keypad->client, MAX7359_REG_KEYFIFO); in max7359_interrupt() 98 dev_dbg(&keypad->client->dev, in max7359_interrupt() [all …]
|
H A D | omap4-keypad.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * OMAP4 Keypad Driver 61 ((((dbms) * 1000) / ((1 << ((ptv) + 1)) * (1000000 / 32768))) - 1) 92 return __raw_readl(keypad_data->base + in kbd_readl() 93 keypad_data->reg_offset + offset); in kbd_readl() 99 keypad_data->base + keypad_data->reg_offset + offset); in kbd_writel() 104 return __raw_readl(keypad_data->base + in kbd_read_irqreg() 105 keypad_data->irqreg_offset + offset); in kbd_read_irqreg() 112 keypad_data->base + keypad_data->irqreg_offset + offset); in kbd_write_irqreg() 118 struct input_dev *input_dev = keypad_data->input; in omap4_keypad_report_keys() [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# 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/include/linux/input/ |
H A D | samsung-keypad.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Samsung Keypad platform data definitions 18 * struct samsung_keypad_platdata - Platform device data for Samsung Keypad. 20 * @rows: number of keypad row supported. 21 * @cols: number of keypad col supported. 23 * @wakeup: controls whether the device should be set up as wakeup source. 27 * for the device driver to use or call-back when configuring gpio. 34 bool wakeup; member
|
/linux/arch/arm/boot/dts/samsung/ |
H A D | s5pv210-aquila.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2013-2014 Samsung Electronics, Co. Ltd. 13 /dts-v1/; 14 #include <dt-bindings/gpio/gpio.h> 15 #include <dt-bindings/input/input.h> 35 pmic_ap_clk: clock-0 { 37 compatible = "fixed-clock"; 38 #clock-cells = <0>; 39 clock-frequency = <32768>; 42 vtf_reg: regulator-0 { [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 | s5pv210-goni.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2013-2014 Samsung Electronics, Co. Ltd. 13 /dts-v1/; 14 #include <dt-bindings/gpio/gpio.h> 15 #include <dt-bindings/interrupt-controller/irq.h> 16 #include <dt-bindings/input/input.h> 38 pmic_ap_clk: clock-0 { 40 compatible = "fixed-clock"; 41 #clock-cells = <0>; 42 clock-frequency = <32768>; [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 …]
|
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-origen.dts | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. 12 /dts-v1/; 14 #include <dt-bindings/clock/samsung,s2mps11.h> 15 #include <dt-bindings/gpio/gpio.h> 16 #include <dt-bindings/input/input.h> 17 #include "exynos-mfc-reserved-memory.dtsi" 34 stdout-path = "serial2:115200n8"; 38 compatible = "samsung,secure-firmware"; 42 mmc_reg: regulator-0 { [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/arch/arm/boot/dts/st/ |
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; 71 disable-sxtalo; 72 disable-mxtalo; [all …]
|
/linux/arch/arm/boot/dts/cirrus/ |
H A D | ep93xx.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/leds/common.h> 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/clock/cirrus,ep9301-syscon.h> 11 compatible = "simple-bus"; 13 #address-cells = <1>; 14 #size-cells = <1>; 17 compatible = "cirrus,ep9301-syscon", "syscon"; 20 #clock-cells = <1>; [all …]
|
/linux/arch/arm/mach-s3c/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 5 source "arch/arm/mach-s3c/Kconfig.s3c64xx" 29 int "S3C UART to use for low-level messages" 33 Choice of which UART port to use for the low-level messages, 36 must have been initialised by the boot-loader before use. 106 Compile in platform device definition for USB high-speed OtG 117 Compile in platform device definitions for keypad 132 pinctrl-samsung driver. 139 Compile support for wakeup-mask controls found on the S3C6400 140 and above. This code allows a set of interrupt to wakeup-mask [all …]
|
/linux/drivers/accessibility/speakup/ |
H A D | i18n.c | 1 // SPDX-License-Identifier: GPL-2.0 57 [MSG_CTRL] = "control-", 164 [MSG_KEYNAME_KPSTAR] = "keypad asterisk", 180 [MSG_KEYNAME_KP7] = "keypad 7", 181 [MSG_KEYNAME_KP8] = "keypad 8", 182 [MSG_KEYNAME_KP9] = "keypad 9", 183 [MSG_KEYNAME_KPMINUS] = "keypad minus", 184 [MSG_KEYNAME_KP4] = "keypad 4", 185 [MSG_KEYNAME_KP5] = "keypad 5", 186 [MSG_KEYNAME_KP6] = "keypad 6", [all …]
|