/linux/Documentation/devicetree/bindings/input/touchscreen/ |
H A D | silead,gsl1680.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Dmitry Torokhov <dmitry.torokhov@gmail.com> 13 - $ref: touchscreen.yaml# 18 - silead,gsl1680 19 - silead,gsl1688 20 - silead,gsl3670 21 - silead,gsl3675 22 - silead,gsl3692 [all …]
|
/linux/drivers/input/mouse/ |
H A D | appletouch.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Apple USB Touchpad (for post-February 2005 PowerBooks and MacBooks) driver 5 * Copyright (C) 2001-2004 Greg Kroah-Hartman (greg@kroah.com) 6 * Copyright (C) 2005-2008 Johannes Berg (johannes@sipsolutions.net) 7 * Copyright (C) 2005-2008 Stelian Pop (stelian@popies.net) 8 * Copyright (C) 2005 Frank Arnold (frank@scirocco-5v-turbo.de) 10 * Copyright (C) 2005 Michael Hanselmann (linux-kernel@hansmi.ch) 12 * Copyright (C) 2007-2008 Sven Anders (anders@anduras.de) 26 * 0 <= x <= (xsensors - 1) * xfact 27 * 0 <= y <= (ysensors - 1) * yfact [all …]
|
H A D | alps.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (c) 2003-2005 Peter Osterlund <petero2@telia.com> 94 #define ALPS_PASS 0x04 /* device has a pass-through port */ 100 #define ALPS_PS2_INTERLEAVED 0x80 /* 3-byte PS/2 packet interleaved with 101 6-byte ALPS packet */ 117 { { 0x33, 0x02, 0x0a }, { ALPS_PROTO_V1, 0x88, 0xf8, 0 } }, /* UMAX-530T */ 119 ALPS_PASS | ALPS_DUALPOINT | ALPS_PS2_INTERLEAVED } }, /* Toshiba Tecra A11-11L */ 128 …{ { 0x63, 0x02, 0x3c }, { ALPS_PROTO_V2, 0x8f, 0x8f, ALPS_WHEEL } }, /* Toshiba Satellite S2400-… 132 …{ { 0x73, 0x00, 0x0a }, { ALPS_PROTO_V2, 0xf8, 0xf8, ALPS_DUALPOINT } }, /* ThinkPad R61 8918-5QG… 180 /* Reported-by: Hans de Bruin <jmdebruin@xmsnet.nl> */ [all …]
|
H A D | synaptics.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 61 * ---- ---- ------- ------------ 64 * 1 0x02 report max query 0x0d gives max coord reported 67 * 1 0x10 clickpad bit 0 1-button ClickPad 72 * 2 0x01 clickpad bit 1 2-button ClickPad 78 * 2 0x08 image sensor image sensor tracks 5 fingers, but only 84 #define SYN_CAP_CLICKPAD(ex0c) ((ex0c) & BIT(20)) /* 1-button ClickPad */ 85 #define SYN_CAP_CLICKPAD2BTN(ex0c) ((ex0c) & BIT(8)) /* 2-button ClickPad */ 97 * ---- ---- ------- ------------ 100 * by the tracktick (pass-through). [all …]
|
H A D | bcm5974.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * Scott Shawcroft as part of the touchd user-space driver project: 13 * Copyright (C) 2001-2004 Greg Kroah-Hartman (greg@kroah.com) 16 * Copyright (C) 2005 Frank Arnold (frank@scirocco-5v-turbo.de) 18 * Copyright (C) 2005 Michael Hanselmann (linux-kernel@hansmi.ch) 182 /* trackpad finger data offsets, le16-aligned */ 219 /* trackpad finger structure, le16-aligned */ 233 __le16 multi; /* one finger: varies, more fingers: constant */ 236 /* trackpad finger data size, empirically at least ten fingers */ 240 /* device-specific parameters */ [all …]
|
H A D | cyapa_gen3.c | 9 * Copyright (C) 2011-2015 Cypress Semiconductor, Inc. 10 * Copyright (C) 2011-2012 Google, Inc. 60 * Used in register 0x00, bit1-0, DeviceStatus field. 88 * bit 7 - 4: high 4 bits of x position value 89 * bit 3 - 0: high 4 bits of y position value 95 /* id range is 1 - 15. It is incremented with every new touch. */ 101 * bit 0 - 1: device status 102 * bit 3 - 2: power mode 103 * bit 6 - 4: reserved 108 * bit 7 - 4: number of fingers currently touching pad [all …]
|
H A D | synaptics.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Added support for pass-through port. Special thanks to Peter Berg Larsen 13 * start merging tpconfig and gpm code to a xfree-input module 17 * Copyright (c) 1998-2000 Bruce Kalk <kall@compass.com> 18 * code for the special synaptics commands (from the tpconfig-source) 61 * value which are actually negative values truncated to the 13-bit 63 * than 8184 (i.e. -8), so we treat all values greater than 8176 as 84 error = ps2_sliced_command(&psmouse->ps2dev, mode); in synaptics_mode_cmd() 89 error = ps2_command(&psmouse->ps2dev, param, PSMOUSE_CMD_SETRATE); in synaptics_mode_cmd() 98 struct ps2dev *ps2dev = &psmouse->ps2dev; in synaptics_detect() [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. 154 * Bit 6 - 5: indicates an event associated with this touch instance 159 * Bit 4 - 0: An arbitrary ID tag associated with a finger 164 /* Bit 7 - 0 of X-axis coordinate of the touch in pixel. */ 167 /* Bit 15 - 8 of X-axis coordinate of the touch in pixel. */ [all …]
|
/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/input/touchscreen/ |
H A D | cy8ctma140.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Inspired by the tma140_skomer.c driver in the Samsung GT-S7710 code 9 * drop. The GT-S7710 is codenamed "Skomer", the code also indicates 12 * The code drop for GT-S7710 also contains a firmware downloader and 15 * just use it to read the fingers. The shipped vendor driver does the 73 id = i % 2 ? buf[-1] & 0x0f : buf[5] >> 4; in cy8ctma140_report() 74 slot = input_mt_get_slot_by_key(ts->input, id); in cy8ctma140_report() 82 dev_dbg(ts->dev, "finger %d: ID %02x (%d, %d) w: %d\n", in cy8ctma140_report() 85 input_mt_slot(ts->input, slot); in cy8ctma140_report() 86 input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, true); in cy8ctma140_report() [all …]
|
H A D | auo-pixcir-ts.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Driver for AUO in-cell touchscreens 7 * loosely based on auo_touch.c from Dell Streak vendor-kernel 87 * sleep: scan speed 10Hz can be auto-activated, wakeup on 1st touch 141 struct i2c_client *client = ts->client; in auo_pixcir_collect_data() 150 dev_err(&client->dev, "failed to read coordinate, %d\n", ret); in auo_pixcir_collect_data() 158 dev_err(&client->dev, "could not read touch area, %d\n", ret); in auo_pixcir_collect_data() 168 if (point[i].coord_x > ts->x_max || in auo_pixcir_collect_data() 169 point[i].coord_y > ts->y_max) { in auo_pixcir_collect_data() 170 dev_warn(&client->dev, "coordinates (%d,%d) invalid\n", in auo_pixcir_collect_data() [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 65 * struct pixcir_i2c_chip_data - chip related data 66 * @max_fingers: Max number of fingers reported simultaneously by h/w 102 const struct pixcir_i2c_chip_data *chip = tsdata->chip; in pixcir_ts_parse() 106 i = chip->has_hw_ids ? 1 : 0; in pixcir_ts_parse() 107 readsize = 2 + tsdata->chip->max_fingers * (4 + i); in pixcir_ts_parse() 111 ret = i2c_master_send(tsdata->client, wrbuf, sizeof(wrbuf)); in pixcir_ts_parse() [all …]
|
H A D | elants_i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * This code is partly based on hid-multitouch.c: 10 * Copyright (c) 2010-2012 Stephane Chatty <chatty@enac.fr> 11 * Copyright (c) 2010-2012 Benjamin Tissoires <benjamin.tissoires@gmail.com> 12 * Copyright (c) 2010-2012 Ecole Nationale de l'Aviation Civile, France 14 * This code is partly based on i2c-hid.c: 49 #define ELAN_TS_RESOLUTION(n, m) (((n) - 1) * (m)) 89 /* Header (4 bytes) plus 3 full 10-finger packets */ 150 /* struct elants_data - represents state of Elan touchscreen device */ 200 ret = -EIO; in elants_i2c_send() [all …]
|
/linux/drivers/input/keyboard/ |
H A D | applespi.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2015-2018 Federico Lorenzi 6 * Copyright (c) 2017-2018 Ronald Tschalär 26 * SPI-based Protocol 27 * ------------------ 40 * fixed, 256-byte size). In that case it will be split over multiple, 85 ((KBD_BL_LEVEL_MAX - KBD_BL_LEVEL_MIN) * KBD_BL_LEVEL_SCALE / 255U) 102 …emap Fn key ([0] = no-remap; 1 = left-ctrl, 2 = left-shift, 3 = left-alt, 4 = left-meta, 6 = right… 106 MODULE_PARM_DESC(iso_layout, "Enable/Disable hardcoded ISO-layout of the keyboard. ([0] = disabled,… 114 * struct keyboard_protocol - keyboard message. [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 51 int max; member 66 #define MAX_PRESSURE (255 - PRESSURE_OFFSET) [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 …]
|
H A D | hid-elan.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 #include "hid-ids.h" 54 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in is_not_elan_touchpad() 56 return (intf->altsetting->desc.bInterfaceNumber != in is_not_elan_touchpad() 65 unsigned long **bit, int *max) in elan_input_mapping() argument 70 if (field->report->id == ELAN_SINGLE_FINGER || in elan_input_mapping() 71 field->report->id == ELAN_MT_FIRST_FINGER || in elan_input_mapping() 72 field->report->id == ELAN_MT_SECOND_FINGER || in elan_input_mapping() 73 field->report->id == ELAN_MT_I2C) in elan_input_mapping() 74 return -1; in elan_input_mapping() [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" 111 struct hid_report *report = hdev->report_enum[HID_FEATURE_REPORT]. in ntrig_get_mode() 114 if (!report || report->maxfield < 1 || in ntrig_get_mode() 115 report->field[0]->report_count < 1) in ntrig_get_mode() 116 return -EINVAL; in ntrig_get_mode() 120 return (int)report->field[0]->value[0]; in ntrig_get_mode() [all …]
|
H A D | hid-logitech-hidpp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (c) 2012-2013 Google (c) 7 * Copyright (c) 2013-2014 Red Hat Inc. 25 #include <linux/fixp-arith.h> 28 #include "hid-ids.h" 39 "Disable Tap-To-Click mode reporting for touchpads (only on the K400 currently)."); 41 /* Define a non-zero software ID to identify our own requests */ 83 /* Convenience constant to check for any high-res support. */ 100 #define lg_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, EV_KEY, (c)) 127 u8 params[HIDPP_REPORT_VERY_LONG_MAX_LENGTH - 4U]; [all …]
|
H A D | hid-alps.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 #include "hid-ids.h" 28 #define U1_ABSOLUTE_REPORT_ID_SECD 0x02 /* FW-PTP Absolute data ReportID */ 84 * @max_fingers: total number of fingers 147 length -= tlen; in t4_calc_check_sum() 153 } while (--tlen > 0); in t4_calc_check_sum() 175 return -ENOMEM; in t4_read_write_register() 200 dev_err(&hdev->dev, "failed to read command (%d)\n", ret); in t4_read_write_register() 207 ret = -ENOMEM; in t4_read_write_register() 215 dev_err(&hdev->dev, "failed read register (%d)\n", ret); in t4_read_write_register() [all …]
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3368-px5-evb.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include <dt-bindings/input/input.h> 12 compatible = "rockchip,px5-evb", "rockchip,px5", "rockchip,rk3368"; 20 stdout-path = "serial4:115200n8"; 28 keys: gpio-keys { 29 compatible = "gpio-keys"; 30 pinctrl-names = "default"; 31 pinctrl-0 = <&pwr_key>; 33 key-power { [all …]
|
/linux/arch/arm/boot/dts/rockchip/ |
H A D | rk3188-px3-evb.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Copyright (c) 2016 Andy Yan <andy.yan@rock-chips.com> 6 /dts-v1/; 7 #include <dt-bindings/input/input.h> 11 model = "Rockchip PX3-EVB"; 12 compatible = "rockchip,px3-evb", "rockchip,px3", "rockchip,rk3188"; 20 stdout-path = "serial2:115200n8"; 28 gpio-keys { 29 compatible = "gpio-keys"; 32 key-power { [all …]
|
/linux/include/uapi/linux/ |
H A D | input-event-codes.h | 1 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ 6 * This file is not only included from C-code but also from devicetree source 9 * Copyright (c) 1999-2002 Vojtech Pavlik 70 * AC - Application Control 71 * AL - Applicatio [all...] |
/linux/include/dt-bindings/input/ |
H A D | linux-event-codes.h | 1 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ 6 * This file is not only included from C-code but also from devicetree source 9 * Copyright (c) 1999-2002 Vojtech Pavlik 70 * AC - Application Control 71 * AL - Applicatio [all...] |
/linux/drivers/net/ethernet/intel/e1000e/ |
H A D | 80003es2lan.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 35 * e1000_init_phy_params_80003es2lan - Init ESB2 PHY func ptrs. 40 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_80003es2lan() 43 if (hw->phy.media_type != e1000_media_type_copper) { in e1000_init_phy_params_80003es2lan() 44 phy->type = e1000_phy_none; in e1000_init_phy_params_80003es2lan() 47 phy->ops.power_up = e1000_power_up_phy_copper; in e1000_init_phy_params_80003es2lan() 48 phy->ops.power_down = e1000_power_down_phy_copper_80003es2lan; in e1000_init_phy_params_80003es2lan() 51 phy->addr = 1; in e1000_init_phy_params_80003es2lan() 52 phy->autoneg_mask = AUTONEG_ADVERTISE_SPEED_DEFAULT; in e1000_init_phy_params_80003es2lan() [all …]
|