<?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: About GPIO interruption in i.MX6SL. in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/About-GPIO-interruption-in-i-MX6SL/m-p/461754#M72569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in this version you can try to request the irq directly.&lt;BR /&gt; all hw-irq number are maped as the same linux numbers.&lt;/P&gt;&lt;P&gt;request_irq(106,...,....,...,...)&lt;/P&gt;&lt;P&gt;watch out for the result. you have to care about flags and dev_id&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Feb 2016 07:23:04 GMT</pubDate>
    <dc:creator>christophertele</dc:creator>
    <dc:date>2016-02-29T07:23:04Z</dc:date>
    <item>
      <title>About GPIO interruption in i.MX6SL.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/About-GPIO-interruption-in-i-MX6SL/m-p/461749#M72564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello. I would like to know the relation of GPIOx_DR and GPIOx_IMR in i.MX6SL.&lt;/P&gt;&lt;P&gt;GPIOx_IMR was all cleared by GPIOx_DR register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Steps]&lt;/P&gt;&lt;P&gt;1. Set GPIO5_IMR = 0x000000c0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // To use the GPIO5[6] &amp;amp; GPIO5[7]&lt;/P&gt;&lt;P&gt;2. Set GPIO5_DR =0x0000f000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Set the 12 to 15 bit&lt;/P&gt;&lt;P&gt;--&amp;gt; As a result, GPIO5_IMR = 0x00000000 (All cleared! masked.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Question]&lt;/P&gt;&lt;P&gt;Why is GPIOx_IMR cleared by setting GPIOx_DR?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BSP:L3.14.28_1.0.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Keita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 05:29:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/About-GPIO-interruption-in-i-MX6SL/m-p/461749#M72564</guid>
      <dc:creator>keitanagashima</dc:creator>
      <dc:date>2016-02-17T05:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: About GPIO interruption in i.MX6SL.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/About-GPIO-interruption-in-i-MX6SL/m-p/461750#M72565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hy! i dont know why GPIOx_DR clears GPIOx_IMR. In my code its not like that. here are the steps i do to setup the GPIOs for IRQ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Mux the pad to GPIO&lt;/P&gt;&lt;P&gt;2. Set direction as input "GPIO direction register (GPIOx_GDIR)"&lt;/P&gt;&lt;P&gt;3. configure "GPIO interrupt configuration registery (GPIOx_ICRy)"&lt;/P&gt;&lt;P&gt;4. maybe the "GPIO edge select register (GPIOx_EDGE_SEL)"&lt;/P&gt;&lt;P&gt;5. request_irq()&lt;/P&gt;&lt;P&gt;6. Enable irq on "GPIO interrupt mask register (GPIO1_IMR)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe its nor the DR (Data Register) that sets your IMR. its better to read the register before writing to make safe that nothing in it is overwritten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 05:56:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/About-GPIO-interruption-in-i-MX6SL/m-p/461750#M72565</guid>
      <dc:creator>christophertele</dc:creator>
      <dc:date>2016-02-17T05:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: About GPIO interruption in i.MX6SL.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/About-GPIO-interruption-in-i-MX6SL/m-p/461751#M72566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Christopher, All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello. Thank you for your reply.&lt;/P&gt;&lt;P&gt;We could get the interrupt by using gpio_to_irq value.&lt;/P&gt;&lt;P&gt;Refer to below link.&lt;/P&gt;&lt;P&gt;&lt;A href="https://lwn.net/Articles/532714/" title="https://lwn.net/Articles/532714/"&gt;GPIO in the kernel: an introduction [LWN.net]&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"gpio_to_irq" got the interrupt number (= No. 294).&amp;nbsp; &lt;/P&gt;&lt;P&gt;And, "gpio_to_irq" passed the interrupt number to request_irq().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Question]&lt;/P&gt;&lt;P&gt;The "gpio_to_irq" got the interrupt number (No.294).&lt;/P&gt;&lt;P&gt;On the other hand, IRQ number from reference manual was No.106!&lt;/P&gt;&lt;P&gt;Could you tell me the mechanism of GPIO interruption?&lt;/P&gt;&lt;P&gt;(Ex, GPIO driver get the interrupt number "294", and convert from "294" to "106" to pass to interrupt controller.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Keita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 04:13:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/About-GPIO-interruption-in-i-MX6SL/m-p/461751#M72566</guid>
      <dc:creator>keitanagashima</dc:creator>
      <dc:date>2016-02-29T04:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: About GPIO interruption in i.MX6SL.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/About-GPIO-interruption-in-i-MX6SL/m-p/461752#M72567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i had the same problem. it wasnt possible for me to to request the "Combined interrupt indication" as mentioned in the reference manual.&lt;/P&gt;&lt;P&gt;maybe this irq is requested "none shared" by the gpio-mxc driver. i dont know. i have chosen a different pin that was not used by gpio-mxc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is a difference between irqs that come direct from the gic "hardware irq" and the irqs from gpio-mxc "software-irqs"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what kernel are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something usefull:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;cat /proc/interrupts &lt;/EM&gt;(shows the used irg lines)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;cat /sys/kernel/debug/irq_domain_mapping&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;- maybe you have to enable this in menuconfig&lt;/P&gt;&lt;P&gt;- its a mapping of hw-irw numbers to the linux-irq numbers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after getting the linux-irq-number from your hardware-irq-number you can use request_irq() directly.&lt;/P&gt;&lt;P&gt;- enable_irq()&lt;/P&gt;&lt;P&gt;- request_irq() (shared)&lt;/P&gt;&lt;P&gt;i thing i could request the irq but i never got my irq handler func called this way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 06:58:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/About-GPIO-interruption-in-i-MX6SL/m-p/461752#M72567</guid>
      <dc:creator>christophertele</dc:creator>
      <dc:date>2016-02-29T06:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: About GPIO interruption in i.MX6SL.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/About-GPIO-interruption-in-i-MX6SL/m-p/461753#M72568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Christopher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;gt; what kernel are you using?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;We use the L3.14.28_1.0.0 for i.MX6SL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Keita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 07:14:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/About-GPIO-interruption-in-i-MX6SL/m-p/461753#M72568</guid>
      <dc:creator>keitanagashima</dc:creator>
      <dc:date>2016-02-29T07:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: About GPIO interruption in i.MX6SL.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/About-GPIO-interruption-in-i-MX6SL/m-p/461754#M72569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in this version you can try to request the irq directly.&lt;BR /&gt; all hw-irq number are maped as the same linux numbers.&lt;/P&gt;&lt;P&gt;request_irq(106,...,....,...,...)&lt;/P&gt;&lt;P&gt;watch out for the result. you have to care about flags and dev_id&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 07:23:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/About-GPIO-interruption-in-i-MX6SL/m-p/461754#M72569</guid>
      <dc:creator>christophertele</dc:creator>
      <dc:date>2016-02-29T07:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: About GPIO interruption in i.MX6SL.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/About-GPIO-interruption-in-i-MX6SL/m-p/461755#M72570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We couldn't get the interruption by irq directly number(106).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;keiita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 08:41:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/About-GPIO-interruption-in-i-MX6SL/m-p/461755#M72570</guid>
      <dc:creator>keitanagashima</dc:creator>
      <dc:date>2016-02-29T08:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: About GPIO interruption in i.MX6SL.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/About-GPIO-interruption-in-i-MX6SL/m-p/461756#M72571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you checked the irq mapping?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what are your flags set in request_irq()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 09:24:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/About-GPIO-interruption-in-i-MX6SL/m-p/461756#M72571</guid>
      <dc:creator>christophertele</dc:creator>
      <dc:date>2016-02-29T09:24:33Z</dc:date>
    </item>
  </channel>
</rss>

