Skip to content

Commit 4639179

Browse files
committed
Merge branch 'CR_3167_gt911_ts_515_changhuang.liang' into 'vf2-515-devel'
CR_3167_gt911_ts_515_changhuang.liang Revert "riscv: defconfig: Enable GT9xx" See merge request sbc/linux!65
2 parents a4e8f1a + c6d90b4 commit 4639179

File tree

7 files changed

+8
-1985
lines changed

7 files changed

+8
-1985
lines changed

arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dtsi

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -424,14 +424,11 @@
424424
};
425425
};
426426

427-
gt9xx: gt9xx@14 {
428-
compatible = "goodix,gt9xx";
427+
touchscreen@14 {
428+
compatible = "goodix,gt911";
429429
reg = <0x14>;
430-
touch-gpio = <&gpio 30 IRQ_TYPE_LEVEL_LOW>;
431-
reset-gpio = <&gpio 31 GPIO_ACTIVE_HIGH>;
432-
max-x = <800>;
433-
max-y = <1280>;
434-
tp-size = <9112>;
430+
irq-gpios = <&gpio 30 GPIO_ACTIVE_HIGH>;
431+
reset-gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
435432
};
436433
};
437434

arch/riscv/boot/dts/starfive/jh7110.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#include <dt-bindings/clock/starfive-jh7110-clkgen.h>
1111
#include <dt-bindings/clock/starfive-jh7110-vout.h>
1212
#include <dt-bindings/clock/starfive-jh7110-isp.h>
13-
#include <dt-bindings/power/jh7110-power.h>
1413
#include <dt-bindings/interrupt-controller/irq.h>
14+
#include <dt-bindings/power/jh7110-power.h>
1515

1616
/ {
1717
compatible = "starfive,jh7110";

arch/riscv/configs/starfive_visionfive2_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ CONFIG_INPUT_EVDEV=y
156156
# CONFIG_INPUT_KEYBOARD is not set
157157
# CONFIG_INPUT_MOUSE is not set
158158
CONFIG_INPUT_TOUCHSCREEN=y
159-
CONFIG_TOUCHSCREEN_GT9XX=y
159+
CONFIG_TOUCHSCREEN_GOODIX=y
160160
CONFIG_TOUCHSCREEN_TINKER_FT5406=y
161161
CONFIG_SERIO_LIBPS2=y
162162
CONFIG_SERIAL_8250=y

drivers/input/touchscreen/Kconfig

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -400,19 +400,6 @@ config TOUCHSCREEN_GOODIX
400400
To compile this driver as a module, choose M here: the
401401
module will be called goodix.
402402

403-
config TOUCHSCREEN_GT9XX
404-
tristate "Goodix touch screen gt9xx support for rockchip based platform"
405-
depends on I2C
406-
help
407-
Say Y here if you have a touchscreen interface using the
408-
two goodix gt9xx, and your board-specific initialization
409-
code includes that in its table of IIC devices.
410-
411-
If unsure, say N.
412-
413-
To compile this driver as a module, choose M here: the
414-
module will be called gt9xx.
415-
416403
config TOUCHSCREEN_HIDEEP
417404
tristate "HiDeep Touch IC"
418405
depends on I2C

drivers/input/touchscreen/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ obj-$(CONFIG_TOUCHSCREEN_EGALAX_SERIAL) += egalax_ts_serial.o
4545
obj-$(CONFIG_TOUCHSCREEN_EXC3000) += exc3000.o
4646
obj-$(CONFIG_TOUCHSCREEN_FUJITSU) += fujitsu_ts.o
4747
obj-$(CONFIG_TOUCHSCREEN_GOODIX) += goodix.o
48-
obj-$(CONFIG_TOUCHSCREEN_GT9XX) += gt9xx.o
4948
obj-$(CONFIG_TOUCHSCREEN_HIDEEP) += hideep.o
5049
obj-$(CONFIG_TOUCHSCREEN_ILI210X) += ili210x.o
5150
obj-$(CONFIG_TOUCHSCREEN_ILITEK) += ilitek_ts_i2c.o

drivers/input/touchscreen/goodix.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,12 +444,12 @@ static irqreturn_t goodix_ts_irq_handler(int irq, void *dev_id)
444444

445445
static void goodix_free_irq(struct goodix_ts_data *ts)
446446
{
447-
devm_free_irq(&ts->client->dev, ts->client->irq, ts);
447+
devm_free_irq(&ts->client->dev, gpiod_to_irq(ts->gpiod_int), ts);
448448
}
449449

450450
static int goodix_request_irq(struct goodix_ts_data *ts)
451451
{
452-
return devm_request_threaded_irq(&ts->client->dev, ts->client->irq,
452+
return devm_request_threaded_irq(&ts->client->dev, gpiod_to_irq(ts->gpiod_int),
453453
NULL, goodix_ts_irq_handler,
454454
ts->irq_flags, ts->client->name, ts);
455455
}

0 commit comments

Comments
 (0)