<?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: How to set the bitmask for GPIO input correctly in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-the-bitmask-for-GPIO-input-correctly/m-p/844461#M129430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;settings MX6QDL_PAD_EIM_A17__GPIO2_IO21&amp;nbsp; 0xb0b1 means value&lt;/P&gt;&lt;P&gt;of IOMUXC_SW_PAD_CTL_PAD_EIM_ADDR17 described in&lt;/P&gt;&lt;P&gt;sect.36.4.253 Pad Control Register (IOMUXC_SW_PAD_CTL_PAD_EIM_ADDR17)&lt;/P&gt;&lt;P&gt;i.MX6DQ Reference Manual. One can disconnect touch INT-pin and check if it toggles,&lt;/P&gt;&lt;P&gt;probably additional i2c initialization is needed for gt911.&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>Thu, 06 Dec 2018 23:41:10 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-12-06T23:41:10Z</dc:date>
    <item>
      <title>How to set the bitmask for GPIO input correctly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-the-bitmask-for-GPIO-input-correctly/m-p/844460#M129429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on a project where a goodix gt911 touchscreen is connected to an imx6q SOM. The communication via I2C is working properly. It is found by the kernel driver and initialized. But the INT-pin connected to GPIO2_IO21 is always low. To me it is not clear witch value of MX6QDL_PAD_EIM_A17__GPIO2_IO21 (currently ) 0xb0b1 has to be set. There is no external pull-up or -down resistor in the line and it is directly connected. My set up for the device tree is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;touch: gt911@5d {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; compatible = "goodix,gt911";&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; reg = &amp;lt;0x5d&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; pinctrl-names = "default";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; inctrl-0 = &amp;lt;&amp;amp;pinctrl_goodix&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; interrupt-parent = &amp;lt;&amp;amp;gpio2&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; interrupts = &amp;lt;21 IRQ_TYPE_EDGE_FALLING&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; //irq-gpios = &amp;lt;&amp;amp;gpio2 21 GPIO_ACTIVE_HIGH&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; //reset-gpios =&amp;lt;&amp;amp;gpio0 16 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; //reset = &amp;lt;&amp;amp;lcd_reset&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; status = "okay";&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pinctrl_goodix: gt911 {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; fsl,pins = &amp;lt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MX6QDL_PAD_EIM_A17__GPIO2_IO21&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0xb0b1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody give me a hint where to look for the solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2018 14:24:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-the-bitmask-for-GPIO-input-correctly/m-p/844460#M129429</guid>
      <dc:creator>sebastian_krahl</dc:creator>
      <dc:date>2018-12-06T14:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the bitmask for GPIO input correctly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-the-bitmask-for-GPIO-input-correctly/m-p/844461#M129430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;settings MX6QDL_PAD_EIM_A17__GPIO2_IO21&amp;nbsp; 0xb0b1 means value&lt;/P&gt;&lt;P&gt;of IOMUXC_SW_PAD_CTL_PAD_EIM_ADDR17 described in&lt;/P&gt;&lt;P&gt;sect.36.4.253 Pad Control Register (IOMUXC_SW_PAD_CTL_PAD_EIM_ADDR17)&lt;/P&gt;&lt;P&gt;i.MX6DQ Reference Manual. One can disconnect touch INT-pin and check if it toggles,&lt;/P&gt;&lt;P&gt;probably additional i2c initialization is needed for gt911.&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>Thu, 06 Dec 2018 23:41:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-the-bitmask-for-GPIO-input-correctly/m-p/844461#M129430</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-12-06T23:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the bitmask for GPIO input correctly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-the-bitmask-for-GPIO-input-correctly/m-p/844462#M129431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your reply. I've checked the pad-control according to your reference in the imx documentation. In my opinion the 0x1b0b1 should be right. Now I've attached a pull up resistor but it keeps pulling low, until I send the cpu to shutdown than again the signal of interrupt is fine. I've no idea what could cause that behaviour. If the driver is not loaded the pad is also tied down to ground.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2018 14:30:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-the-bitmask-for-GPIO-input-correctly/m-p/844462#M129431</guid>
      <dc:creator>sebastian_krahl</dc:creator>
      <dc:date>2018-12-07T14:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the bitmask for GPIO input correctly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-the-bitmask-for-GPIO-input-correctly/m-p/844463#M129432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since INT-pin is driven from gt911, seems it is configured incorrectly,&lt;/P&gt;&lt;P&gt;one can read its registers and check with its datasheet.&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>Sat, 08 Dec 2018 03:22:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-the-bitmask-for-GPIO-input-correctly/m-p/844463#M129432</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-12-08T03:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the bitmask for GPIO input correctly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-the-bitmask-for-GPIO-input-correctly/m-p/844464#M129433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've rolled back again, after compiling the driver as a module I've checked the behaviour if no touch is connected. When I export the Pins 53 and 60 and try to set the output values nothing happens on the pin. First I want to debug it electrically and than I can try to debug the driver. Is it possible to change the driving parameters of the port over command line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2018 09:44:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-the-bitmask-for-GPIO-input-correctly/m-p/844464#M129433</guid>
      <dc:creator>sebastian_krahl</dc:creator>
      <dc:date>2018-12-10T09:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the bitmask for GPIO input correctly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-the-bitmask-for-GPIO-input-correctly/m-p/844465#M129434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try memtool for writing to registers&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/388442"&gt;memtool for i.MX6DP processor&lt;/A&gt;&amp;nbsp;&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>Tue, 11 Dec 2018 00:40:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-the-bitmask-for-GPIO-input-correctly/m-p/844465#M129434</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-12-11T00:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the bitmask for GPIO input correctly</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-the-bitmask-for-GPIO-input-correctly/m-p/844466#M129435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all thank you &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/igorpadykov"&gt;igorpadykov&lt;/A&gt; for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end of the story I've used a pin set (int, rst) on the iMX6Q-Module witch is tied to GND by 10k and 3V3 by 10k. Therfore the GT911 was to weak to drive against it. At last I've switched to another set of pins and now it works like a charm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2018 10:42:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-the-bitmask-for-GPIO-input-correctly/m-p/844466#M129435</guid>
      <dc:creator>sebastian_krahl</dc:creator>
      <dc:date>2018-12-11T10:42:25Z</dc:date>
    </item>
  </channel>
</rss>

