<?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: Trying to register IRQ for GPT2 capture event on IMX6ULL board in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Trying-to-register-IRQ-for-GPT2-capture-event-on-IMX6ULL-board/m-p/807803#M124644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;SPAN style="border: 0px; color: #000000; font-weight: inherit;"&gt;Is there any chip level limitation for FALLING_EDGE interrupt for this particular gpt2 capture2 pin?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what do you mean exactly ?&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>Thu, 05 Jul 2018 23:38:42 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-07-05T23:38:42Z</dc:date>
    <item>
      <title>Trying to register IRQ for GPT2 capture event on IMX6ULL board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Trying-to-register-IRQ-for-GPT2-capture-event-on-IMX6ULL-board/m-p/807800#M124641</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;SPAN style="color: #000000;"&gt;Here is my code snippet&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;EM&gt;platform_get_resource(pdev, IORESOURCE_MEM, 0);&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;EM&gt;devm_ioremap_resource(&amp;amp;pdev-&amp;gt;dev, mem);&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;EM&gt;timer-&amp;gt;irq = platform_get_irq(pdev, 0);&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;EM&gt;devm_request_irq(p_dev, timer-&amp;gt;irq, r_irq_handler, 2, INPUT_PIN_DESC, pdev-&amp;gt;dev.of_node);&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;DTS file:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;EM&gt;gpttest: gpttest@020e8000 {&lt;BR /&gt; compatible = "fsl,imx-gpttest";&lt;BR /&gt; reg = &amp;lt;0x020e8000 0x4000&amp;gt;;&lt;BR /&gt; interrupts = &amp;lt;GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;BR /&gt; clocks = &amp;lt;&amp;amp;clks IMX6UL_CLK_GPT2_BUS&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clks IMX6UL_CLK_GPT2_SERIAL&amp;gt;;&lt;BR /&gt; clock-names = "ipg", "per";&lt;BR /&gt; };&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN style="color: #000000;"&gt;My&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #000000;"&gt;devm_request_irq&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;call is failing here with the&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;following&lt;/SPAN&gt; &lt;SPAN style="color: #000000;"&gt;out&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&lt;EM&gt;genirq: Setting trigger mode 2 for irq 36 failed (irq_chip_set_type_parent+0x0/0x20)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;DRIVER_NAME: probe of 20e8000.gpio failed with error -22&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;I have done some debugging, from the function __irq_set_trigger() in manage.c while validating the chip-&amp;gt;irq_set_type() its returning -22 (invald argument) error&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000000;"&gt;&lt;SPAN&gt;&lt;EM&gt;Queries:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;When I tried to register for IRQ 109, why it is taking as 36?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;Is there any chip level limitation for FALLING_EDGE interrupt for this particular gpt2 capture pin?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;Am I missing anything to register this?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&lt;EM&gt;Thanks,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN&gt;&lt;EM&gt;Phani Movva&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2018 07:13:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Trying-to-register-IRQ-for-GPT2-capture-event-on-IMX6ULL-board/m-p/807800#M124641</guid>
      <dc:creator>phaniteja</dc:creator>
      <dc:date>2018-06-22T07:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to register IRQ for GPT2 capture event on IMX6ULL board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Trying-to-register-IRQ-for-GPT2-capture-event-on-IMX6ULL-board/m-p/807801#M124642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for gpt interrupt example one can look on linux/arch/arm/mach-imx/time.c&lt;/P&gt;&lt;P&gt;&lt;A class="" href="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/mach-imx/time.c?h=imx_4.1.15_1.0.0_ga" title="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/mach-imx/time.c?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;P&gt;It may be used by linux as described in sect.3.3 Timer attached Linux Manual.&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>Tue, 03 Jul 2018 01:32:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Trying-to-register-IRQ-for-GPT2-capture-event-on-IMX6ULL-board/m-p/807801#M124642</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-07-03T01:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to register IRQ for GPT2 capture event on IMX6ULL board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Trying-to-register-IRQ-for-GPT2-capture-event-on-IMX6ULL-board/m-p/807802#M124643</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;I have registered the interrupt in the same way done in&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;linux/arch/arm/mach-imx/time.c. But it didn't solve my issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;struct irqaction *act = &amp;amp;imxtm-&amp;gt;act;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;act-&amp;gt;name = "My Sensor";&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="color: #0000ff;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;act-&amp;gt;flags = IRQF_TRIGGER_FALLING;&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="color: #0000ff;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;act-&amp;gt;handler = r_irq_handler;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;setup_irq(imxtm-&amp;gt;irq, act);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;When I tried to register for falling edge I am getting same error as mentioned in my first post&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #0000ff;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Error:&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="color: #000000; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&amp;nbsp;&lt;EM style="border: 0px; font-weight: inherit;"&gt;genirq: Setting trigger mode 2 for irq 36 failed (irq_chip_set_type_parent+0x0/0x20)&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR style="color: #000000; background-color: #ffffff;" /&gt;&lt;STRONG style="color: #000000; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&lt;EM style="border: 0px; font-weight: inherit;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DRIVER_NAME: probe of 20e8000.gpio failed with error -22&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #0000ff;"&gt;&lt;STRONG style="color: #000000; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I am able to register the interrupt for RISING_EDGE&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;So I would like to know&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Is there any chip level limitation for FALLING_EDGE interrupt for this particular gpt2 capture2 pin?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 11:59:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Trying-to-register-IRQ-for-GPT2-capture-event-on-IMX6ULL-board/m-p/807802#M124643</guid>
      <dc:creator>phaniteja</dc:creator>
      <dc:date>2018-07-04T11:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to register IRQ for GPT2 capture event on IMX6ULL board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Trying-to-register-IRQ-for-GPT2-capture-event-on-IMX6ULL-board/m-p/807803#M124644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;SPAN style="border: 0px; color: #000000; font-weight: inherit;"&gt;Is there any chip level limitation for FALLING_EDGE interrupt for this particular gpt2 capture2 pin?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what do you mean exactly ?&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>Thu, 05 Jul 2018 23:38:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Trying-to-register-IRQ-for-GPT2-capture-event-on-IMX6ULL-board/m-p/807803#M124644</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-07-05T23:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to register IRQ for GPT2 capture event on IMX6ULL board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Trying-to-register-IRQ-for-GPT2-capture-event-on-IMX6ULL-board/m-p/807804#M124645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of using request_irq(), use setup_irq() call as used in&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;linux/arch/arm/mach-imx/time.c.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;For falling edge, need to configure in control register of GPT2.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 11:17:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Trying-to-register-IRQ-for-GPT2-capture-event-on-IMX6ULL-board/m-p/807804#M124645</guid>
      <dc:creator>phaniteja</dc:creator>
      <dc:date>2018-07-16T11:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to register IRQ for GPT2 capture event on IMX6ULL board</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Trying-to-register-IRQ-for-GPT2-capture-event-on-IMX6ULL-board/m-p/807805#M124646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is no limitation for using &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;falling edge&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt; in control register of GPT2.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 00:09:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Trying-to-register-IRQ-for-GPT2-capture-event-on-IMX6ULL-board/m-p/807805#M124646</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-07-17T00:09:17Z</dc:date>
    </item>
  </channel>
</rss>

