mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 17:22:07 +00:00
Merge branch 'omap-for-v6.14/drivers' into tmp/omap-next-20241213.091057
This commit is contained in:
commit
2179717e0b
@ -601,8 +601,10 @@ tsc2007@48 {
|
||||
interrupts = <0 IRQ_TYPE_EDGE_FALLING>; /* GPIO_160 */
|
||||
gpios = <&gpio6 0 GPIO_ACTIVE_LOW>; /* GPIO_160 */
|
||||
ti,x-plate-ohms = <600>;
|
||||
touchscreen-size-x = <480>;
|
||||
touchscreen-size-y = <640>;
|
||||
touchscreen-size-x = <0xf00>;
|
||||
touchscreen-size-y = <0xf00>;
|
||||
touchscreen-min-x = <0x100>;
|
||||
touchscreen-min-y = <0x100>;
|
||||
touchscreen-max-pressure = <1000>;
|
||||
touchscreen-fuzz-x = <3>;
|
||||
touchscreen-fuzz-y = <8>;
|
||||
|
@ -19,6 +19,7 @@
|
||||
#ifndef _TSC2007_H
|
||||
#define _TSC2007_H
|
||||
|
||||
#include <linux/input/touchscreen.h>
|
||||
struct gpio_desc;
|
||||
|
||||
#define TSC2007_MEASURE_TEMP0 (0x0 << 4)
|
||||
@ -63,6 +64,7 @@ struct tsc2007 {
|
||||
|
||||
struct i2c_client *client;
|
||||
|
||||
struct touchscreen_properties prop;
|
||||
u16 model;
|
||||
u16 x_plate_ohms;
|
||||
u16 max_rt;
|
||||
|
@ -142,8 +142,7 @@ static irqreturn_t tsc2007_soft_irq(int irq, void *handle)
|
||||
rt = ts->max_rt - rt;
|
||||
|
||||
input_report_key(input, BTN_TOUCH, 1);
|
||||
input_report_abs(input, ABS_X, tc.x);
|
||||
input_report_abs(input, ABS_Y, tc.y);
|
||||
touchscreen_report_pos(input, &ts->prop, tc.x, tc.y, false);
|
||||
input_report_abs(input, ABS_PRESSURE, rt);
|
||||
|
||||
input_sync(input);
|
||||
@ -339,9 +338,9 @@ static int tsc2007_probe(struct i2c_client *client)
|
||||
input_set_drvdata(input_dev, ts);
|
||||
|
||||
input_set_capability(input_dev, EV_KEY, BTN_TOUCH);
|
||||
|
||||
input_set_abs_params(input_dev, ABS_X, 0, MAX_12BIT, ts->fuzzx, 0);
|
||||
input_set_abs_params(input_dev, ABS_Y, 0, MAX_12BIT, ts->fuzzy, 0);
|
||||
touchscreen_parse_properties(input_dev, false, &ts->prop);
|
||||
input_set_abs_params(input_dev, ABS_PRESSURE, 0, MAX_12BIT,
|
||||
ts->fuzzz, 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user