/openbmc/linux/Documentation/devicetree/bindings/input/touchscreen/ |
H A D | ti,am3359-tsc.yaml | 1 # 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 …]
|
H A D | colibri-vf50-ts.txt | 4 - compatible must be toradex,vf50-touchscreen 5 - io-channels: adc channels being used by the Colibri VF50 module 6 IIO ADC for Y-, X-, Y+, X+ connections 7 - xp-gpios: FET gate driver for input of X+ 8 - xm-gpios: FET gate driver for input of X- 9 - yp-gpios: FET gate driver for input of Y+ 10 - ym-gpios: FET gate driver for input of Y- 11 - interrupts: pen irq interrupt for touch detection, signal from X plate 12 - pinctrl-names: "idle", "default" 13 - pinctrl-0: pinctrl node for pen/touch detection, pinctrl must provide [all …]
|
/openbmc/linux/include/linux/ |
H A D | wm97xx.h | 1 /* 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 …]
|
/openbmc/linux/drivers/hid/ |
H A D | hid-uclogic-params.c | 1 // 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 …]
|
/openbmc/linux/drivers/input/touchscreen/ |
H A D | da9052_tsi.c | 1 // 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 D | mainstone-wm97xx.c | 1 // 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 D | wm97xx-core.c | 1 // 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 …]
|
H A D | wm831x-ts.c | 1 // 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 D | wm9713.c | 1 // 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 …]
|
H A D | wm9712.c | 1 // 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 …]
|
H A D | tsc2007_core.c | 1 // 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 …]
|
H A D | wm9705.c | 1 // 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 …]
|
H A D | surface3_spi.c | 1 // 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 D | bcm_iproc_tsc.c | 1 // 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 D | silead.c | 1 // 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 …]
|
/openbmc/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt8183-kukui-kakadu.dtsi | 1 // 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 …]
|
H A D | mt8183-kukui-krane.dtsi | 1 // 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 …]
|
/openbmc/linux/include/linux/mfd/wm831x/ |
H A D | pdata.h | 1 /* 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 */
|
/openbmc/linux/arch/arm/mach-versatile/ |
H A D | platsmp.c | 1 // 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 …]
|
/openbmc/linux/drivers/iio/adc/ |
H A D | at91_adc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 48 #define AT91_ADC_PENDET (1 << 6) /* Pen contact detection enable */ 52 #define AT91_ADC_STARTUP_9260 (0x1f << 16) /* Startup Up Time */ 58 #define AT91_ADC_PENDBC (0x0f << 28) /* Pen Debounce time */ 102 #define AT91_ADC_ACR_PENDETSENS (0x3 << 0) /* pull-up resistor */ 114 #define AT91_ADC_TSMR_PENDBC (0x0f << 28) /* Pen Debounce time */ 117 #define AT91_ADC_TSMR_PENDET_DIS (0 << 24) /* Pen contact detection disable */ 118 #define AT91_ADC_TSMR_PENDET_ENA (1 << 24) /* Pen contact detection enable */ 136 (st->registers->channel_base + (ch * 4)) 138 (readl_relaxed(st->reg_base + reg)) [all …]
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | sdm845-cheza.dtsi | 1 // 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 …]
|
H A D | sc7180-trogdor.dtsi | 1 // 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 …]
|
/openbmc/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3399-gru-scarlet.dtsi | 1 // 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 …]
|
/openbmc/linux/arch/arm/mach-spear/ |
H A D | platsmp.c | 1 // 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 …]
|
/openbmc/linux/drivers/input/tablet/ |
H A D | pegasus_notetaker.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Pegasus Mobile Notetaker Pen input tablet driver 10 * |-------------------------------------| 13 * |-------------------------------------| 15 * |-------------------------------------| 18 * and pen is in range: 21 * -------------------------------------------- 35 * S Switch 1 (pen button) 100 return -ENOMEM; in pegasus_control_msg() 106 result = usb_control_msg(pegasus->usbdev, in pegasus_control_msg() [all …]
|