GT911 wrong X/Y resolutions

97 views
Skip to first unread message

mr.j...@gmail.com

unread,
Dec 1, 2020, 10:02:31 AM12/1/20
to linux-sunxi

Hello, currently i am working on GT911, 7 inch touchscreen for OrangePi Plus2E,  i can successfully work with I2C bus with no problem and successfully assigned INT and RST pins and touches are being detected but it is reporting wrong X/Y values.
I am using this driver from GOODIX https://github.com/goodix/gt9xx_driver_android
I am using this configuration array which is 800*480 and i want this resolution, max X value is reaching 360 and Y is 600, I tried to manipulate the second to fifth Byte values which are responsible for X/Y axis resolutions but with no luck.
here is my array, i would be glad if i got some help, many thanks.

#define CTP_CFG_GROUP0 {\
   0x43,0x20,0x03,0xE0,0x01,0x0A,0x0D,0x00,0x01,0x2F,\
   0x14,0x0F,0x37,0x28,0x03,0x05,0x00,0x00,0x00,0x00,\
   0x00,0x00,0x00,0x18,0x1A,0x1E,0x14,0x8C,0x2E,0x0E,\
   0x3F,0x3D,0x48,0x09,0x00,0x00,0x00,0xBA,0x02,0x1D,\
   0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
   0x00,0x1E,0x5A,0x94,0xC5,0x02,0x08,0x00,0x00,0x04,\
   0xEE,0x21,0x00,0xC6,0x29,0x00,0xA1,0x34,0x00,0x7C,\
   0x41,0x00,0x6E,0x51,0x00,0x64,0x00,0x00,0x00,0x00,\
   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
   0x00,0x00,0x02,0x04,0x06,0x08,0x0A,0x0C,0x0E,0x10,\
   0x12,0x14,0x16,0x18,0x1A,0x1C,0x00,0x00,0x00,0x00,\
   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
   0x00,0x00,0x00,0x02,0x04,0x06,0x08,0x0A,0x0C,0x0F,\
   0x10,0x12,0x13,0x14,0x16,0x18,0x1C,0x1D,0x1E,0x1F,\
   0x20,0x21,0x22,0x24,0x26,0x28,0x29,0x2A,0x00,0x00,\
   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
   0x00,0x00,0x00,0x00,0x63,0x01}

mr.j...@gmail.com

unread,
Dec 1, 2020, 10:05:33 AM12/1/20
to linux-sunxi

mr.j...@gmail.com

unread,
Dec 1, 2020, 10:13:01 AM12/1/20
to linux-sunxi
Here is my DTS

&i2c0 {
    status = "okay";

    gt9xx@5d {
        compatible = "goodix,gt9xx", "goodix,gt911";
        reg = <0x5d>;

        interrupt-parent = <&pio>;
        interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; /* EINT0 (PA0) */
        irq-gpios = <&pio 0 0 GPIO_ACTIVE_HIGH>; /* PA0 .mul_sel = 0, .pull = 0, .drv_level = 0, .data = 0 INT (PA0) */
        reset-gpios = <&pio 0 1 GPIO_ACTIVE_LOW>; /* RST (PA1) */

        pinctrl-names = "default", "int-output-low","int-output-high", "int-input";
        pinctrl-0 = <>;
        pinctrl-1 = <>;
        pinctrl-2 = <>;
        pinctrl-3 = <>;

        irq-flags   = <2>;
        touchscreen-max-id = <11>;
        touchscreen-size-x = <480>;
        touchscreen-size-y = <800>;
        touchscreen-max-w = <1024>;
        touchscreen-max-p = <1024>;
        goodix,type-a-report = <0>;
        goodix,driver-send-cfg = <0>;
        goodix,create-wr-node = <1>;
        goodix,wakeup-with-reset = <1>;
        goodix,resume-in-workqueue = <1>;
        goodix,int-sync = <0>;
        goodix,swap-x2y = <0>;
        goodix,slide-wakeup = <0>;
        goodix,esd-protect = <0>;
        goodix,auto-update = <0>;
        goodix,auto-update-cfg = <0>;
        goodix,power-off-sleep = <1>;
        goodix,pen-suppress-finger = <0>;
};
Reply all
Reply to author
Forward
0 new messages