/Linux-v5.10/drivers/input/keyboard/ |
D | ep93xx_keypad.c | 3 * Driver for the Cirrus EP93xx matrix keypad controller. 7 * Based on the pxa27x matrix keypad controller by Rodolfo Giometti. 28 #include <linux/platform_data/keypad-ep93xx.h> 31 * Keypad Interface Register offsets 82 struct ep93xx_keypad *keypad = dev_id; in ep93xx_keypad_irq_handler() local 83 struct input_dev *input_dev = keypad->input_dev; in ep93xx_keypad_irq_handler() 87 status = __raw_readl(keypad->mmio_base + KEY_REG); in ep93xx_keypad_irq_handler() 90 key1 = keypad->keycodes[keycode]; in ep93xx_keypad_irq_handler() 93 key2 = keypad->keycodes[keycode]; in ep93xx_keypad_irq_handler() 96 if (keypad->key1 && key1 != keypad->key1 && key2 != keypad->key1) in ep93xx_keypad_irq_handler() [all …]
|
D | samsung-keypad.c | 3 * Samsung keypad driver 23 #include <linux/input/samsung-keypad.h> 79 static void samsung_keypad_scan(struct samsung_keypad *keypad, in samsung_keypad_scan() argument 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() 105 static bool samsung_keypad_report(struct samsung_keypad *keypad, in samsung_keypad_report() argument [all …]
|
D | nomadik-ske-keypad.c | 8 * Keypad controller driver for the SKE (Scroll Key Encoder) module used in 22 #include <linux/platform_data/keypad-nomadik-ske.h> 44 /* keypad auto scan registers */ 54 * struct ske_keypad - data structure used by keypad driver 58 * @board: keypad platform device 73 static void ske_keypad_set_bits(struct ske_keypad *keypad, u16 addr, in ske_keypad_set_bits() argument 78 spin_lock(&keypad->ske_keypad_lock); in ske_keypad_set_bits() 80 ret = readl(keypad->reg_base + addr); in ske_keypad_set_bits() 83 writel(ret, keypad->reg_base + addr); in ske_keypad_set_bits() 85 spin_unlock(&keypad->ske_keypad_lock); in ske_keypad_set_bits() [all …]
|
D | imx_keypad.c | 3 // Driver for the IMX keypad port. 22 * Keypad Controller registers (halfword) 24 #define KPCR 0x00 /* Keypad Control Register */ 26 #define KPSR 0x02 /* Keypad Status Register */ 33 #define KBD_STAT_KPPEN (0x1 << 10) /* Keypad Clock Enable */ 35 #define KDDR 0x04 /* Keypad Data Direction Register */ 36 #define KPDR 0x06 /* Keypad Data Register */ 78 static void imx_keypad_scan_matrix(struct imx_keypad *keypad, in imx_keypad_scan_matrix() argument 85 if ((keypad->cols_en_mask & (1 << col)) == 0) in imx_keypad_scan_matrix() 88 * Discharge keypad capacitance: in imx_keypad_scan_matrix() [all …]
|
D | pxa27x_keypad.c | 29 #include <linux/platform_data/keypad-pxa27x.h> 31 * Keypad Controller registers 33 #define KPC 0x0000 /* Keypad Control register */ 34 #define KPDK 0x0008 /* Keypad Direct Key register */ 35 #define KPREC 0x0010 /* Keypad Rotary Encoder register */ 36 #define KPMK 0x0018 /* Keypad Matrix Key register */ 37 #define KPAS 0x0020 /* Keypad Automatic Scan register */ 39 /* Keypad Automatic Scan Multiple Key Presser register 0-3 */ 59 #define KPC_ME (0x1 << 12) /* Matrix Keypad Enable */ 61 #define KPC_DK_DEB_SEL (0x1 << 9) /* Direct Keypad Debounce Select */ [all …]
|
D | nspire-keypad.c | 52 struct nspire_keypad *keypad = dev_id; in nspire_keypad_irq() local 53 struct input_dev *input = keypad->input; in nspire_keypad_irq() 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() 91 writel(0x3, keypad->reg_base + KEYPAD_INT); in nspire_keypad_irq() 96 static int nspire_keypad_chip_init(struct nspire_keypad *keypad) in nspire_keypad_chip_init() argument [all …]
|
D | matrix_keypad.c | 85 static void enable_row_irqs(struct matrix_keypad *keypad) in enable_row_irqs() argument 87 const struct matrix_keypad_platform_data *pdata = keypad->pdata; in enable_row_irqs() 98 static void disable_row_irqs(struct matrix_keypad *keypad) in disable_row_irqs() argument 100 const struct matrix_keypad_platform_data *pdata = keypad->pdata; in disable_row_irqs() 116 struct matrix_keypad *keypad = in matrix_keypad_scan() local 118 struct input_dev *input_dev = keypad->input_dev; in matrix_keypad_scan() 120 const struct matrix_keypad_platform_data *pdata = keypad->pdata; in matrix_keypad_scan() 144 bits_changed = keypad->last_key_state[col] ^ new_state[col]; in matrix_keypad_scan() 152 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift); in matrix_keypad_scan() 161 memcpy(keypad->last_key_state, new_state, sizeof(new_state)); in matrix_keypad_scan() [all …]
|
D | tc3589x-keypad.c | 8 * TC35893 MFD Keypad Controller driver 21 /* Maximum supported keypad matrix row/columns size */ 25 /* keypad related Constants */ 73 * struct tc35893_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 114 static int tc3589x_keypad_init_key_hardware(struct tc_keypad *keypad) in tc3589x_keypad_init_key_hardware() argument 117 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_init_key_hardware() [all …]
|
D | stmpe-keypad.c | 115 * struct stmpe_keypad - STMPE keypad state container 140 static int stmpe_keypad_read_data(struct stmpe_keypad *keypad, u8 *data) in stmpe_keypad_read_data() argument 142 const struct stmpe_keypad_variant *variant = keypad->variant; in stmpe_keypad_read_data() 143 struct stmpe *stmpe = keypad->stmpe; in stmpe_keypad_read_data() 164 struct stmpe_keypad *keypad = dev; in stmpe_keypad_irq() local 165 struct input_dev *input = keypad->input; in stmpe_keypad_irq() 166 const struct stmpe_keypad_variant *variant = keypad->variant; in stmpe_keypad_irq() 171 ret = stmpe_keypad_read_data(keypad, fifo); in stmpe_keypad_irq() 187 input_report_key(input, keypad->keymap[code], !up); in stmpe_keypad_irq() 194 static int stmpe_keypad_altfunc_init(struct stmpe_keypad *keypad) in stmpe_keypad_altfunc_init() argument [all …]
|
D | st-keyscan.c | 41 struct st_keyscan *keypad = dev_id; in keyscan_isr() local 42 unsigned short *keycode = keypad->input_dev->keycode; in keyscan_isr() 46 state = readl(keypad->base + KEYSCAN_MATRIX_STATE_OFF) & 0xffff; in keyscan_isr() 47 change = keypad->last_state ^ state; in keyscan_isr() 48 keypad->last_state = state; in keyscan_isr() 51 input_report_key(keypad->input_dev, in keyscan_isr() 54 input_sync(keypad->input_dev); in keyscan_isr() 59 static int keyscan_start(struct st_keyscan *keypad) in keyscan_start() argument 63 error = clk_enable(keypad->clk); in keyscan_start() 67 writel(keypad->debounce_us * (clk_get_rate(keypad->clk) / 1000000), in keyscan_start() [all …]
|
D | Kconfig | 31 tristate "Keypad Support for ADP5520 PMIC" 34 This option enables support for the keypad scan matrix 41 tristate "ADP5588/87 I2C QWERTY Keypad and IO Expander" 51 tristate "ADP5585/ADP5589 I2C QWERTY Keypad and IO Expander" 190 tristate "CLPS711X Keypad support" 194 Say Y here to enable the matrix keypad on the Cirrus Logic 198 module will be called clps711x-keypad. 224 tristate "EP93xx Matrix Keypad support" 228 Say Y here to enable the matrix keypad on the Cirrus EP93XX. 264 tristate "TCA6416/TCA6408A Keypad Support" [all …]
|
D | max7359_keypad.c | 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() 102 input_report_key(input_dev, keypad->keycodes[code], !release); in max7359_interrupt() 129 struct max7359_keypad *keypad = input_get_drvdata(dev); in max7359_open() local 131 max7359_take_catnap(keypad->client); in max7359_open() 138 struct max7359_keypad *keypad = input_get_drvdata(dev); in max7359_close() local 140 max7359_fall_deepsleep(keypad->client); in max7359_close() 163 struct max7359_keypad *keypad; in max7359_probe() local [all …]
|
D | Makefile | 16 obj-$(CONFIG_KEYBOARD_BCM) += bcm-keypad.o 18 obj-$(CONFIG_KEYBOARD_CLPS711X) += clps711x-keypad.o 26 obj-$(CONFIG_KEYBOARD_TCA6416) += tca6416-keypad.o 48 obj-$(CONFIG_KEYBOARD_NOMADIK) += nomadik-ske-keypad.o 49 obj-$(CONFIG_KEYBOARD_NSPIRE) += nspire-keypad.o 50 obj-$(CONFIG_KEYBOARD_OMAP) += omap-keypad.o 51 obj-$(CONFIG_KEYBOARD_OMAP4) += omap4-keypad.o 53 obj-$(CONFIG_KEYBOARD_PMIC8XXX) += pmic8xxx-keypad.o 59 obj-$(CONFIG_KEYBOARD_SAMSUNG) += samsung-keypad.o 63 obj-$(CONFIG_KEYBOARD_STMPE) += stmpe-keypad.o [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/input/ |
D | samsung-keypad.txt | 1 * Samsung's Keypad Controller device tree bindings 3 Samsung's Keypad controller is used to interface a SoC with a matrix-type 4 keypad device. The keypad controller supports multiple row and column lines. 6 The keypad controller can sense a key-press and key-release and report the 11 - "samsung,s3c6410-keypad": For controllers compatible with s3c6410 keypad 13 - "samsung,s5pv210-keypad": For controllers compatible with s5pv210 keypad 22 - samsung,keypad-num-rows: Number of row lines connected to the keypad 25 - samsung,keypad-num-columns: Number of column lines connected to the 26 keypad controller. 28 - Keys represented as child nodes: Each key connected to the keypad [all …]
|
D | omap-keypad.txt | 1 * TI's Keypad Controller device tree bindings 3 TI's Keypad controller is used to interface a SoC with a matrix-type 4 keypad device. The keypad controller supports multiple row and column lines. 6 The keypad controller can sense a key-press and key-release and report the 12 keypad,num-rows and keypad,num-columns are required. 16 - "ti,omap4-keypad": For controllers compatible with omap4 keypad 20 - linux,keypad-no-autorepeat: do no enable autorepeat feature. 23 keypad@4ae1c000{ 24 compatible = "ti,omap4-keypad"; 25 keypad,num-rows = <2>; [all …]
|
D | twl4030-keypad.txt | 1 * TWL4030's Keypad Controller device tree bindings 3 TWL4030's Keypad controller is used to interface a SoC with a matrix-type 4 keypad device. The keypad controller supports multiple row and column lines. 6 The keypad controller can sense a key-press and key-release and report the 12 * keypad,num-rows and keypad,num-columns are required. 16 - "ti,twl4030-keypad": For controllers compatible with twl4030 keypad 19 - <1>: For controllers compatible with twl4030 keypad controller. 22 twl_keypad: keypad { 23 compatible = "ti,twl4030-keypad"; 25 keypad,num-rows = <8>; [all …]
|
D | brcm,bcm-keypad.txt | 1 * Broadcom Keypad Controller device tree bindings 3 Broadcom Keypad controller is used to interface a SoC with a matrix-type 4 keypad device. The keypad controller supports multiple row and column lines. 6 The keypad controller can sense a key-press and key-release and report the 12 keypad,num-rows and keypad,num-columns are required. 15 - compatible: should be "brcm,bcm-keypad" 23 - keypad,num-rows: Number of row lines connected to the keypad 26 - keypad,num-columns: Number of column lines connected to the 27 keypad controller. 55 - pull-up-enabled: An optional property indicating the Keypad scan mode. [all …]
|
D | qcom,pm8xxx-keypad.txt | 1 Qualcomm PM8xxx PMIC Keypad 9 "qcom,pm8058-keypad" 10 "qcom,pm8921-keypad" 15 Definition: address of keypad control register 31 - linux,keypad-no-autorepeat: 39 Definition: use any event on keypad as wakeup event. 40 (Legacy property supported: "linux,keypad-wakeup") 42 - keypad,num-rows: 48 - keypad,num-columns: 74 keypad@148 { [all …]
|
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. 4 The matrix keypad supports multiple row and column lines, a key can be 6 keypad can sense a key-press and key-release by means of GPIO lines and 10 - compatible: Should be "gpio-matrix-keypad" 22 - wakeup-source: use any event on keypad as wakeup event. 26 before we can scan keypad after activating column gpio 31 matrix-keypad { 32 compatible = "gpio-matrix-keypad";
|
/Linux-v5.10/arch/arm/boot/dts/ |
D | exynos4412-smdk4412.dts | 65 &keypad { 66 samsung,keypad-num-rows = <3>; 67 samsung,keypad-num-columns = <8>; 68 linux,keypad-no-autorepeat; 75 keypad,row = <1>; 76 keypad,column = <3>; 81 keypad,row = <1>; 82 keypad,column = <4>; 87 keypad,row = <1>; 88 keypad,column = <5>; [all …]
|
D | exynos4210-smdkv310.dts | 84 &keypad { 85 samsung,keypad-num-rows = <2>; 86 samsung,keypad-num-columns = <8>; 87 linux,keypad-no-autorepeat; 94 keypad,row = <0>; 95 keypad,column = <3>; 100 keypad,row = <0>; 101 keypad,column = <4>; 106 keypad,row = <0>; 107 keypad,column = <5>; [all …]
|
D | s5pv210-smdkv210.dts | 65 &keypad { 68 samsung,keypad-num-rows = <8>; 69 samsung,keypad-num-columns = <8>; 80 keypad,row = <0>; 81 keypad,column = <3>; 86 keypad,row = <0>; 87 keypad,column = <4>; 92 keypad,row = <0>; 93 keypad,column = <5>; 98 keypad,row = <0>; [all …]
|
/Linux-v5.10/drivers/auxdisplay/ |
D | ht16k33.c | 73 struct ht16k33_keypad keypad; member 242 * This gets the keys from keypad and reports it to input subsystem. 245 static bool ht16k33_keypad_scan(struct ht16k33_keypad *keypad) in ht16k33_keypad_scan() argument 247 const unsigned short *keycodes = keypad->dev->keycode; in ht16k33_keypad_scan() 255 rc = i2c_smbus_read_i2c_block_data(keypad->client, 0x40, in ht16k33_keypad_scan() 258 dev_err(&keypad->client->dev, in ht16k33_keypad_scan() 263 for (col = 0; col < keypad->cols; col++) { in ht16k33_keypad_scan() 267 bits_changed = keypad->last_key_state[col] ^ new_state[col]; in ht16k33_keypad_scan() 270 code = MATRIX_SCAN_CODE(row, col, keypad->row_shift); in ht16k33_keypad_scan() 271 input_event(keypad->dev, EV_MSC, MSC_SCAN, code); in ht16k33_keypad_scan() [all …]
|
/Linux-v5.10/drivers/accessibility/speakup/ |
D | DefaultKeyAssignments | 6 We have remapped the insert or zero key on the keypad to act as a 9 hit the keypad period. 11 KeyPad-8 Say current Line 13 KeyPad-7 Say Previous Line (UP one line) 14 KeyPad-9 Say Next Line (down one line) 15 KeyPad-5 Say Current Word 17 KeyPad-4 Say Previous Word (left one word) 19 KeyPad-6 Say Next Word (right one word) 21 KeyPad-2 Say Current Letter 23 KeyPad-1 Say Previous Character (left one letter) [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/mfd/ |
D | tc3589x.txt | 4 following built-in devices: gpio, keypad, rotator (vibrator), PWM (for 44 - Keypad 45 This keypad is the same on all variants, supporting up to 96 different 48 - compatible : must be "toshiba,tc3589x-keypad" 50 - keypad,num-rows : number of rows in the matrix, see 52 - keypad,num-columns : number of columns in the matrix, see 57 - wakeup-source: use any event on keypad as wakeup event. 81 compatible = "toshiba,tc3589x-keypad"; 84 keypad,num-columns = <8>; 85 keypad,num-rows = <8>;
|