<?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: settings for GPIO interrupt</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/settings-for-GPIO-interrupt/m-p/466005#M73404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;now it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;missed calling: set_irq_flags(irq , IRQF_VALID) before request_irq()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jan 2016 10:19:03 GMT</pubDate>
    <dc:creator>christophertele</dc:creator>
    <dc:date>2016-01-07T10:19:03Z</dc:date>
    <item>
      <title>settings for GPIO interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/settings-for-GPIO-interrupt/m-p/466004#M73403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hy all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im workinh with i.mx6 quad on a custom board.kernel 3.19.&lt;/P&gt;&lt;P&gt;i want to use interrupt "104 GPIO4 Combined interrupt indication for GPIO4 signals 0 - 15." calling request_irq() always returns -22 (invalid argument).&lt;/P&gt;&lt;P&gt;this happens for every combined interrupt indication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i can request other interrupts so it should be a problem with the gpios.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my workaround so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. setting PAD MUX to GPIO&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. setting PAD CTRL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Setting gpio direction register as input (GPIOx_GDIR)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4. setting gpio interrupt configuration register as rising edge sensitive (GPIOx_IC2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5. setting gpio interrupt mask register to enable interrupt (GPIOx_IMR)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6. request_irq()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did i miss something?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 10:28:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/settings-for-GPIO-interrupt/m-p/466004#M73403</guid>
      <dc:creator>christophertele</dc:creator>
      <dc:date>2016-01-05T10:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: settings for GPIO interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/settings-for-GPIO-interrupt/m-p/466005#M73404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;now it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;missed calling: set_irq_flags(irq , IRQF_VALID) before request_irq()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 10:19:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/settings-for-GPIO-interrupt/m-p/466005#M73404</guid>
      <dc:creator>christophertele</dc:creator>
      <dc:date>2016-01-07T10:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: settings for GPIO interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/settings-for-GPIO-interrupt/m-p/466006#M73405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it dosnt work. i can request the irq but nothing happens if i trigger the pin.&lt;/P&gt;&lt;P&gt;requested irq shows up in /proc/interrupts but the handler is never called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also i noticed that the "interrupt mask register is reset".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this irq taken by the GPIO controller/driver or something else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 12:22:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/settings-for-GPIO-interrupt/m-p/466006#M73405</guid>
      <dc:creator>christophertele</dc:creator>
      <dc:date>2016-01-13T12:22:36Z</dc:date>
    </item>
  </channel>
</rss>

