Home
last modified time | relevance | path

Searched +full:pen +full:- +full:up (Results 1 – 25 of 62) sorted by relevance

123

/linux/include/linux/
H A Dwm97xx.h1 /* SPDX-License-Identifier: GPL-2.0 */
62 #define WM97XX_SLT(i) ((i - 5) & 0x7) /* panel slot (5-11) */
67 #define WM97XX_RPR 0x2000 /* wake up on pen down */
68 #define WM97XX_PEN_DOWN 0x8000 /* pen is down */
71 #define WM9712_45W 0x1000 /* set for 5-wire touchscreen */
72 #define WM9712_PDEN 0x0800 /* measure only when pen down */
78 #define WM9712_RPU(i) (i&0x3f) /* internal pull up on pen detect (64k / rpu) */
86 #define WM9705_PDEN 0x1000 /* measure only when pen is down */
87 #define WM9705_PINV 0x0800 /* inverts sense of pen down output */
96 #define WM9705_PDD(i) (i & 0x000f) /* pen detect comparator threshold */
[all …]
/linux/Documentation/devicetree/bindings/input/touchscreen/
H A Dti,am3359-tsc.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/input/touchscreen/ti,am3359-tsc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Miquel Raynal <miquel.raynal@bootlin.com>
14 const: ti,am3359-tsc
22 ti,x-plate-resistance:
26 ti,coordinate-readouts:
36 ti,wire-config:
38 wires on touchscreen. We need to provide an 8-bit number where the
[all …]
/linux/drivers/hid/
H A Dhid-uclogic-params.c1 // SPDX-License-Identifier: GPL-2.0+
3 * HID driver for UC-Logic devices not fully compliant with HID standard
4 * - tablet initialization and parameter retrieval
16 #include "hid-uclogic-params.h"
17 #include "hid-uclogic-rdesc.h"
19 #include "hid-id
58 uclogic_params_pen_hid_dbg(const struct hid_device * hdev,const struct uclogic_params_pen * pen) uclogic_params_pen_hid_dbg() argument
210 uclogic_params_pen_cleanup(struct uclogic_params_pen * pen) uclogic_params_pen_cleanup() argument
232 uclogic_params_pen_init_v1(struct uclogic_params_pen * pen,bool * pfound,struct hid_device * hdev) uclogic_params_pen_init_v1() argument
370 uclogic_params_pen_init_v2(struct uclogic_params_pen * pen,bool * pfound,__u8 ** pparams_ptr,size_t * pparams_len,struct hid_device * hdev) uclogic_params_pen_init_v2() argument
[all...]
H A Dwacom_wac.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * USB Wacom tablet support - Wacom specific code
25 * 2^14/pi is a good approximation on Intuos5 and 3rd-gen Bamboo
43 struct input_dev *input = wacom_wac->pen_input; in wacom_force_proxout()
45 wacom_wac->shared->stylus_in_proximity = 0; in wacom_force_proxout()
51 input_report_key(input, wacom_wac->tool[0], 0); in wacom_force_proxout()
52 if (wacom_wac->serial[0]) { in wacom_force_proxout()
57 wacom_wac->tool[0] = 0; in wacom_force_proxout()
58 wacom_wac->id[0] = 0; in wacom_force_proxout()
59 wacom_wac->serial[0] = 0; in wacom_force_proxout()
[all …]
/linux/drivers/input/touchscreen/
H A Dda9052_tsi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
30 da9052_reg_update(tsi->da9052, DA9052_TSI_CONT_A_REG, 1 << 0, on); in da9052_ts_adc_toggle()
31 tsi->adc_on = on; in da9052_ts_adc_toggle()
38 if (!tsi->stopped) { in da9052_ts_pendwn_irq()
40 da9052_disable_irq_nosync(tsi->da9052, DA9052_IRQ_PENDOWN); in da9052_ts_pendwn_irq()
41 da9052_enable_irq(tsi->da9052, DA9052_IRQ_TSIREADY); in da9052_ts_pendwn_irq()
45 schedule_delayed_work(&tsi->ts_pen_work, HZ / 50); in da9052_ts_pendwn_irq()
53 struct input_dev *input = tsi->dev; in da9052_ts_read()
58 ret = da9052_reg_read(tsi->da9052, DA9052_TSI_X_MSB_REG); in da9052_ts_read()
64 ret = da9052_reg_read(tsi->da9052, DA9052_TSI_Y_MSB_REG); in da9052_ts_read()
[all …]
H A Dmainstone-wm97xx.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * mainstone-wm97xx.c -- Mainstone Continuous Touch screen driver for
16 * - codecs supported:- WM9705, WM9712, WM9713
17 * - processors supported:- Intel XScale PXA25x, PXA26x, PXA27x
31 #include <sound/pxa2xx-lib.h>
33 #include <asm/mach-types.h>
64 * Pen sampling frequency (Hz) in continuous mode.
71 * Pen down detection.
73 * This driver can either poll or use an interrupt to indicate a pen down
78 MODULE_PARM_DESC(pen_int, "Pen down detection (1 = interrupt, 0 = polling)");
[all …]
H A Dwm831x-ts.c1 // SPDX-License-Identifier: GPL-2.0-or-later
25 * R16424 (0x4028) - Touch Control 1
33 #define WM831X_TCH_DELAY_MASK 0x00E0 /* TCH_DELAY - [7:5] */
34 #define WM831X_TCH_DELAY_SHIFT 5 /* TCH_DELAY - [7:5] */
35 #define WM831X_TCH_DELAY_WIDTH 3 /* TCH_DELAY - [7:5] */
36 #define WM831X_TCH_RATE_MASK 0x001F /* TCH_RATE - [4:0] */
37 #define WM831X_TCH_RATE_SHIFT 0 /* TCH_RATE - [4:0] */
38 #define WM831X_TCH_RATE_WIDTH 5 /* TCH_RATE - [4:0] */
41 * R16425 (0x4029) - Touch Control 2
47 #define WM831X_TCH_RPU_MASK 0x000F /* TCH_RPU - [3:0] */
[all …]
H A Dsurface3_spi.c1 // SPDX-License-Identifier: GPL-2.0-only
60 struct spi_device *spi = ts_data->spi; in surface3_spi_read()
62 memset(ts_data->rd_buf, 0, sizeof(ts_data->rd_buf)); in surface3_spi_read()
63 return spi_read(spi, ts_data->rd_buf, sizeof(ts_data->rd_buf)); in surface3_spi_read()
69 int st = finger->status & 0x01; in surface3_spi_report_touch()
72 slot = input_mt_get_slot_by_key(ts_data->input_dev, in surface3_spi_report_touch()
73 get_unaligned_le16(&finger->tracking_id)); in surface3_spi_report_touch()
77 input_mt_slot(ts_data->input_dev, slot); in surface3_spi_report_touch()
78 input_mt_report_slot_state(ts_data->input_dev, MT_TOOL_FINGER, st); in surface3_spi_report_touch()
80 input_report_abs(ts_data->input_dev, in surface3_spi_report_touch()
[all …]
H A Dbcm_iproc_tsc.c1 // SPDX-License-Identifier: GPL-2.0-only
22 #define IPROC_TS_NAME "iproc-ts"
88 regmap_read(priv->regmap, reg, &val); \
93 /* Each step is 1024 us. Valid 1-256 */
96 /* Each step is 512 us. Valid 0-255 */
102 * drivers in detection mode. Valid values: 0-11
167 struct device *dev = &priv->pdev->dev; in ts_reg_dump()
198 regmap_read(priv->regmap, INTERRUPT_STATUS, &intr_status); in iproc_touchscreen_interrupt()
203 /* Clear all interrupt status bits, write-1-clear */ in iproc_touchscreen_interrupt()
204 regmap_write(priv->regmap, INTERRUPT_STATUS, intr_status); in iproc_touchscreen_interrupt()
[all …]
H A Dsilead.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* -------------------------------------------------------------------------
3 * Copyright (C) 2014-2015, Intel Corporation
7 * Copyright (C) 2010-2015, Shanghai Sileadinc Co.Ltd
9 * -------------------------------------------------------------------------
94 struct input_absinfo *absinfo_x = &data->input->absinfo[ABS_MT_POSITION_X]; in silead_apply_efi_fw_min_max()
95 struct input_absinfo *absinfo_y = &data->input->absinfo[ABS_MT_POSITION_Y]; in silead_apply_efi_fw_min_max()
97 if (!data->efi_fw_min_max_set) in silead_apply_efi_fw_min_max()
100 absinfo_x->minimum = data->efi_fw_min_max[0]; in silead_apply_efi_fw_min_max()
101 absinfo_x->maximum = data->efi_fw_min_max[1]; in silead_apply_efi_fw_min_max()
[all …]
H A Dlpc32xx_ts.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * LPC32xx built-in touchscreen driver
43 #define LPC32XX_TSC_ADCCON_X_SAMPLE_SIZE(s) ((10 - (s)) << 7)
44 #define LPC32XX_TSC_ADCCON_Y_SAMPLE_SIZE(s) ((10 - (s)) << 4)
57 #define MOD_NAME "ts-lpc32xx"
60 __raw_readl((dev)->tsc_base + (reg))
62 __raw_writel((val), (dev)->tsc_base + (reg))
83 struct input_dev *input = tsc->dev; in lpc32xx_ts_interrupt()
88 /* FIFO overflow - throw away samples */ in lpc32xx_ts_interrupt()
94 * Gather and normalize 4 samples. Pen-up events may have less in lpc32xx_ts_interrupt()
[all …]
H A Dads7846.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * - corgi_ts.c
11 * Copyright (C) 2004-2005 Richard Purdie
12 * - omap_ts.[hc], ads7846.h, ts_osk.c
39 * Support for ads7843 tested on Atmel at91sam926x-EK.
53 * note. The strength of filtering can be set in the board-* specific
76 * driver is used with DMA-based SPI controllers (like atmel_spi) on
77 * systems where main memory is not DMA-coherent (most non-x86 boards).
152 /* leave chip selected when we're done, for quicker re-select? */
159 /*--------------------------------------------------------------------------*/
[all …]
H A Dda9034-ts.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2006-2008 Marvell International Ltd.
68 return da903x_query_status(touch->da9034_dev, DA9034_STATUS_PEN_DOWN); in is_pen_down()
74 return da903x_set_bits(touch->da9034_dev, in detect_pen_down()
77 return da903x_clr_bits(touch->da9034_dev, in detect_pen_down()
86 ret = da903x_read(touch->da9034_dev, DA9034_TSI_X_MSB, &_x); in read_tsi()
90 ret = da903x_read(touch->da9034_dev, DA9034_TSI_Y_MSB, &_y); in read_tsi()
94 ret = da903x_read(touch->da9034_dev, DA9034_TSI_XY_LSB, &_v); in read_tsi()
98 touch->last_x = ((_x << 2) & 0x3fc) | (_v & 0x3); in read_tsi()
99 touch->last_y = ((_y << 2) & 0x3fc) | ((_v & 0xc) >> 2); in read_tsi()
[all …]
/linux/tools/testing/selftests/hid/tests/
H A Dtest_tablet.py2 # SPDX-License-Identifier: GPL-2.0
3 # -*- coding: utf-8 -*-
26 UP = False variable in BtnTouch
30 PEN variable in ToolType
451 class Pen(object): global() class
543 move_to(self, pen, state, button) global() argument
614 event(self, pen, button) global() argument
655 post(self, uhdev, pen, test_button) global() argument
662 validate_transitions( self, from_state, pen, evdev, events, allow_intermediate_states, button ) global() argument
873 event(self, pen, test_button) global() argument
922 move_to(self, pen, state, button) global() argument
986 event(self, pen, test_button) global() argument
1024 move_to(self, pen, state, button, debug=True) global() argument
1075 send_intermediate_state(self, pen, state, button) global() argument
1080 event(self, pen, button) global() argument
1161 move_to(self, pen, state, button, debug=True) global() argument
1242 send_intermediate_state(self, pen, state, test_button) global() argument
1247 event(self, pen, button) global() argument
[all...]
/linux/include/linux/mfd/wm831x/
H A Dpdata.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * include/linux/mfd/wm831x/pdata.h -- Platform data for WM831x
40 * Configuration for the WM831x DC-DC BuckWise convertors. This
74 int isel; /** Current for pen down (uA) */
75 int rpu; /** Pen down sensitivity resistor divider */
80 int pd_irqf; /** IRQ flags for pen down IRQ */
108 /** Called before subdevices are set up */
110 /** Called after subdevices are set up */
/linux/arch/arm/mach-versatile/
H A Dplatsmp.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * woken, and where there is no way to hot-unplug CPUs. Real platforms
25 * pen in headsmp.S, which exists because we are not always able to
29 volatile int versatile_cpu_release = -1;
46 * the limited-bandwidth bus - which affects the calibration value.
55 * pen, then head off into the C entry point in versatile_secondary_init()
57 versatile_write_cpu_release(-1); in versatile_secondary_init()
78 * CPUs in the holding pen until we're ready for them. However, in versatile_boot_secondary()
94 if (versatile_cpu_release == -1) in versatile_boot_secondary()
101 * now the secondary core is starting up let it run its in versatile_boot_secondary()
[all …]
/linux/drivers/iio/adc/
H A Dat91_adc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
49 #define AT91_ADC_PENDET (1 << 6) /* Pen contact detection enable */
53 #define AT91_ADC_STARTUP_9260 (0x1f << 16) /* Startup Up Time */
59 #define AT91_ADC_PENDBC (0x0f << 28) /* Pen Debounce time */
103 #define AT91_ADC_ACR_PENDETSENS (0x3 << 0) /* pull-up resistor */
115 #define AT91_ADC_TSMR_PENDBC (0x0f << 28) /* Pen Debounce time */
118 #define AT91_ADC_TSMR_PENDET_DIS (0 << 24) /* Pen contact detection disable */
119 #define AT91_ADC_TSMR_PENDET_ENA (1 << 24) /* Pen contact detection enable */
137 (st->registers->channel_base + (ch * 4))
139 (readl_relaxed(st->reg_base + reg))
[all …]
/linux/arch/arm64/boot/dts/rockchip/
H A Drk3399-gru-scarlet.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Google Gru-scarlet board device tree source
8 #include "rk3399-gru.dtsi"
11 chassis-type = "tablet";
16 pp1250_s3: regulator-pp1250-s3 {
17 compatible = "regulator-fixed";
18 regulator-name = "pp1250_s3";
21 regulator-always-on;
22 regulator-boot-on;
23 regulator-min-microvolt = <1250000>;
[all …]
/linux/arch/arm64/boot/dts/qcom/
H A Dsc7180-trogdor.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/gpio-keys.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
13 #include <dt-bindings/sound/sc7180-lpass.h>
16 #include "sc7180-firmware-tfa.dtsi"
22 thermal-zones {
23 charger_thermal: charger-thermal {
[all …]
/linux/arch/arm/mach-spear/
H A Dplatsmp.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * arch/arm/mach-spear13xx/platsmp.c
5 * based upon linux/arch/arm/mach-realview/platsmp.c
20 /* XXX spear_pen_release is cargo culted code - DO NOT COPY XXX */
21 volatile int spear_pen_release = -1;
24 * XXX CARGO CULTED CODE - DO NOT COPY XXX
45 * pen, then head off into the C entry point in spear13xx_secondary_init()
47 spear_write_pen_release(-1); in spear13xx_secondary_init()
68 * the holding pen - release it, then wait for it to flag in spear13xx_boot_secondary()
79 if (spear_pen_release == -1) in spear13xx_boot_secondary()
[all …]
/linux/arch/arm/mach-exynos/
H A Dplatsmp.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
5 // Cloned from linux/arch/arm/mach-vexpress/platsmp.c
17 #include <linux/soc/samsung/exynos-regs-pmu.h>
29 /* XXX exynos_pen_release is cargo culted code - DO NOT COPY XXX */
30 volatile int exynos_pen_release = -1;
70 * having been woken up - this shouldn't happen in platform_do_lowpower()
72 * Just note it happening - when we're woken, we can report in platform_do_lowpower()
81 * exynos_cpu_power_down() - power down the specified cpu
109 * exynos_cpu_power_up() - power up the specified cpu
[all …]
/linux/Documentation/input/devices/
H A Dntrig.rst4 N-Trig touchscreen Driver
7 :Copyright: |copy| 2008-2010 Rafi Rubin <rafi@seas.upenn.edu>
8 :Copyright: |copy| 2009-2010 Stephane Chatty
10 This driver provides support for N-Trig pen and multi-touch sensors. Single
11 and multi-touch events are translated to the appropriate protocols for
12 the hid and input systems. Pen events are sufficiently hid compliant and
16 This driver has been reported to work properly with multiple N-Trig devices
21 ----------
29 +-----------------------+-----------------------------------------------------+
31 +-----------------------+-----------------------------------------------------+
[all …]
/linux/drivers/media/usb/dvb-usb/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
11 <file:Documentation/driver-api/media/drivers/dvb-usb.rst>.
19 bool "Enable extended debug support for all DVB-USB devices"
22 Say Y if you want to enable debugging. See modinfo dvb-usb (and the
28 tristate "AVerMedia AverTV DVB-T USB 2.0 (A800)"
34 Say Y here to support the AVerMedia AverTV DVB-T USB 2.0 (A800) receiver.
37 tristate "Afatech AF9005 DVB-T USB1.1 support"
42 Say Y here to support the Afatech AF9005 based DVB-T USB1.1 receiver
53 tristate "Azurewave DVB-S/S2 USB2.0 AZ6027 support"
61 tristate "Terratec CinergyT2/qanu USB 2.0 DVB-T receiver"
[all …]
/linux/drivers/dma/
H A Dste_dma40.h1 /* SPDX-License-Identifier: GPL-2.0-only */
9 * Size is in the units of addr-widths (1,2,4,8 bytes)
10 * Larger transfers will be split up to multiple linked desc
15 #define STEDMA40_DEV_DST_MEMORY (-1)
16 #define STEDMA40_DEV_SRC_MEMORY (-1)
38 /* The value 4 indicates that PEN-reg shall be set to 0 */
63 * struct stedma40_half_channel_info - dst/src channel configuration
78 * struct stedma40_chan_cfg - Structure to be filled by client drivers.
81 * @high_priority: true if high-priority
/linux/arch/arm64/kernel/
H A Dsmp_spin_table.c1 // SPDX-License-Identifier: GPL-2.0-only
50 return -ENODEV; in smp_spin_table_cpu_init()
55 ret = of_property_read_u64(dn, "cpu-release-addr", in smp_spin_table_cpu_init()
58 pr_err("CPU %d: missing or invalid cpu-release-addr property\n", in smp_spin_table_cpu_init()
72 return -ENODEV; in smp_spin_table_cpu_prepare()
75 * The cpu-release-addr may or may not be inside the linear mapping. in smp_spin_table_cpu_prepare()
83 return -ENOMEM; in smp_spin_table_cpu_prepare()
87 * endianness of the kernel. Therefore, any boot-loaders that in smp_spin_table_cpu_prepare()
89 * boot-loader's endianness before jumping. This is mandated by in smp_spin_table_cpu_prepare()
98 * Send an event to wake up the secondary CPU. in smp_spin_table_cpu_prepare()
[all …]

123