| /linux/Documentation/input/ |
| H A D | multi-touch-protocol.rst | 4 Multi-touch (MT) Protocol 7 :Copyright: |copy| 2009-2010 Henrik Rydberg <rydberg@euromail.se> 11 ------------ 13 In order to utilize the full power of the new multi-touch and multi-user 16 document describes the multi-touch (MT) protocol which allows kernel 30 -------------- 34 packet. Since these events are ignored by current single-touch (ST) 48 All drivers mark the end of a multi-touch transfer by calling the usual 67 the ABS_MT_TRACKING_ID of the associated slot. A non-negative tracking id 68 is interpreted as a contact, and the value -1 denotes an unused slot. A [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-udraw-ps3.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include "hid-ids.h" 21 * https://vvvv.org/contribution/udraw-hid 26 * - the touch area which works as a touchpad 27 * - the tablet area which works as a touchpad/drawing tablet 28 * - a joypad with a d-pad, and 7 buttons 29 * - an accelerometer device 46 * Accelerometer min/max values 47 * in order, X, Y and Z 51 int max; member [all …]
|
| H A D | hid-ntrig.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * HID driver for N-Trig touchscreens 5 * Copyright (c) 2008-2010 Rafi Rubin 6 * Copyright (c) 2009-2010 Stephane Chatty 19 #include "hid-ids.h" 25 MODULE_PARM_DESC(min_width, "Minimum touch contact width to accept."); 29 MODULE_PARM_DESC(min_height, "Minimum touch contact height to accept."); 33 MODULE_PARM_DESC(activate_slack, "Number of touch frames to ignore at " 34 "the start of touch input."); 39 "deactivating touch."); [all …]
|
| H A D | hid-magicmouse.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 #include "hid-ids.h" 27 static int middle_button_start = -350; 39 return -EINVAL; in param_set_scroll_speed() 52 MODULE_PARM_DESC(report_undeciphered, "Report undeciphered multi-touch state field using a MSC_RAW … 66 * 0x03 seem to indicate the aspect ratio of the touch, bits 0x70 seem 67 * to be some kind of bit mask -- 0x20 may be a near-field reading, 76 /* Number of high-resolution events for each low-resolution detent. */ 82 /* Touch surface information. Dimension is in hundredths of a mm, min and max 85 #define MOUSE_MIN_X -1100 [all …]
|
| H A D | hid-multitouch.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2010-2012 Stephane Chatty <chatty@enac.fr> 6 * Copyright (c) 2010-2013 Benjamin Tissoires <benjamin.tissoires@gmail.com> 7 * Copyright (c) 2010-2012 Ecole Nationale de l'Aviation Civile, France 8 * Copyright (c) 2012-2013 Red Hat, Inc 10 * This code is partly based on hid-egalax.c: 16 * This code is partly based on hid-3m-pct.c: 18 * Copyright (c) 2009-2010 Stephane Chatty <chatty@enac.fr> 27 * This driver is regularly tested thanks to the test suite in hid-tools[1]. 31 * [1] https://gitlab.freedesktop.org/libevdev/hid-tools [all …]
|
| /linux/arch/arm/boot/dts/st/ |
| H A 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>; 33 stmpe1601: port-expander@40 { [all …]
|
| /linux/Documentation/devicetree/bindings/input/ |
| H A D | azoteq,iqs7222.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Azoteq IQS7222A/B/C/D Capacitive Touch Controller 10 - Jeff LaBundy <jeff@labundy.com> 14 capacitive touch controllers that feature additional sensing capabilities. 21 - azoteq,iqs7222a 22 - azoteq,iqs7222b 23 - azoteq,iqs7222c 24 - azoteq,iqs7222d [all …]
|
| /linux/drivers/input/touchscreen/ |
| H A D | bu21013_ts.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) ST-Ericsson SA 2010 4 * Author: Naveen Kumar G <naveen.gaddipati@stericsson.com> for ST-Ericsson 140 * struct bu21013_ts - touch panel data structure 144 * @regulator: pointer to the Regulator used for touch screen 146 * @int_gpiod: touch interrupt GPIO line 147 * @touch_x_max: maximum X coordinate reported by the device 149 * @x_flip: indicates that the driver should invert X coordinate before 153 * @touch_stopped: touch stop flag 155 * Touch panel device data structure [all …]
|
| H A D | pixcir_i2c_ts.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2010-2011 Pixcir, Inc. 20 #define PIXCIR_MAX_SLOTS 5 /* Max fingers supported by driver */ 30 * active: max scan speed 31 * idle: lower scan speed with automatic transition to active on touch 49 * level on touch: interrupt level asserted during touch 50 * pulse on touch: interrupt pulse asserted during touch 65 * struct pixcir_i2c_chip_data - chip related data 66 * @max_fingers: Max number of fingers reported simultaneously by h/w 99 u8 touch; in pixcir_ts_parse() local [all …]
|
| H A D | mms114.c | 1 // SPDX-License-Identifier: GPL-2.0 50 /* Touch type */ 93 struct i2c_client *client = data->client; in __mms114_read_reg() 102 xfer[0].addr = client->addr; in __mms114_read_reg() 103 xfer[0].flags = client->flags & I2C_M_TEN; in __mms114_read_reg() 108 xfer[1].addr = client->addr; in __mms114_read_reg() 109 xfer[1].flags = (client->flags & I2C_M_TEN) | I2C_M_RD; in __mms114_read_reg() 113 error = i2c_transfer(client->adapter, xfer, 2); in __mms114_read_reg() 115 dev_err(&client->dev, in __mms114_read_reg() 117 return error < 0 ? error : -EIO; in __mms114_read_reg() [all …]
|
| H A D | novatek-nvt-ts.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * on the Acer Iconia One 7 B1-750 tablet. 70 .addr = client->addr, in nvt_ts_read_data() 75 .addr = client->addr, in nvt_ts_read_data() 83 ret = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg)); in nvt_ts_read_data() 85 dev_err(&client->dev, "Error reading from 0x%02x: %d\n", reg, ret); in nvt_ts_read_data() 86 return (ret < 0) ? ret : -EIO; in nvt_ts_read_data() 95 struct device *dev = &data->client->dev; in nvt_ts_irq() 96 int i, error, slot, x, y; in nvt_ts_irq() local 98 u8 *touch; in nvt_ts_irq() local [all …]
|
| H A D | cyttsp5.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Copyright (C) 2012-2015 Cypress Semiconductor 13 #include <linux/crc-itu-t.h> 32 #define CY_NUM_BTN_EVENT_ID GENMASK(CY_BITS_PER_BTN - 1, 0) 54 /* Touch reports offsets */ 101 /* All usage pages for Touch Report */ 147 enum cyttsp5_tch_abs { /* for ordering within the extracted touch data array */ 148 CY_TCH_X, /* X */ 151 CY_TCH_T, /* TOUCH ID */ 161 size_t max; /* max value */ member [all …]
|
| H A D | stmpe-ts.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 46 #define STMPE_TS_NAME "stmpe-ts" 50 * struct stmpe_touch - stmpe811 touch screen controller state 57 * (0 -> 1 sample, 1 -> 2 samples, 2 -> 4 samples, 3 -> 8 samples) 58 * @touch_det_delay: Touch detect interrupt delay 59 * (0 -> 10 us, 1 -> 50 us, 2 -> 100 us, 3 -> 500 us, 60 * 4-> 1 ms, 5 -> 5 ms, 6 -> 10 ms, 7 -> 50 ms) 63 * (0 -> 10 us, 1 -> 100 us, 2 -> 500 us, 3 -> 1 ms, 64 * 4 -> 5 ms, 5 -> 10 ms, 6 for 50 ms, 7 -> 100 ms) 70 * (0 -> 20 mA typical 35 mA max, 1 -> 50 mA typical 80 mA max) [all …]
|
| H A D | ilitek_ts_i2c.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * ILITEK Touch IC driver for 23XX, 25XX and Lego series 98 struct i2c_client *client = ts->client; in ilitek_i2c_write_and_read() 101 .addr = client->addr, in ilitek_i2c_write_and_read() 107 .addr = client->addr, in ilitek_i2c_write_and_read() 115 error = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in ilitek_i2c_write_and_read() 120 error = i2c_transfer(client->adapter, msgs, 1); in ilitek_i2c_write_and_read() 128 error = i2c_transfer(client->adapter, msgs + 1, 1); in ilitek_i2c_write_and_read() 139 unsigned int x, unsigned int y) in ilitek_touch_down() argument 141 struct input_dev *input = ts->input_dev; in ilitek_touch_down() [all …]
|
| H A D | zforce_ts.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2012-2013 MundoReader S.L. 62 * Notifications are sent by the touch controller without 64 * touch indications 130 struct i2c_client *client = ts->client; in zforce_command() 134 dev_dbg(&client->dev, "%s: 0x%x\n", __func__, cmd); in zforce_command() 142 dev_err(&client->dev, "i2c send data request error: %d\n", ret); in zforce_command() 151 struct i2c_client *client = ts->client; in zforce_send_wait() 154 dev_dbg(&client->dev, "sending %d bytes for command 0x%x\n", in zforce_send_wait() 157 ts->command_waiting = buf[2]; in zforce_send_wait() [all …]
|
| H A D | usbtouchscreen.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * - eGalax Touchkit 6 * includes eTurboTouch CT-410/510/700 7 * - 3M/Microtouch EX II series 8 * - ITM 9 * - PanJit TouchSet 10 * - eTurboTouch 11 * - Gunze AHL61 12 * - DMC TSC-10/25 13 * - IRTOUCHSYSTEMS/UNITOP [all …]
|
| /linux/arch/arm/boot/dts/nxp/imx/ |
| H A D | imx6dl-plym2m.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 7 /dts-v1/; 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/leds/common.h> 17 stdout-path = &uart4; 21 compatible = "pwm-backlight"; 23 brightness-levels = <0 1000>; 24 num-interpolated-steps = <20>; 25 default-brightness-level = <19>; 26 power-supply = <®_12v0>; [all …]
|
| /linux/drivers/input/mouse/ |
| H A D | cyapa_gen3.c | 9 * Copyright (C) 2011-2015 Cypress Semiconductor, Inc. 10 * Copyright (C) 2011-2012 Google, Inc. 28 #define GEN3_FINGER_NUM(x) (((x) >> 4) & 0x07) argument 60 * Used in register 0x00, bit1-0, DeviceStatus field. 87 * high bits or x/y position value 88 * bit 7 - 4: high 4 bits of x position value 89 * bit 3 - 0: high 4 bits of y position value 92 u8 x_lo; /* low 8 bits of x position value. */ 95 /* id range is 1 - 15. It is incremented with every new touch. */ 101 * bit 0 - 1: device status [all …]
|
| H A D | cyapa_gen5.c | 6 * Copyright (C) 2014-2015 Cypress Semiconductor, Inc. 21 #include <linux/crc-itu-t.h> 33 #define CYAPA_TSG_IMG_MAX_RECORDS (CYAPA_TSG_IMG_END_ROW_NUM - \ 141 * Bit 7 - 3: reserved 142 * Bit 2 - 0: touch type; 146 * 3 - 15 : reserved. 151 * Bit 7: indicates touch liftoff status. 152 * 0 : touch is currently on the panel. 153 * 1 : touch record indicates a liftoff. 154 * Bit 6 - 5: indicates an event associated with this touch instance [all …]
|
| /linux/Documentation/devicetree/bindings/input/touchscreen/ |
| H A D | cypress,cy8ctma340.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 14 - Javier Martinez Canillas <javier@dowhile0.org> 15 - Linus Walleij <linus.walleij@linaro.org> 18 - $ref: touchscreen.yaml# 26 - const: cypress,cy8ctma340 27 - const: cypress,cy8ctst341 28 - const: cypress,cyttsp-spi 31 - const: cypress,cyttsp-i2c [all …]
|
| H A D | bu21029.txt | 1 * Rohm BU21029 Touch Screen Controller 4 - compatible : must be "rohm,bu21029" 5 - reg : i2c device address of the chip (0x40 or 0x41) 6 - interrupt-parent : the phandle for the gpio controller 7 - interrupts : (gpio) interrupt to which the chip is connected 8 - rohm,x-plate-ohms : x-plate resistance in Ohm 11 - reset-gpios : gpio pin to reset the chip (active low) 12 - touchscreen-size-x : horizontal resolution of touchscreen (in pixels) 13 - touchscreen-size-y : vertical resolution of touchscreen (in pixels) 14 - touchscreen-max-pressure: maximum pressure value [all …]
|
| H A D | azoteq,iqs7211.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jeff LaBundy <jeff@labundy.com> 13 The Azoteq IQS7210A, IQS7211A and IQS7211E trackpad and touchscreen control- 14 lers employ projected-capacitance sensing and can track two contacts. 21 - azoteq,iqs7210a 22 - azoteq,iqs7211a 23 - azoteq,iqs7211e 28 irq-gpios: [all …]
|
| /linux/drivers/input/ |
| H A D | mousedev.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 1999-2002 Vojtech Pavlik 53 int x, y; member 76 unsigned long touch; member 119 #define fx(i) (mousedev->old_x[(mousedev->pkt_count - (i)) & 03]) 120 #define fy(i) (mousedev->old_y[(mousedev->pkt_count - (i)) & 03]) 134 if (mousedev->touch && mousedev->pkt_count >= 2) { in mousedev_touchpad_event() 135 size = input_abs_get_max(dev, ABS_X) - in mousedev_touchpad_event() 140 tmp = ((value - fx(2)) * 256 * FRACTION_DENOM) / size; in mousedev_touchpad_event() 141 tmp += mousedev->frac_dx; in mousedev_touchpad_event() [all …]
|
| /linux/Documentation/devicetree/bindings/mfd/ |
| H A D | 88pm860x.txt | 4 - compatible : "marvell,88pm860x" 5 - reg : the I2C slave address for the 88pm860x chip 6 - interrupts : IRQ line for the 88pm860x chip 7 - interrupt-controller: describes the 88pm860x as an interrupt controller (has its own domain) 8 - #interrupt-cells : should be 1. 9 - The cell is the 88pm860x local IRQ number 12 - marvell,88pm860x-irq-read-clr: inicates whether interrupt status is cleared by read 13 - marvell,88pm860x-slave-addr: 88pm860x are two chips solution. <reg> stores the I2C address 17 88pm860x consists of a large and varied group of sub-devices: 20 ------ ------------ ----------- [all …]
|
| /linux/drivers/iio/adc/ |
| H A D | at91_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 40 #define AT91_ADC_TSAMOD_TS_ONLY_MODE (1 << 0) /* Touch Screen Only Mode */ 52 #define AT91_ADC_PRESCAL_(x) ((x) << 8) argument 56 #define AT91_ADC_STARTUP_(x) ((x) << 16) argument 58 #define AT91_ADC_SHTIM_(x) ((x) << 24) argument 60 #define AT91_ADC_PENDBC_(x) ((x) << 28) argument 64 #define AT91_ADC_TSR_SHTIM_(x) ((x) << 24) argument 103 #define AT91_ADC_ACR_PENDETSENS (0x3 << 0) /* pull-up resistor */ 106 #define AT91_ADC_TSMR_TSMODE (3 << 0) /* Touch Screen Mode */ 112 #define AT91_ADC_TSMR_TSAV_(x) ((x) << 4) argument [all …]
|