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>;
};

On Tuesday, December 1, 2020 at 5:05:33 PM UTC+2 [email protected] wrote:

> My reference to the Programming guide is
>
> https://www.lcd-module.de/fileadmin/eng/pdf/zubehoer/GT911%20Programming%20Guide_20140804_Rev00.pdf
>
> On Tuesday, December 1, 2020 at 5:02:31 PM UTC+2 [email protected] wrote:
>
>>
>> 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}
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/linux-sunxi/3e96934a-e3f7-4d61-8ced-1f023270f3fdn%40googlegroups.com.

Reply via email to