<?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: GPIO interrupt in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-interrupt/m-p/754891#M117445</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;Please verify the below dts configuration for GPIO interrupt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;gpio1{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;compatible ="fsl,imx6ul-gpio", "fsl,imx35-gpio";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pinctrl-names = "default";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_aferdy&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;afe1rdy{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;label = "AFE1 ADC Ready";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;gpios = &amp;lt;&amp;amp;gpio1 30 8&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;interrupts = &amp;lt;30 IRQ_TYPE_EDGE_RISING&amp;gt;;&lt;BR /&gt;&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;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;afe2rdy{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;label = "AFE2 ADC Ready";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;gpios = &amp;lt;&amp;amp;gpio1 31 8&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;interrupts = &amp;lt;31 IRQ_TYPE_EDGE_RISING&amp;gt;;&lt;BR /&gt;&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;};&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pinctrl_aferdy: afegrp {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;fsl,pins =&amp;lt;&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;MX6UL_PAD_UART5_TX_DATA__GPIO1_IO30&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0x4001b0b0&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;MX6UL_PAD_UART5_RX_DATA__GPIO1_IO31&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0x4001b0b0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whether the above code is good option to enable interrupt to GPIO1_IO30, GPIO1_IO31?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2018 12:29:17 GMT</pubDate>
    <dc:creator>mathew_k_t</dc:creator>
    <dc:date>2018-05-17T12:29:17Z</dc:date>
    <item>
      <title>GPIO interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-interrupt/m-p/754886#M117440</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'm using imx6ull custom board, in that application I need to enable interrupt for two GPIOs.&lt;/P&gt;&lt;P&gt;These two pins are connected to ADC_READY pin of an SPI device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 08:40:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-interrupt/m-p/754886#M117440</guid>
      <dc:creator>mathew_k_t</dc:creator>
      <dc:date>2018-05-15T08:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-interrupt/m-p/754887#M117441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mathew_k_t,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please take a look to the following post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/474144"&gt;https://community.nxp.com/thread/474144&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 16:30:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-interrupt/m-p/754887#M117441</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2018-05-15T16:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-interrupt/m-p/754888#M117442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the response.&lt;/P&gt;&lt;P&gt;From your response, I understand that, we have to write separate driver for normal GPIO interrupts other than button interrupts (gpio-keys).&lt;/P&gt;&lt;P&gt;1. Is that possible to enable and handle interrupt using gpio-mxc?&lt;/P&gt;&lt;P&gt;2. If possible, what should be the dts configuration for that?&lt;/P&gt;&lt;P&gt;3. I have implemented the GPIO using gpio-keys, I'm getting interrupt, but kobject_uevent_env() not sending events to userspace?&lt;/P&gt;&lt;P&gt;4. Using gpio-keys for a normal gpio interrupt, is that a good option? i found issues with debouncing interval.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 05:35:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-interrupt/m-p/754888#M117442</guid>
      <dc:creator>mathew_k_t</dc:creator>
      <dc:date>2018-05-16T05:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-interrupt/m-p/754889#M117443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mathew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you may know, it is not possible to handle interrupts in user space. It is only in kernel space where you can handle them. This is why I made a kernel module to handle the gpio interrupt in the example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the gpio-mxc.c is like an imx architecture HAL for the sysfs. It is not possible to use the functions in gpio.mxc on user space. In such case you may require to create a kernel module to abstarct such functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also take a look to the following links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/430808"&gt;GPIO as interrupt&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/356365"&gt;i.MX6 Device Tree Entry for GPIO based LEDs&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/381277"&gt;Simple GPIO Example - quandry&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Carlos&lt;BR /&gt;NXP Technical Support&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 23:41:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-interrupt/m-p/754889#M117443</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2018-05-16T23:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-interrupt/m-p/754890#M117444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have gone through your links.&lt;/P&gt;&lt;P&gt;Could you help me in &lt;STRONG&gt;kconfig&lt;/STRONG&gt; and &lt;STRONG&gt;makefile&lt;/STRONG&gt; settings for adding &lt;STRONG&gt;intkey&lt;/STRONG&gt; driver?&lt;/P&gt;&lt;P&gt;What about the userspace notification of interrupt? (like &lt;STRONG&gt;kobject_uevent_env&lt;/STRONG&gt;)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 11:15:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-interrupt/m-p/754890#M117444</guid>
      <dc:creator>mathew_k_t</dc:creator>
      <dc:date>2018-05-17T11:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-interrupt/m-p/754891#M117445</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;Please verify the below dts configuration for GPIO interrupt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;gpio1{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;compatible ="fsl,imx6ul-gpio", "fsl,imx35-gpio";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pinctrl-names = "default";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_aferdy&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;afe1rdy{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;label = "AFE1 ADC Ready";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;gpios = &amp;lt;&amp;amp;gpio1 30 8&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;interrupts = &amp;lt;30 IRQ_TYPE_EDGE_RISING&amp;gt;;&lt;BR /&gt;&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;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;afe2rdy{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;label = "AFE2 ADC Ready";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;gpios = &amp;lt;&amp;amp;gpio1 31 8&amp;gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;interrupts = &amp;lt;31 IRQ_TYPE_EDGE_RISING&amp;gt;;&lt;BR /&gt;&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;};&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pinctrl_aferdy: afegrp {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;fsl,pins =&amp;lt;&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;MX6UL_PAD_UART5_TX_DATA__GPIO1_IO30&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0x4001b0b0&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;MX6UL_PAD_UART5_RX_DATA__GPIO1_IO31&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;0x4001b0b0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whether the above code is good option to enable interrupt to GPIO1_IO30, GPIO1_IO31?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2018 12:29:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-interrupt/m-p/754891#M117445</guid>
      <dc:creator>mathew_k_t</dc:creator>
      <dc:date>2018-05-17T12:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-interrupt/m-p/754892#M117446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mathew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the following post I shared the C code of a kernel module and the .dtsi where you can look for &lt;EM&gt;&lt;STRONG&gt;intkey&lt;/STRONG&gt;&lt;/EM&gt; and &lt;EM&gt;&lt;STRONG&gt;pinctrl_key: key&lt;/STRONG&gt;&lt;/EM&gt; nodes which contain the gpio configuration for being used as interrupt. Please note that you can create your own nodes and that may be easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/458270"&gt;Issue with configuring GPIO as an interrupt - i.MX6Q&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Carlos&lt;BR /&gt;NXP Technical Support&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>Fri, 18 May 2018 19:44:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-interrupt/m-p/754892#M117446</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2018-05-18T19:44:37Z</dc:date>
    </item>
  </channel>
</rss>

