Home
last modified time | relevance | path

Searched +full:touchscreen +full:- +full:average +full:- +full:samples (Results 1 – 16 of 16) sorted by relevance

/Linux-v5.10/Documentation/devicetree/bindings/input/touchscreen/
Dimx6ul_tsc.txt4 - compatible: must be "fsl,imx6ul-tsc".
5 - reg: this touch controller address and the ADC2 address.
6 - interrupts: the interrupt of this touch controller and ADC2.
7 - clocks: the root clock of touch controller and ADC2.
8 - clock-names; must be "tsc" and "adc".
9 - xnur-gpio: the X- gpio this controller connect to.
10 This xnur-gpio returns to low once the finger leave the touch screen (The
14 - measure-delay-time: the value of measure delay time.
15 Before X-axis or Y-axis measurement, the screen need some time before
18 - pre-charge-time: the touch screen need some time to precharge.
[all …]
Dstmpe.txt1 STMPE Touchscreen
2 ----------------
5 - compatible: "st,stmpe-ts"
8 - st,ave-ctrl : Sample average control
9 0 -> 1 sample
10 1 -> 2 samples
11 2 -> 4 samples
12 3 -> 8 samples
13 - st,touch-det-delay : Touch detect interrupt delay (recommended is 3)
14 0 -> 10 us
[all …]
Dtouchscreen.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/input/touchscreen/touchscreen.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Common touchscreen Bindings
10 - Dmitry Torokhov <dmitry.torokhov@gmail.com>
13 touchscreen-min-x:
18 touchscreen-min-y:
23 touchscreen-size-x:
24 description: horizontal resolution of touchscreen (maximum x coordinate reported + 1)
[all …]
Dads7846.txt7 Documentation/devicetree/bindings/spi/spi-bus.txt
23 vcc-supply A regulator node for the supply voltage.
28 ti,vref-delay-usecs vref supply delay in usecs, 0 for
30 ti,vref-mv The VREF voltage, in millivolts (u16).
33 ti,keep-vref-on set to keep vref on for differential
35 ti,settle-delay-usec Settling time of the analog signals;
37 on the X/Y drivers. If set to non-zero,
38 two samples are taken with settle_delay
41 ti,penirq-recheck-delay-usecs If set to non-zero, after samples are
47 ti,x-plate-ohms Resistance of the X-plate,
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/mfd/
Dmxs-lradc.txt4 - compatible: Should be "fsl,imx23-lradc" for i.MX23 SoC and "fsl,imx28-lradc"
6 - reg: Address and length of the register set for the device
7 - interrupts: Should contain the LRADC interrupts
10 - fsl,lradc-touchscreen-wires: Number of wires used to connect the touchscreen
12 property is not present, then the touchscreen is
14 - fsl,ave-ctrl: number of samples per direction to calculate an average value.
16 - fsl,ave-delay: delay between consecutive samples. Allowed value is
17 2 ... 2048. It is used if 'fsl,ave-ctrl' > 1, counts at
19 - fsl,settling: delay between plate switch to next sample. Allowed value is
26 compatible = "fsl,imx23-lradc";
[all …]
/Linux-v5.10/drivers/input/touchscreen/
Dstmpe-ts.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * STMicroelectronics STMPE811 Touchscreen Driver
25 * with touchscreen controller
45 #define STMPE_TS_NAME "stmpe-ts"
49 * struct stmpe_touch - stmpe811 touch screen controller state
54 * @ave_ctrl: Sample average control
55 * (0 -> 1 sample, 1 -> 2 samples, 2 -> 4 samples, 3 -> 8 samples)
57 * (0 -> 10 us, 1 -> 50 us, 2 -> 100 us, 3 -> 500 us,
58 * 4-> 1 ms, 5 -> 5 ms, 6 -> 10 ms, 7 -> 50 ms)
61 * (0 -> 10 us, 1 -> 100 us, 2 -> 500 us, 3 -> 1 ms,
[all …]
Dlpc32xx_ts.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * LPC32xx built-in touchscreen driver
18 * Touchscreen controller register offsets
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()
[all …]
Dimx6ul_tsc.c1 // SPDX-License-Identifier: GPL-2.0
3 // Freescale i.MX6UL touchscreen controller driver
111 reinit_completion(&tsc->completion); in imx6ul_adc_init()
113 adc_cfg = readl(tsc->adc_regs + REG_ADC_CFG); in imx6ul_adc_init()
118 if (tsc->average_enable) { in imx6ul_adc_init()
120 adc_cfg |= (tsc->average_select) << ADC_AVGS_SHIFT; in imx6ul_adc_init()
123 writel(adc_cfg, tsc->adc_regs + REG_ADC_CFG); in imx6ul_adc_init()
128 writel(adc_hc, tsc->adc_regs + REG_ADC_HC0); in imx6ul_adc_init()
131 adc_gc = readl(tsc->adc_regs + REG_ADC_GC); in imx6ul_adc_init()
133 if (tsc->average_enable) in imx6ul_adc_init()
[all …]
Dmax11801_ts.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for MAXI MAX11801 - A Resistive touch screen controller with
16 * -----------------------------------------------------
18 * |----------------------------------------------------|
23 * ------------------------------------------------------
28 * http://www.maxim-ic.com/datasheet/index.mvp/id/5943
98 struct i2c_client *client = data->client; in max11801_ts_interrupt()
101 int x = -1; in max11801_ts_interrupt()
102 int y = -1; in max11801_ts_interrupt()
104 status = read_register(data->client, GENERNAL_STATUS_REG); in max11801_ts_interrupt()
[all …]
Dbu21029_ts.c1 // SPDX-License-Identifier: GPL-2.0
3 * Rohm BU21029 touchscreen controller driver
5 * Copyright (C) 2015-2018 Bosch Sicherheitssysteme GmbH
16 #include <linux/input/touchscreen.h>
25 * +--------+--------+--------+--------+--------+--------+--------+--------+
27 * +--------+--------+--------+--------+--------+--------+--------+--------+
29 * +--------+--------+--------+--------+--------+--------+--------+--------+
31 * +--------+--------+--------+--------+--------+--------+--------+--------+
33 * +--------+--------+--------+--------+--------+--------+--------+--------+
35 * +--------+--------+--------+--------+--------+--------+--------+--------+
[all …]
Dads7846.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * ADS7846 based touchscreen and sensor driver
10 * - corgi_ts.c
11 * Copyright (C) 2004-2005 Richard Purdie
12 * - omap_ts.[hc], ads7846.h, ts_osk.c
23 #include <linux/input/touchscreen.h>
41 * Support for ads7843 tested on Atmel at91sam926x-EK.
55 * note. The strength of filtering can be set in the board-* specific
60 #define TS_POLL_PERIOD 5 /* ms delay between samples */
69 * with msbs zeroed). Instead, we read them as two 8-bit values,
[all …]
Dti_am335x_tsc.c4 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
36 #define MAX_12BIT ((1 << 12) - 1)
65 return readl(ts->mfd_tscadc->tscadc_base + reg); in titsc_readl()
71 writel(val, tsc->mfd_tscadc->tscadc_base + reg); in titsc_writel()
85 analog_line[i] = (ts_dev->config_inp[i] & 0xF0) >> 4; in titsc_config_wires()
86 wire_order[i] = ts_dev->config_inp[i] & 0x0F; in titsc_config_wires()
88 return -EINVAL; in titsc_config_wires()
90 return -EINVAL; in titsc_config_wires()
101 return -EINVAL; in titsc_config_wires()
104 ts_dev->bit_xp = bit_cfg; in titsc_config_wires()
[all …]
/Linux-v5.10/arch/arm64/boot/dts/freescale/
Dimx8mn-var-som.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
4 * Copyright 2019-2020 Variscite Ltd.
11 model = "Variscite VAR-SOM-MX8MN module";
12 compatible = "variscite,var-som-mx8mn", "fsl,imx8mn";
15 stdout-path = &uart4;
23 reg_eth_phy: regulator-eth-phy {
24 compatible = "regulator-fixed";
25 pinctrl-names = "default";
26 pinctrl-0 = <&pinctrl_reg_eth_phy>;
27 regulator-name = "eth_phy_pwr";
[all …]
Dimx8mm-var-som.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
10 model = "Variscite VAR-SOM-MX8MM module";
11 compatible = "variscite,var-som-mx8mm", "fsl,imx8mm";
14 stdout-path = &uart4;
22 reg_eth_phy: regulator-eth-phy {
23 compatible = "regulator-fixed";
24 pinctrl-names = "default";
25 pinctrl-0 = <&pinctrl_reg_eth_phy>;
26 regulator-name = "eth_phy_pwr";
27 regulator-min-microvolt = <3300000>;
[all …]
/Linux-v5.10/drivers/iio/adc/
Dat91-sama5d2_adc.c1 // SPDX-License-Identifier: GPL-2.0-only
12 #include <linux/dma-mapping.h>
36 /* Touchscreen Calibration */
98 /* Interrupt Enable Register - TS X measurement ready */
100 /* Interrupt Enable Register - TS Y measurement ready */
102 /* Interrupt Enable Register - TS pressure measurement ready */
104 /* Interrupt Enable Register - Data ready */
106 /* Interrupt Enable Register - general overrun error */
108 /* Interrupt Enable Register - Pen detect */
110 /* Interrupt Enable Register - No pen detect */
[all …]
Dat91_adc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
105 #define AT91_ADC_ACR_PENDETSENS (0x3 << 0) /* pull-up resistor */
113 #define AT91_ADC_TSMR_TSAV (3 << 4) /* Averages samples */
119 #define AT91_ADC_TSMR_NOTSDMA (1 << 22) /* No Touchscreen DMA */
139 (st->registers->channel_base + (ch * 4))
141 (readl_relaxed(st->reg_base + reg))
143 (writel_relaxed(val, st->reg_base + reg))
154 #define TOUCH_SCTIM_US 10 /* 10us for the Touchscreen Switches Closure Time */
157 * struct at91_adc_reg_desc - Various informations relative to registers
180 * Hardware can average (2 ^ ts_filter_average) sample data.
[all …]