From 8c4f33e3a9a86b3adbbefc880a47af58705e1b9f Mon Sep 17 00:00:00 2001 From: Sunny Luo Date: Sat, 7 Jul 2018 15:04:12 +0800 Subject: [PATCH] touchscreen: add goodix gt9xx touch for a311d_w400 PD#169723: touchscreen: add goodix gt9xx touch for a311d_w400 Change-Id: I2a3560b91bcf449e2c0f9e0a36e6ce9586adf8cf Signed-off-by: Sunny Luo --- arch/arm64/boot/dts/amlogic/g12b_a311d_w400.dts | 26 ++++++++++++++++++++++ .../amlogic/input/touchscreen/goodix_gt9xx/gt9xx.h | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/amlogic/g12b_a311d_w400.dts b/arch/arm64/boot/dts/amlogic/g12b_a311d_w400.dts index 8c590fd..5eb1e0d 100644 --- a/arch/arm64/boot/dts/amlogic/g12b_a311d_w400.dts +++ b/arch/arm64/boot/dts/amlogic/g12b_a311d_w400.dts @@ -686,6 +686,32 @@ pinctrl-0 = <&i2c0_master_pins2>; clock-frequency = <400000>; + touchscreen@5d { + compatible = "goodix,gt9xx"; + status = "disabled"; + reg = <0x5d>; + reset-gpio = <&gpio GPIOZ_9 GPIO_ACTIVE_HIGH>; + irq-gpio = <&gpio GPIOZ_3 GPIO_ACTIVE_HIGH>; + goodix,cfg-group0 = [ + 41 00 04 58 02 05 0C 00 02 54 07 + 0F 50 2D 03 05 00 00 00 00 40 00 + 04 20 10 F3 AA 07 28 0A 2C 2E 7C + 06 00 00 00 C9 03 24 00 01 00 00 + 00 00 FF 5D 66 98 32 28 64 94 C5 + 02 08 00 00 01 91 2C 00 8A 34 00 + 8A 3F 00 7E 4C 00 78 5B 00 78 00 + 00 00 00 00 00 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 + 00 00 02 04 06 08 0A 0C 0E 10 12 + 14 FF FF FF FF 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 00 00 00 + 02 04 06 08 0A 0C 1D 1E 1F 20 21 + 22 24 26 FF FF FF FF FF FF FF FF + FF FF FF 00 00 00 00 00 00 00 00 + 00 00 00 00 00 00 00 00 E3 01]; + }; + touchscreen@38 { compatible = "focaltech,fts"; status = "disabled"; diff --git a/drivers/amlogic/input/touchscreen/goodix_gt9xx/gt9xx.h b/drivers/amlogic/input/touchscreen/goodix_gt9xx/gt9xx.h index a5a88a3..6d14887 100644 --- a/drivers/amlogic/input/touchscreen/goodix_gt9xx/gt9xx.h +++ b/drivers/amlogic/input/touchscreen/goodix_gt9xx/gt9xx.h @@ -53,7 +53,7 @@ //***************************PART1:ON/OFF define******************************* #define GTP_CUSTOM_CFG 0 #define GTP_CHANGE_X2Y 0 //swap x y -#define GTP_DRIVER_SEND_CFG 0 //driver send config +#define GTP_DRIVER_SEND_CFG 1 //driver send config #define GTP_HAVE_TOUCH_KEY 0 #define GTP_POWER_CTRL_SLEEP 0 //power off when suspend #define GTP_ICS_SLOT_REPORT 1 // slot protocol -- 2.7.4