<?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>topic Re: elan touch driver error in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/elan-touch-driver-error/m-p/679829#M104972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look, I am also getting similar elan-touch failure, just want to check did you got any further pointers on your errors ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shrikant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jul 2017 05:24:44 GMT</pubDate>
    <dc:creator>shrikant_bobade</dc:creator>
    <dc:date>2017-07-26T05:24:44Z</dc:date>
    <item>
      <title>elan touch driver error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/elan-touch-driver-error/m-p/679826#M104969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the iMX7 sabre board and we have connected the touch screen to the i2c bus on the EPD interface,&lt;/P&gt;&lt;P&gt;I have updated the device tree imx7d-sdb.dts as per the imx7-sdb-epdc.dtsi as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;i2c3 {&lt;BR /&gt; clock-frequency = &amp;lt;100000&amp;gt;;&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_i2c3&amp;gt;;&lt;BR /&gt; status = "okay";&lt;/P&gt;&lt;P&gt;elan@38 {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_epdc_elan_touch&amp;gt;;&lt;BR /&gt; compatible = "elan,elan-touch";&lt;BR /&gt; reg = &amp;lt;0x38&amp;gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;//Am guessing this would be the slave address?&lt;/STRONG&gt;&lt;BR /&gt; interrupt-parent = &amp;lt;&amp;amp;gpio6&amp;gt;;&lt;BR /&gt; interrupts = &amp;lt;12 IRQ_TYPE_EDGE_FALLING&amp;gt;;&lt;BR /&gt; gpio_elan_cs = &amp;lt;&amp;amp;gpio6 13 0&amp;gt;;&lt;BR /&gt; gpio_elan_rst = &amp;lt;&amp;amp;gpio6 15 0&amp;gt;;&lt;BR /&gt; gpio_intr = &amp;lt;&amp;amp;gpio6 12 0&amp;gt;;&lt;BR /&gt; status = "okay";&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;sii902x: sii902x@39 {&lt;BR /&gt; compatible = "SiI,sii902x";&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_sii902x&amp;gt;;&lt;BR /&gt; interrupt-parent = &amp;lt;&amp;amp;gpio2&amp;gt;;&lt;BR /&gt; interrupts = &amp;lt;13 IRQ_TYPE_EDGE_FALLING&amp;gt;;&lt;BR /&gt; mode_str ="1280x720M@60";&lt;BR /&gt; bits-per-pixel = &amp;lt;16&amp;gt;;&lt;BR /&gt; reg = &amp;lt;0x39&amp;gt;;&lt;BR /&gt; status = "disabled";&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;max17135: max17135@48 {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_max17135&amp;gt;;&lt;BR /&gt; compatible = "maxim,max17135";&lt;BR /&gt; reg = &amp;lt;0x48&amp;gt;;&lt;BR /&gt; status = "okay";&lt;/P&gt;&lt;P&gt;vneg_pwrup = &amp;lt;1&amp;gt;;&lt;BR /&gt; gvee_pwrup = &amp;lt;2&amp;gt;;&lt;BR /&gt; vpos_pwrup = &amp;lt;10&amp;gt;;&lt;BR /&gt; gvdd_pwrup = &amp;lt;12&amp;gt;;&lt;BR /&gt; gvdd_pwrdn = &amp;lt;1&amp;gt;;&lt;BR /&gt; vpos_pwrdn = &amp;lt;2&amp;gt;;&lt;BR /&gt; gvee_&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the below error in the driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elan-touch 2-0038: elan - Read Hello Packet Failed&lt;BR /&gt;elan-touch: probe of 2-0038 failed with error -22&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me understand if the interrupts are set right? if so what could be the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/igorpadykov"&gt;igorpadykov&lt;/A&gt;‌ &lt;A href="https://community.nxp.com/t5/tag/imx7 dts/tg-p"&gt;#imx7 dts&lt;/A&gt;‌ &lt;A href="https://community.nxp.com/t5/tag/imx7d gpio/tg-p"&gt;#imx7d gpio&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 23:51:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/elan-touch-driver-error/m-p/679826#M104969</guid>
      <dc:creator>czur</dc:creator>
      <dc:date>2017-06-30T23:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: elan touch driver error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/elan-touch-driver-error/m-p/679827#M104970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes this is address, in imx7-sdb-epdc.dtsi&amp;nbsp; it used reg = &amp;lt;0x10&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://git.freescale.com/git/cgit.cgi/imx/linux-imx.git/tree/arch/arm/boot/dts/imx7d-sdb-epdc.dtsi?h=imx_4.1.15_2.0.0_ga&amp;amp;id=rel_imx_4.1.15_2.0.0_ga" title="http://git.freescale.com/git/cgit.cgi/imx/linux-imx.git/tree/arch/arm/boot/dts/imx7d-sdb-epdc.dtsi?h=imx_4.1.15_2.0.0_ga&amp;amp;id=rel_imx_4.1.15_2.0.0_ga"&gt;linux-imx.git - i.MX Linux Kernel&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;one can debug this using oscilloscope and driver sources in :&lt;/P&gt;&lt;P&gt;linux/drivers/input/touschscreen/elan_ts.c, hello_packet_handler()&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://git.freescale.com/git/cgit.cgi/imx/linux-imx.git/tree/drivers/input/touchscreen/elan_ts.c?h=imx_4.1.15_2.0.0_ga&amp;amp;id=rel_imx_4.1.15_2.0.0_ga" title="http://git.freescale.com/git/cgit.cgi/imx/linux-imx.git/tree/drivers/input/touchscreen/elan_ts.c?h=imx_4.1.15_2.0.0_ga&amp;amp;id=rel_imx_4.1.15_2.0.0_ga"&gt;linux-imx.git - i.MX Linux Kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Jul 2017 22:59:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/elan-touch-driver-error/m-p/679827#M104970</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-07-02T22:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: elan touch driver error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/elan-touch-driver-error/m-p/679828#M104971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response Igor, I have one other question.&lt;/P&gt;&lt;P&gt;The elan_ts.c has a function which is called during initialization(probe), "elan_touch_poll" which checks if the interrupt is high as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static int __elan_touch_poll(struct i2c_client *client)&lt;BR /&gt;{&lt;BR /&gt; int status = 0, retry = 20;&lt;/P&gt;&lt;P&gt;do {&lt;BR /&gt; status = elan_touch_detect_int_level();&lt;BR /&gt; retry--;&lt;BR /&gt; mdelay(20);&lt;BR /&gt; } while (status == 1 &amp;amp;&amp;amp; retry &amp;gt; 0);&lt;/P&gt;&lt;P&gt;return status == 0 ? 0 : -ETIMEDOUT;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My touch screen has the interrupt as active low, I think even Elan touch screen is the same, but why is the function checking for interrupt to be low during idle?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 16:39:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/elan-touch-driver-error/m-p/679828#M104971</guid>
      <dc:creator>czur</dc:creator>
      <dc:date>2017-07-05T16:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: elan touch driver error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/elan-touch-driver-error/m-p/679829#M104972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look, I am also getting similar elan-touch failure, just want to check did you got any further pointers on your errors ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shrikant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 05:24:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/elan-touch-driver-error/m-p/679829#M104972</guid>
      <dc:creator>shrikant_bobade</dc:creator>
      <dc:date>2017-07-26T05:24:44Z</dc:date>
    </item>
  </channel>
</rss>

