<?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: Device tree binding: can not make work my touch device in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637682#M97190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antoli,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please clear some of this things. In earlier your reply you said:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="background-color: #ffffff; color: #51626f;"&gt;I think there is a confusion. The driver that I use is an older an simpler version, is the one that I attached on the tar.gz file. I'm NOT using the linked one on github, which is the master version, because that doesn't seems to perform better (reset pin stays always high).&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Now you are saying that you are using the driver from&amp;nbsp;&amp;nbsp;&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2Ftorvalds%2Flinux%2Fblob%2Fmaster%2Fdrivers%2Finput%2Ftouchscreen%2Fgoodix.c" rel="nofollow" style="color: #5e89c1; border: 0px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;linux/goodix.c at master · torvalds/linux · GitHub&lt;/A&gt;&amp;nbsp;link. Because if you are using the driver from this link then&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;device_reset()&lt;/EM&gt;&lt;/STRONG&gt; function which you have shared in the patch doesn't have any meaning.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Anyways you need to print the gpio number&amp;nbsp;&lt;EM style="color: #333333;"&gt;ts-&amp;gt;gpiod_rst = gpiod;. &lt;/EM&gt;&lt;SPAN style="color: #333333;"&gt;Other it will print some garbage value.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Vinod&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jan 2017 16:50:09 GMT</pubDate>
    <dc:creator>vinodmaverickr0</dc:creator>
    <dc:date>2017-01-26T16:50:09Z</dc:date>
    <item>
      <title>Device tree binding: can not make work my touch device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637667#M97175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;I have a Goodix touch device that uses i2c interface. This is the &lt;A href="https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/input/touchscreen/goodix.txt" rel="nofollow noreferrer"&gt;doc&lt;/A&gt; on how to bind it.&lt;/P&gt;&lt;P&gt;And this my node:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; i2cmux {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;compatible = "i2c-mux-gpio";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;mux-gpios = &amp;lt;&amp;amp;gpio1 2 0&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;i2c-parent = &amp;lt;&amp;amp;i2c1&amp;gt;;&lt;P&gt;&lt;/P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;i2c@0 {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;reg = &amp;lt;0&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;#size-cells = &amp;lt;0&amp;gt;;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*my node*/&lt;/P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gt9271@XX {&lt;BR /&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; compatible = "goodix,gt9271";&lt;BR /&gt;#if GOODIX_5D&lt;BR /&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; reg = &amp;lt;0x5d&amp;gt;;&lt;BR /&gt;#else&lt;BR /&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; reg = &amp;lt;0x14&amp;gt;;&lt;BR /&gt;#endif&lt;BR /&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; interrupt-parent = &amp;lt;&amp;amp;gpio1&amp;gt;;&lt;BR /&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; interrupts = &amp;lt;4 0&amp;gt;;&lt;BR /&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; irq-gpios = &amp;lt;&amp;amp;gpio1 4 0&amp;gt;;&lt;BR /&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; resets = &amp;lt;&amp;amp;lcd_reset&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/DIV&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;DIV class=""&gt;The driver loads correctly, &lt;SPAN style="text-decoration: line-through;"&gt;the reset sequence is OK too&lt;/SPAN&gt;, but there are no interrupts generation when I touch the screen. So I suspect if my device tree binding could be wrong. How should I set the &lt;CODE&gt;0&lt;/CODE&gt; value of &lt;CODE&gt;interrupts&lt;/CODE&gt; and &lt;CODE&gt;irq-gpios&lt;/CODE&gt; properties? The INT pin is connected to GPIO4, which is configured as input and is on HIGH level by default.&amp;nbsp; &lt;CODE&gt;I've tried different combinations (0 0, 0 1, 1 0, 1 1) but all remains the same. &lt;/CODE&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 16:21:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637667#M97175</guid>
      <dc:creator>aveselinov</dc:creator>
      <dc:date>2017-01-23T16:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Device tree binding: can not make work my touch device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637668#M97176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that you are missing a lot of things in your device tree. Are&amp;nbsp;you parsing&amp;nbsp;&lt;STRONG&gt;"&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;irq-gpios" &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;value in your device driver. Till the point it not parsed and handled in your driver you can not see the interrupt. Apart from that there are a lot of parameters (like ADC conversion value, sample avrg controll and &amp;nbsp;touch detect intr delay) are required for the interrupt generation. So better have a look in your driver.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;A class="link-titled" href="http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/input/touchscreen/goodix.txt" title="http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/input/touchscreen/goodix.txt"&gt;Linux/Documentation/devicetree/bindings/input/touchscreen/goodix.txt - Linux Cross Reference - Free Electrons&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Feel free for any help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 17:21:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637668#M97176</guid>
      <dc:creator>vinodmaverickr0</dc:creator>
      <dc:date>2017-01-23T17:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Device tree binding: can not make work my touch device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637669#M97177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anatoli&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can check various touch configurations on&lt;/P&gt;&lt;P&gt;&lt;A href="http://boundarydevices.com/configuring-i-mx6-machines-different-screens-nitrogen6x-sabre-lite/"&gt;http://boundarydevices.com/configuring-i-mx6-machines-different-screens-nitrogen6x-sabre-lite/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also description "GPIO4" sounds ambiguous, one can check what pad really connected interrupt,&lt;/P&gt;&lt;P&gt;as code uses "gpio1 4".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 23:24:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637669#M97177</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-01-23T23:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Device tree binding: can not make work my touch device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637670#M97178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't post the entire device tree, only the relevant part I though. &lt;/P&gt;&lt;P&gt;BTw, I've "lied" about the initialization sequence, it isn't OK, doesn't follow the sequence described on the datasheet. So I will try to fix that first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 09:29:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637670#M97178</guid>
      <dc:creator>aveselinov</dc:creator>
      <dc:date>2017-01-24T09:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Device tree binding: can not make work my touch device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637671#M97179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anatoli,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understood. I seems that you may have to modify the driver source code as well for these parameters ( which you have added in the dts file). Pls ask if you need any help for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 15:04:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637671#M97179</guid>
      <dc:creator>vinodmaverickr0</dc:creator>
      <dc:date>2017-01-24T15:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Device tree binding: can not make work my touch device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637672#M97180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What modifications do you mean? About adding reset during initialization phase? My vendor is helping me too and we added that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm attaching you the driver + dtsi files with the corresponding patches applied. Also the initialization phase described on datasheet. The RESET pin does the falling edge for 10ms, but INT pin remains always HIGH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your help, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: The linux branch that I use: &lt;A class="link-titled" href="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/?h=imx_4.1.15_1.0.0_ga" title="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/?h=imx_4.1.15_1.0.0_ga"&gt;linux-2.6-imx.git - Freescale i.MX Linux Tree&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 08:29:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637672#M97180</guid>
      <dc:creator>aveselinov</dc:creator>
      <dc:date>2017-01-25T08:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Device tree binding: can not make work my touch device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637673#M97181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anatoli,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not seeing patch file of driver and dtsi file.&lt;/P&gt;&lt;P&gt;May be you forget to attach the applied patch. Anyways I went through linux branch on which you are working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is your driver.&lt;/P&gt;&lt;P&gt;drivers/input/touchscreen/goodix.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I can not see any parsing of the device tree variable in this code. So you may need to apply some patch on this driver. You can share the patch (if it is not confidential) so that we can have a look and proceed further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 14:34:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637673#M97181</guid>
      <dc:creator>vinodmaverickr0</dc:creator>
      <dc:date>2017-01-25T14:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Device tree binding: can not make work my touch device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637674#M97182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uh strange? Here is the link of the attached file &lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/servlet/JiveServlet/download/2004-443218-871282-399211/driver_and_dtsi.tar.gz" title="https://community.nxp.com/servlet/JiveServlet/download/871282-1-399211/driver_and_dtsi.tar.gz"&gt;https://community.nxp.com/servlet/JiveServlet/download/871282-1-399211/driver_and_dtsi.tar.gz&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you mind to explain what u mean with parsing the device tree? How do u know that is not parsing it? I only know this about device trees &lt;A class="link-titled" href="http://elinux.org/Device_Tree_Usage" title="http://elinux.org/Device_Tree_Usage"&gt;Device Tree Usage - eLinux.org&lt;/A&gt;&amp;nbsp; and nothing about modules kernel &amp;gt;.&amp;lt;. I just can guess that the "main" function is the one called _probe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;btw, that linux repository is the one that my vendors linux is based on. So there are missing patches and .dtsi files. Here is their (experimental) yocto project: &lt;A class="link-titled" href="https://github.com/compulab-yokneam/meta-compulab" title="https://github.com/compulab-yokneam/meta-compulab"&gt;GitHub - compulab-yokneam/meta-compulab&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And another thing. I also tested with the &lt;A href="https://github.com/torvalds/linux/blob/master/drivers/input/touchscreen/goodix.c"&gt;master version of the driver&lt;/A&gt;. Same result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 15:48:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637674#M97182</guid>
      <dc:creator>aveselinov</dc:creator>
      <dc:date>2017-01-25T15:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Device tree binding: can not make work my touch device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637675#M97183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anatoli,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry to say; but still you are missing a lot of thing. In your patch file your calling&amp;nbsp;&lt;STRONG&gt;device_reset(&amp;amp;client-&amp;gt;dev),&amp;nbsp;&lt;/STRONG&gt;but I am not seeing any function definitions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see from the snapshot that firstly you will get the interrupt before device device go out of reset. So your code sequence be like that only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parsing the device tree means if you are making any entry in the device tree (like in your case "&lt;STRONG&gt;resets = &amp;lt;&amp;amp;lcd_reset&amp;gt;;&lt;/STRONG&gt;"); so have to parse the same thing in your driver as well. Otherwise your device tree changes will not be reflect in driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see in the link &amp;nbsp;&lt;A class="link-titled" href="https://github.com/torvalds/linux/blob/master/drivers/input/touchscreen/goodix.c" title="https://github.com/torvalds/linux/blob/master/drivers/input/touchscreen/goodix.c"&gt;linux/goodix.c at master · torvalds/linux · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That they are parsing the device tree changes (As I have mentioned in the last mail ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can trace the function calling starting from probe function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;#&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d; background-color: #ffffff;"&gt;define&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #795da3; background-color: #ffffff;"&gt;GOODIX_GPIO_INT_NAME&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #183691; background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #183691;"&gt;"&lt;/SPAN&gt;irq&lt;SPAN class="" style="color: #183691;"&gt;"&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt; //Matching to string in device tree&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #183691; background-color: #ffffff;"&gt;&lt;SPAN style="color: #333333;"&gt;#&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;define&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #795da3;"&gt;GOODIX_GPIO_RST_NAME&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;reset&lt;SPAN class=""&gt;" &amp;nbsp; //Matching to string in device tree&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;error = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #0086b3; background-color: #ffffff;"&gt;goodix_get_gpio_config&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;(ts);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;static&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;int&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #795da3;"&gt;goodix_get_gpio_config&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;struct&lt;/SPAN&gt;&lt;SPAN&gt; goodix_ts_data *ts){&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;SPAN class="" style="color: #969896; background-color: #ffffff;"&gt;/*&lt;/SPAN&gt;&lt;SPAN style="color: #969896; background-color: #ffffff;"&gt; Get the interrupt GPIO pin number &lt;/SPAN&gt;&lt;SPAN class="" style="color: #969896; background-color: #ffffff;"&gt;*/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #333333;"&gt;gpiod = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #0086b3;"&gt;devm_gpiod_get_optional&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;(dev, GOODIX_GPIO_RST_NAME, GPIOD_IN);&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #333333;"&gt;/*&lt;SPAN style="color: #969896; background-color: #ffffff;"&gt; Get the reset line GPIO pin number &lt;/SPAN&gt;&lt;SPAN class="" style="color: #969896; background-color: #ffffff;"&gt;*/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="" style="color: #969896; background-color: #ffffff;"&gt;&lt;STRONG&gt;gpiod = &lt;SPAN class="" style="color: #0086b3;"&gt;devm_gpiod_get_optional&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #333333;"&gt;&lt;STRONG&gt;(dev, GOODIX_GPIO_RST_NAME, GPIOD_IN);&lt;/STRONG&gt; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN&gt;Please add the missing code from this link.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN&gt;Vinod&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 16:17:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637675#M97183</guid>
      <dc:creator>vinodmaverickr0</dc:creator>
      <dc:date>2017-01-25T16:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Device tree binding: can not make work my touch device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637676#M97184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;device_reset&lt;/STRONG&gt;() function is defined on &amp;lt;linux/reset.h&amp;gt;. I know is executed because I can see it through oscilloscope that the reset pin does a falling edge during 10ms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there is a confusion. The driver that I use is an older an simpler version, is the one that I attached on the tar.gz file. I'm NOT using the linked one on github, which is the master version, because that doesn't seems to perform better (reset pin stays always high).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as you said there is defined&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;#&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d; background-color: #ffffff;"&gt;define&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #795da3; background-color: #ffffff;"&gt;GOODIX_GPIO_INT_NAME&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #183691; background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #183691;"&gt;"&lt;/SPAN&gt;irq&lt;SPAN class="" style="color: #183691;"&gt;"&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt; //Matching to string in device tree&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #183691; background-color: #ffffff;"&gt;&lt;SPAN style="color: #333333;"&gt;#&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;define&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #795da3;"&gt;GOODIX_GPIO_RST_NAME&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;reset&lt;SPAN class=""&gt;" &amp;nbsp; //Matching to string in device tree&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #183691; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and possibly that's the reason it isn't working because I'm not matching the strings? Where on the device tree do I specify these strings?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 07:56:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637676#M97184</guid>
      <dc:creator>aveselinov</dc:creator>
      <dc:date>2017-01-26T07:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Device tree binding: can not make work my touch device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637677#M97185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I understand it now. As it's said on gpio.txt, the strings are specified by defining the property like this &amp;lt;name&amp;gt;-gpios on the device tree. It seems that the "older" version driver that I'm using it isn't specifying a name for INT and RESET pins.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, if I want to use the master version of the driver, as the driver is looking for "irq" and "reset" then on my device tree I should have: irq-gpios and reset-gpios. I realiaze that goodix.txt was telling me that already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So... This is what I have now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gt9271@XX {&lt;BR /&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; compatible = "goodix,gt9271";&lt;BR /&gt;#if GOODIX_5D&lt;BR /&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; reg = &amp;lt;0x5d&amp;gt;;&lt;BR /&gt;#else&lt;BR /&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; reg = &amp;lt;0x14&amp;gt;;&lt;BR /&gt;#endif&lt;BR /&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; interrupt-parent = &amp;lt;&amp;amp;gpio1&amp;gt;;&lt;BR /&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; interrupts = &amp;lt;4 0&amp;gt;;&lt;BR /&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; irq-gpios = &amp;lt;&amp;amp;gpio1 4 GPIO_ACTIVE_HIGH&amp;gt;;&lt;BR /&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; reset-gpios = &amp;lt;&amp;amp;pca9555 11 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&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;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is what the driver is telling me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@cm-fx6:~# dmesg | grep Goodix&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.781898] Goodix-TS 3-0014: I2C Address: 0x14&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.781968] Goodix-TS 3-0014: Failed to get reset GPIO: -16&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.781986] Goodix-TS: probe of 3-0014 failed with error -16&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error 16 means the resource is bussy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there is a conflict with &amp;lt;&amp;amp;pca9555 11&amp;gt; gpio. Because that same gpio is used on another node too:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mipi_dsi_reset: mipi-dsi-reset {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;compatible = "gpio-reset";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;reset-gpios = &amp;lt;&amp;amp;pca9555 11 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;reset-delay-us = &amp;lt;100&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;gpio-can-sleep;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;#reset-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try to comment that node then the driver fails at I2C test. Do I need mipi-dsi-reset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.640186] Goodix-TS 3-0014: I2C Address: 0x14&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.743896] Goodix-TS 3-0014: i2c test failed attempt 1: -5&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.773092] Goodix-TS 3-0014: i2c test failed attempt 2: -5&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.802926] Goodix-TS 3-0014: I2C communication failure: -5&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.807224] Goodix-TS: probe of 3-0014 failed with error -5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 09:09:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637677#M97185</guid>
      <dc:creator>aveselinov</dc:creator>
      <dc:date>2017-01-26T09:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Device tree binding: can not make work my touch device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637678#M97186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anatoli,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think string b/w your device tree and driver is not matching. Can you pass the string "reset" instead of "reset-gpios" from your device tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 10:10:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637678#M97186</guid>
      <dc:creator>vinodmaverickr0</dc:creator>
      <dc:date>2017-01-26T10:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Device tree binding: can not make work my touch device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637679#M97187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then doesn't fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@cm-fx6:~dmesg | grep Goodix0 &lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.695933] Goodix-TS 3-0014: I2C Address: 0x14&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.696788] Goodix-TS 3-0014: ID 9271, version: 1020&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.712163] Goodix-TS 3-0014: Invalid config, using defaults&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.723478] input: Goodix Capacitive TouchScreen as /devices/soc0/soc/2100000.aips-bus/21a0000.i2c/i2c-0/i2c-3/3-0014/input/input0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But INT and RESET pin remains HIGH always.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 10:51:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637679#M97187</guid>
      <dc:creator>aveselinov</dc:creator>
      <dc:date>2017-01-26T10:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Device tree binding: can not make work my touch device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637680#M97188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can track it from the code. It is very simple. But your driver is parsing the device changes successfully. You can print the reset pin and IRQ pin number in your driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want any further help then you need to share the driver as well as device tree file; otherwise it will be difficult for me to advise for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 14:59:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637680#M97188</guid>
      <dc:creator>vinodmaverickr0</dc:creator>
      <dc:date>2017-01-26T14:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Device tree binding: can not make work my touch device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637681#M97189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;About my last question, yes I need mipi-dsi-reset node, if I comment it out it causes the I2C failure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The driver is this &lt;A class="link-titled" href="https://github.com/torvalds/linux/blob/master/drivers/input/touchscreen/goodix.c" title="https://github.com/torvalds/linux/blob/master/drivers/input/touchscreen/goodix.c"&gt;linux/goodix.c at master · torvalds/linux · GitHub&lt;/A&gt; (I'm referring it as master version)&lt;/P&gt;&lt;P&gt;And the .dtsi files that I'm modifying are on the tarbal that I attached before &lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/servlet/JiveServlet/download/2004-443218-871282-399211/driver_and_dtsi.tar.gz" title="https://community.nxp.com/servlet/JiveServlet/download/2004-443218-871282-399211/driver_and_dtsi.tar.gz"&gt;https://community.nxp.com/servlet/JiveServlet/download/2004-443218-871282-399211/driver_and_dtsi.tar.gz&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On goodix_get_gpio_config function I try to print the gpio numbers like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dev_dbg(&amp;amp;ts-&amp;gt;client-&amp;gt;dev,"int: %d",ts-&amp;gt;gpiod_int);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;dev_dbg(&amp;amp;ts-&amp;gt;client-&amp;gt;dev,"reset: %d",ts-&amp;gt;gpiod_rst);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I get:&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.612677] Goodix-TS 3-0014: int: -1474916816&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.619639] Goodix-TS 3-0014: reset: 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it make any sense these numbers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 15:55:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637681#M97189</guid>
      <dc:creator>aveselinov</dc:creator>
      <dc:date>2017-01-26T15:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Device tree binding: can not make work my touch device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637682#M97190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antoli,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please clear some of this things. In earlier your reply you said:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="background-color: #ffffff; color: #51626f;"&gt;I think there is a confusion. The driver that I use is an older an simpler version, is the one that I attached on the tar.gz file. I'm NOT using the linked one on github, which is the master version, because that doesn't seems to perform better (reset pin stays always high).&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Now you are saying that you are using the driver from&amp;nbsp;&amp;nbsp;&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2Ftorvalds%2Flinux%2Fblob%2Fmaster%2Fdrivers%2Finput%2Ftouchscreen%2Fgoodix.c" rel="nofollow" style="color: #5e89c1; border: 0px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;linux/goodix.c at master · torvalds/linux · GitHub&lt;/A&gt;&amp;nbsp;link. Because if you are using the driver from this link then&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;device_reset()&lt;/EM&gt;&lt;/STRONG&gt; function which you have shared in the patch doesn't have any meaning.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Anyways you need to print the gpio number&amp;nbsp;&lt;EM style="color: #333333;"&gt;ts-&amp;gt;gpiod_rst = gpiod;. &lt;/EM&gt;&lt;SPAN style="color: #333333;"&gt;Other it will print some garbage value.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Vinod&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 16:50:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637682#M97190</guid>
      <dc:creator>vinodmaverickr0</dc:creator>
      <dc:date>2017-01-26T16:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Device tree binding: can not make work my touch device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637683#M97191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry about that. That was before, now I'm using the driver on github without patches.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&amp;nbsp;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Anyways you need to print the gpio number&amp;nbsp;&lt;SPAN style="color: #333333;"&gt;&lt;EM&gt;ts-&amp;gt;gpiod_rst = gpiod;. &lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;Other it will print some garbage value.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That's exactly what I did. Notice:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dev_dbg(&amp;amp;ts-&amp;gt;client-&amp;gt;dev,"int: %d",&lt;STRONG&gt; ts-&amp;gt;gpiod_int&lt;/STRONG&gt;);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dev_dbg(&amp;amp;ts-&amp;gt;client-&amp;gt;dev,"reset: %d", &lt;STRONG&gt;ts-&amp;gt;gpiod_rst&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I'm getting this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.612677] Goodix-TS 3-0014: int: -1474916816&lt;BR /&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.619639] Goodix-TS 3-0014: reset: 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 07:49:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637683#M97191</guid>
      <dc:creator>aveselinov</dc:creator>
      <dc:date>2017-01-27T07:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Device tree binding: can not make work my touch device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637684#M97192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;gpiod_rst is pointer of structure type. So you need to print it proper way. I also went through your device tree patch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;+ gt9271@XX {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;+ compatible = "goodix,gt9271";&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;+#if GOODIX_5D&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;+ reg = &amp;lt;0x5d&amp;gt;;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;+#else&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;+ reg = &amp;lt;0x14&amp;gt;;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;+#endif&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;+ interrupt-parent = &amp;lt;&amp;amp;gpio1&amp;gt;;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;+ interrupts = &amp;lt;4 0&amp;gt;;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;+ irq-gpios = &amp;lt;&amp;amp;gpio1 4 0&amp;gt;;&lt;/EM&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;+ resets = &amp;lt;&amp;amp;lcd_reset&amp;gt;; &amp;nbsp; //Pls change it&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;+ };&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;So can you please pass the reset like&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;reset = &amp;lt;&amp;amp;gpio1 1 0&amp;gt;;&lt;/STRONG&gt; &amp;nbsp; ///Please change the gpio1 to your GPIO pad as well as the offset value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is expected that if you device will not come out of the reset; INTR pin will remain high (pls check the seq1.png which you share earlier).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 12:02:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637684#M97192</guid>
      <dc:creator>vinodmaverickr0</dc:creator>
      <dc:date>2017-01-27T12:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Device tree binding: can not make work my touch device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637685#M97193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reset = &amp;lt;&amp;amp;pca9555 11 GPIO_ACTIVE_LOW&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(pca9555 is an auxiliary gpio controller)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No errors from driver but neither INT nor RESET pin behaves as described on datasheet (the .png that I attached you) during the &lt;STRONG&gt;initialization phase.&lt;/STRONG&gt; What I'm doing is checking the pin signal with oscilloscope&amp;nbsp; while I reset my board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have noticed, there is a &lt;SPAN class=""&gt;goodix_reset function on the driver that programs the INT and RESET pin to perform the initialization phase as described on datasheet. And it's not doing it. That's the issue. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 14:16:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637685#M97193</guid>
      <dc:creator>aveselinov</dc:creator>
      <dc:date>2017-01-27T14:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Device tree binding: can not make work my touch device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637686#M97194</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 went through your driver code. So it is using new method of accessing the GPIO&amp;nbsp;&lt;STRONG&gt;devm_gpiod_get_optional.&amp;nbsp;&lt;/STRONG&gt;So you need to pass the&amp;nbsp;&lt;STRONG&gt;reset-gpios&lt;/STRONG&gt;&amp;nbsp; from your device tree.&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;goodix_reset&lt;/STRONG&gt; function is not calling it means there is some issue on &lt;STRONG&gt;goodix_get_gpio_config(ts)&lt;/STRONG&gt; function which will get the reset and irq pin from the device tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 06:57:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Device-tree-binding-can-not-make-work-my-touch-device/m-p/637686#M97194</guid>
      <dc:creator>vinodmaverickr0</dc:creator>
      <dc:date>2017-01-31T06:57:28Z</dc:date>
    </item>
  </channel>
</rss>

