touchscreen: add goodix gt9xx touch for a311d_w400
authorSunny Luo <sunny.luo@amlogic.com>
Sat, 7 Jul 2018 07:04:12 +0000 (15:04 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Wed, 11 Jul 2018 06:17:36 +0000 (23:17 -0700)
PD#169723: touchscreen: add goodix gt9xx touch for a311d_w400

Change-Id: I2a3560b91bcf449e2c0f9e0a36e6ce9586adf8cf
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
arch/arm64/boot/dts/amlogic/g12b_a311d_w400.dts
drivers/amlogic/input/touchscreen/goodix_gt9xx/gt9xx.h

index 8c590fd..5eb1e0d 100644 (file)
        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";
index a5a88a3..6d14887 100644 (file)
@@ -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