Cannot swap touch coordinates orientation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cannot swap touch coordinates orientation

782 Views
Bhargava
Contributor I

Hi,

I'm using an LCD display (1024x600) with touch controller SSD2543QN10.

There was no driver support for the above mentioned controller by default but I found a reference driver at https://github.com/patrickhwood/linux/blob/kk4.4.2_1.0.0-ga-uib/drivers/input/touchscreen/ssd2543.c

However my team and I ported that driver to our current kernel version 5.14.

The issue seems like the touch coordinates are reversed i.e., X-axis has [0 - 599] and Y-axis has [0 - 1024].

We tried to change the orientation by writing to a register 0x65 (ORIENTATION_REG) but no result varied. Tried with all the possible orientations and still X and Y coordinates did not change.

By imagining it seems like it is setting orientation for Portrait mode.

Please help me out in fixing the issue, whether driver needs any change or any other configuration I am missing.

DTS:

ssd2543: ssd2543@48 {
status = "okay";
compatible = "solomon,ssd2543-ts";
reg = <0x48>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_captouch>;
interrupt-parent = <&gpio5>;
interrupts = <4 IRQ_TYPE_EDGE_FALLING>;

}

 

SoC: iMX8MM

Controller data sheet: https://datasheet.lcsc.com/lcsc/1912111437_Solomon-Systech-SSD2543QN4_C235738.pdf

Yocto Dunfel

 

 

Regards,

Bhargava

 

Labels (1)
0 Kudos
Reply
1 Reply

762 Views
Bhargava
Contributor I

Please help me in fixing the above mentioned issue.

Our work has been delayed because of the touchscreen issue.

0 Kudos
Reply