This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux: capacitive GT928 touch is not working in our custom AM3351 board

Other Parts Discussed in Thread: AM3351

Tool/software: Linux

Hi,

In our custom AM3351 board, touch is not working. We have built the goodix as module and loaded into kernel. while loading we are getting messages as

[  50.423448] Goodix-TS 0-0014: ID 928, version: 1040
[  50.467240] Goodix-TS 0-0014: Invalid config, using defaults
[  50.492693] input: Goodix Capacitive TouchScreen as /devices/platform/ocp/44e0b000.i2c/i2c-0/0-0014/input/input0

the device is getting created as
 lrwxrwxrwx    1 root     root             6 Jul  8 22:44 /dev/input/touchscreen0 -> event0

i have tried by checking cat /proc/interrupts, which is always coming as

182:          0      INTC  22 Level     gt928

i have tried evtest /dev/input/touchscreen0, where the log is coming as

Input driver version is 1.0.1
Input device ID: bus 0x18 vendor 0x416 product 0x3a0 version 0x1040
Input device name: "Goodix Capacitive TouchScreen"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 125 (KEY_LEFTMETA)
    Event code 330 (BTN_TOUCH)
  Event type 3 (EV_ABS)
    Event code 0 (ABS_X)
      Value      0
      Min        0
      Max     4096
    Event code 1 (ABS_Y)
      Value      0
      Min        0
      Max     4096
    Event code 47 (ABS_MT_SLOT)
      Value      0
      Min        0
      Max        9
    Event code 48 (ABS_MT_TOUCH_MAJOR)
      Value      0
      Min        0
      Max      255
    Event code 50 (ABS_MT_WIDTH_MAJOR)
      Value      0
      Min        0
      Max      255
    Event code 53 (ABS_MT_POSITION_X)
      Value      0
      Min        0
      Max     4096
    Event code 54 (ABS_MT_POSITION_Y)
      Value      0
      Min        0
      Max     4096
    Event code 57 (ABS_MT_TRACKING_ID)
      Value      0
      Min        0
      Max    65535
Properties:
  Property type 1 (INPUT_PROP_DIRECT)
Testing ... (interrupt to exit)

We are suspecting that interrupts are not coming from the device. But we are not sure on that. Can some one tell me the problem here and help to solve this.

the dts configuration is as follows,

gt928@14 {
        compatible =  "goodix,gt928";
        reg = <0x14>;
        interrupt-parent = <&clkout2_pin>;/
        interrupts = <22 1>;
        goodix,rst-gpio = <&ts_reset_pin_default>;
        goodix,irq-gpio = <&ts_int_pin_default>;
        goodix,cfg-group0 = [
            42 D0 02 00 05 05 75 01 01 0F 24
            0F 64 3C 03 05 00 00 00 02 00 00
            00 16 19 1C 14 8C 0E 0E 24 00 31
            0D 00 00 00 83 33 1D 00 41 00 00
            00 00 00 08 0A 00 2B 1C 3C 94 D5
            03 08 00 00 04 93 1E 00 82 23 00
            74 29 00 69 2F 00 5F 37 00 5F 20
            40 60 00 F0 40 30 55 50 27 00 00
            00 00 00 00 00 00 00 00 00 00 00
            00 00 00 00 00 00 00 14 19 00 00
            50 50 02 04 06 08 0A 0C 0E 10 12
            14 16 18 1A 1C 00 00 00 00 00 00
            00 00 00 00 00 00 00 00 00 00 1D
            1E 1F 20 21 22 24 26 28 29 2A 1C
            18 16 14 13 12 10 0F 0C 0A 08 06
            04 02 00 00 00 00 00 00 00 00 00
            00 00 00 00 00 00 00 00 9C 01];
        goodix,cfg-group2 = [
            48 D0 02 00 05 05 75 01 01 0F 24
            0F 64 3C 03 05 00 00 00 02 00 00
            00 16 19 1C 14 8C 0E 0E 24 00 31
            0D 00 00 00 83 33 1D 00 41 00 00
            3C 0A 14 08 0A 00 2B 1C 3C 94 D5
            03 08 00 00 04 93 1E 00 82 23 00
            74 29 00 69 2F 00 5F 37 00 5F 20
            40 60 00 F0 40 30 55 50 27 00 00
            00 00 00 00 00 00 00 00 00 00 00
            00 00 00 00 00 00 00 14 19 00 00
            50 50 02 04 06 08 0A 0C 0E 10 12
            14 16 18 1A 1C 00 00 00 00 00 00
            00 00 00 00 00 00 00 00 00 00 1D
            1E 1F 20 21 22 24 26 28 29 2A 1C
            18 16 14 13 12 10 0F 0C 0A 08 06
            04 02 00 00 00 00 00 00 00 00 00
            00 00 00 00 00 00 00 00 3C 01];
    };

Thanks,

Khagesh