<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: Cannot swap touch coordinates orientation</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-swap-touch-coordinates-orientation/m-p/1353215#M181326</link>
    <description>&lt;P&gt;Please help me in fixing the above mentioned issue.&lt;/P&gt;&lt;P&gt;Our work has been delayed because of the touchscreen issue.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Oct 2021 04:15:03 GMT</pubDate>
    <dc:creator>Bhargava</dc:creator>
    <dc:date>2021-10-11T04:15:03Z</dc:date>
    <item>
      <title>Cannot swap touch coordinates orientation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-swap-touch-coordinates-orientation/m-p/1350637#M181067</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using an LCD display (1024x600) with touch controller&amp;nbsp;SSD2543QN10.&lt;/P&gt;&lt;P&gt;There was no driver support for the above mentioned controller by default but I found a reference driver at &lt;A href="https://github.com/patrickhwood/linux/blob/kk4.4.2_1.0.0-ga-uib/drivers/input/touchscreen/ssd2543.c" target="_blank"&gt;https://github.com/patrickhwood/linux/blob/kk4.4.2_1.0.0-ga-uib/drivers/input/touchscreen/ssd2543.c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However my team and I ported that driver to our current kernel version 5.14.&lt;/P&gt;&lt;P&gt;The issue seems like the touch coordinates are reversed i.e., X-axis has [0 - 599] and Y-axis has [0 - 1024].&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;By imagining it seems like it is setting orientation for Portrait mode.&lt;/P&gt;&lt;P&gt;Please help me out in fixing the issue, whether driver needs any change or any other configuration I am missing.&lt;/P&gt;&lt;P&gt;DTS:&lt;/P&gt;&lt;P&gt;ssd2543: ssd2543@48 {&lt;BR /&gt;status = "okay";&lt;BR /&gt;compatible = "solomon,ssd2543-ts";&lt;BR /&gt;reg = &amp;lt;0x48&amp;gt;;&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_captouch&amp;gt;;&lt;BR /&gt;interrupt-parent = &amp;lt;&amp;amp;gpio5&amp;gt;;&lt;BR /&gt;interrupts = &amp;lt;4 IRQ_TYPE_EDGE_FALLING&amp;gt;;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SoC: iMX8MM&lt;/P&gt;&lt;P&gt;Controller data sheet: &lt;A href="https://datasheet.lcsc.com/lcsc/1912111437_Solomon-Systech-SSD2543QN4_C235738.pdf" target="_blank"&gt;https://datasheet.lcsc.com/lcsc/1912111437_Solomon-Systech-SSD2543QN4_C235738.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yocto Dunfel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhargava&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 13:09:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-swap-touch-coordinates-orientation/m-p/1350637#M181067</guid>
      <dc:creator>Bhargava</dc:creator>
      <dc:date>2021-10-05T13:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot swap touch coordinates orientation</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-swap-touch-coordinates-orientation/m-p/1353215#M181326</link>
      <description>&lt;P&gt;Please help me in fixing the above mentioned issue.&lt;/P&gt;&lt;P&gt;Our work has been delayed because of the touchscreen issue.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 04:15:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-swap-touch-coordinates-orientation/m-p/1353215#M181326</guid>
      <dc:creator>Bhargava</dc:creator>
      <dc:date>2021-10-11T04:15:03Z</dc:date>
    </item>
  </channel>
</rss>

