Home
last modified time | relevance | path

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

1234

/linux-6.12.1/include/linux/
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-6.12.1/Documentation/devicetree/bindings/input/touchscreen/
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-6.12.1/drivers/hid/
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-ids.h"
25 * uclogic_params_pen_inrange_to_str() - Convert a pen in-range reporting type
27 * @inrange: The in-range reporting type to convert.
49 * uclogic_params_pen_hid_dbg() - Dump tablet interface pen parameters
50 * @hdev: The HID device the pen parameters describe.
[all …]
/linux-6.12.1/drivers/input/touchscreen/
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 …]
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 …]
Dwm97xx-core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm97xx-core.c -- Touch screen driver core for Wolfson WM9705, WM9712
15 * - supports WM9705, WM9712, WM9713
16 * - polling mode
17 * - continuous mode (arch-dependent)
18 * - adjustable rpu/dpp settings
19 * - adjustable pressure current
20 * - adjustable sample settle delay
21 * - 4 and 5 wire touchscreens (5 wire is WM9712 only)
22 * - pen down detection
[all …]
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 …]
Dwm9713.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm9713.c -- Codec touch driver for Wolfson WM9713 AC97 Codec.
29 * Set internal pull up for pen detect.
31 * Pull up is in the range 1.02k (least sensitive) to 64k (most sensitive)
32 * i.e. pull up resistance = 64k Ohms / rpu.
34 * Adjust this value if you are having problems with pen detect not
39 MODULE_PARM_DESC(rpu, "Set internal pull up resistor for pen detect.");
58 * Pen down pressure below threshold is ignored.
87 MODULE_PARM_DESC(five_wire, "Set to '1' to use 5-wire touchscreen.");
149 * set up the physical settings of the WM9713
[all …]
Dwm9712.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm9712.c -- Codec driver for Wolfson WM9712 AC97 Codecs.
29 * Set internal pull up for pen detect.
31 * Pull up is in the range 1.02k (least sensitive) to 64k (most sensitive)
32 * i.e. pull up resistance = 64k Ohms / rpu.
34 * Adjust this value if you are having problems with pen detect not
39 MODULE_PARM_DESC(rpu, "Set internal pull up resistor for pen detect.");
58 * Pen down pressure below threshold is ignored.
87 MODULE_PARM_DESC(five_wire, "Set to '1' to use 5-wire touchscreen.");
149 * set up the physical settings of the WM9712
[all …]
Dtsc2007_core.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * - ads7846.c
12 * - corgi_ts.c
13 * Copyright (C) 2004-2005 Richard Purdie
14 * - omap_ts.[hc], ads7846.h, ts_osk.c
36 data = i2c_smbus_read_word_data(tsc->client, cmd); in tsc2007_xfer()
38 dev_err(&tsc->client->dev, "i2c io error: %d\n", data); in tsc2007_xfer()
44 * Where DataLow has [D11-D4], DataHigh has [D3-D0 << 4 | Dummy 4bit]. in tsc2007_xfer()
48 dev_dbg(&tsc->client->dev, "data: 0x%x, val: 0x%x\n", data, val); in tsc2007_xfer()
55 /* y- still on; turn on only y+ (and ADC) */ in tsc2007_read_values()
[all …]
Dwm9705.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm9705.c -- Codec driver for Wolfson WM9705 AC97 Codec.
45 * Pen down pressure below threshold is ignored.
68 * Pen detect comparator threshold.
74 * Adjust this value if you are having problems with pen detect not
79 MODULE_PARM_DESC(pdd, "Set pen detect comparator threshold");
131 * set up the physical settings of the WM9705
147 dev_dbg(wm->dev, in wm9705_phy_init()
150 dev_dbg(wm->dev, in wm9705_phy_init()
158 dev_dbg(wm->dev, "supplied delay out of range."); in wm9705_phy_init()
[all …]
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 …]
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 …]
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 …]
/linux-6.12.1/tools/testing/selftests/hid/tests/
Dtest_tablet.py2 # SPDX-License-Identifier: GPL-2.0
3 # -*- coding: utf-8 -*-
25 UP = False variable in BtnTouch
29 PEN = libevdev.EV_KEY.BTN_TOOL_PEN variable in ToolType
42 """Pen states according to Microsoft reference:
43 https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states
48 PEN_IS_OUT_OF_RANGE = BtnTouch.UP, None, False
49 PEN_IS_IN_RANGE = BtnTouch.UP, ToolType.PEN, False
50 PEN_IS_IN_RANGE_WITH_BUTTON = BtnTouch.UP, ToolType.PEN, True
51 PEN_IS_IN_CONTACT = BtnTouch.DOWN, ToolType.PEN, False
[all …]
/linux-6.12.1/arch/arm64/boot/dts/mediatek/
Dmt8183-kukui-kakadu.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
6 #include "mt8183-kukui.dtsi"
7 #include <dt-bindings/input/gpio-keys.h>
10 ppvarn_lcd: ppvarn-lcd {
11 compatible = "regulator-fixed";
12 regulator-name = "ppvarn_lcd";
13 pinctrl-names = "default";
14 pinctrl-0 = <&ppvarn_lcd_en>;
16 enable-active-high;
21 ppvarp_lcd: ppvarp-lcd {
[all …]
Dmt8183-kukui-krane.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
6 #include "mt8183-kukui.dtsi"
7 #include "mt8183-kukui-audio-max98357a.dtsi"
10 ppvarn_lcd: ppvarn-lcd {
11 compatible = "regulator-fixed";
12 regulator-name = "ppvarn_lcd";
13 pinctrl-names = "default";
14 pinctrl-0 = <&ppvarn_lcd_en>;
16 enable-active-high;
21 ppvarp_lcd: ppvarp-lcd {
[all …]
/linux-6.12.1/include/linux/mfd/wm831x/
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-6.12.1/arch/arm/mach-versatile/
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-6.12.1/drivers/iio/adc/
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-6.12.1/arch/arm64/boot/dts/qcom/
Dsdm845-cheza.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
25 stdout-path = "serial0:115200n8";
29 compatible = "pwm-backlight";
31 enable-gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
32 power-supply = <&ppvar_sys>;
33 pinctrl-names = "default";
34 pinctrl-0 = <&ap_edp_bklten>;
37 /* FIXED REGULATORS - parents above children */
[all …]
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-6.12.1/arch/arm64/boot/dts/rockchip/
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: 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-6.12.1/arch/arm/mach-spear/
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-6.12.1/drivers/hid/bpf/progs/
DHuion__Inspiroy-2-S.bpf.c1 // SPDX-License-Identifier: GPL-2.0-only
18 /* Filled in by udev-hid-bpf */
33 * To switch the tablet use e.g. https://github.com/whot/huion-switcher
36 * This BPF works for both modes. The huion-switcher tool sets the
37 * HUION_FIRMWARE_ID udev property - if that is set then we disable the firmware
38 * pad and pen reports (by making them vendor collections that are ignored).
40 * either mode though the drawback is that the device will show up twice if
59 * https://github.com/whot/huion-switcher
62 * Second hidraw node is the Pen. This one sends events until the tablet is
67 * # 0x09, 0x02, // Usage (Pen) 2
[all …]

1234