<?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: GPIO as interrupt</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-as-interrupt/m-p/594462#M89335</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi chandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;device tree interrupts are described on p.8 AN5125 Introduction to Device Trees&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Ffiles%2F32bit%2Fdoc%2Fapp_note%2FAN5125.pdf" rel="nofollow" target="_blank"&gt;http://www.nxp.com/files/32bit/doc/app_note/AN5125.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;also gpio is decribed in linux/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.txt&lt;/P&gt;&lt;P&gt;For i.MX6UL usage one can look at "xnur"&amp;nbsp; in ../drivers/input/imx6ul_tsc.c&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fgit.freescale.com%2Fgit%2Fcgit.cgi%2Fimx%2Flinux-2.6-imx.git%2Ftree%2Fdrivers%2Finput%2Ftouchscreen%2Fimx6ul_tsc.c%3Fh%3Dimx_4.1.15_1.0.0_ga" rel="nofollow" target="_blank"&gt;http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/drivers/input/touchscreen/imx6ul_tsc.c?h=imx_4.1.15_1.0.0_ga&lt;/A&gt;&lt;/P&gt;&lt;P&gt;its irq function adc_irq_fn() is invoked by node:&lt;/P&gt;&lt;P&gt;node &amp;amp;tsc {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pinctrl-names = "default";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_tsc&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xnur-gpio = &amp;lt;&amp;amp;gpio1 3 GPIO_ACTIVE_LOW&amp;gt;; &lt;/P&gt;&lt;P&gt;in imx6ul-14x14-evk.dts&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fgit.freescale.com%2Fgit%2Fcgit.cgi%2Fimx%2Flinux-2.6-imx.git%2Ftree%2Farch%2Farm%2Fboot%2Fdts%2Fimx6ul-14x14-evk.dts%3Fh%3Dimx_4.1.15_1.0.0_ga" rel="nofollow" target="_blank"&gt;http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/boot/dts/imx6ul-14x14-evk.dts?h=imx_4.1.15_1.0.0_ga&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Another usage gpio interrupt in FT5x06 touchscreen driver:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-thread-small" data-containerid="2004" data-containertype="14" data-objectid="430812" data-objecttype="1" href="https://community.nxp.com/thread/430812"&gt;https://community.nxp.com/thread/430812&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Based on these examples one can create own driver with gpio interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2016 11:18:32 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2016-07-21T11:18:32Z</dc:date>
    <item>
      <title>GPIO as interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-as-interrupt/m-p/594461#M89334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to make gpio as a interrupt what is the exact device tree notation I have to use.&lt;/P&gt;&lt;P&gt;I am using imx6ulevk board and i want to make GPIO3 22 pin as Interrupt.&lt;/P&gt;&lt;P&gt;these two lines are enough ??&lt;/P&gt;&lt;P&gt;interrupt-parent = &amp;lt;&amp;amp;gpio3&amp;gt;;&lt;/P&gt;&lt;P&gt;interrupts = &amp;lt;22 8&amp;gt;;&lt;/P&gt;&lt;P&gt;where to add these lines in dts file??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and one more doubt what is thee difference between&amp;nbsp; interrupts = &amp;lt;GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH&amp;gt; this line is mentioned in dtsi file&amp;nbsp; and interrupt-parent = &amp;lt;&amp;amp;gpio5&amp;gt;; interrupts = &amp;lt;0 8&amp;gt; these lines are mentioned in dts file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 07:12:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-as-interrupt/m-p/594461#M89334</guid>
      <dc:creator>chandraevolute</dc:creator>
      <dc:date>2016-07-21T07:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO as interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-as-interrupt/m-p/594462#M89335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi chandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;device tree interrupts are described on p.8 AN5125 Introduction to Device Trees&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Ffiles%2F32bit%2Fdoc%2Fapp_note%2FAN5125.pdf" rel="nofollow" target="_blank"&gt;http://www.nxp.com/files/32bit/doc/app_note/AN5125.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;also gpio is decribed in linux/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.txt&lt;/P&gt;&lt;P&gt;For i.MX6UL usage one can look at "xnur"&amp;nbsp; in ../drivers/input/imx6ul_tsc.c&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fgit.freescale.com%2Fgit%2Fcgit.cgi%2Fimx%2Flinux-2.6-imx.git%2Ftree%2Fdrivers%2Finput%2Ftouchscreen%2Fimx6ul_tsc.c%3Fh%3Dimx_4.1.15_1.0.0_ga" rel="nofollow" target="_blank"&gt;http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/drivers/input/touchscreen/imx6ul_tsc.c?h=imx_4.1.15_1.0.0_ga&lt;/A&gt;&lt;/P&gt;&lt;P&gt;its irq function adc_irq_fn() is invoked by node:&lt;/P&gt;&lt;P&gt;node &amp;amp;tsc {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pinctrl-names = "default";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_tsc&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xnur-gpio = &amp;lt;&amp;amp;gpio1 3 GPIO_ACTIVE_LOW&amp;gt;; &lt;/P&gt;&lt;P&gt;in imx6ul-14x14-evk.dts&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fgit.freescale.com%2Fgit%2Fcgit.cgi%2Fimx%2Flinux-2.6-imx.git%2Ftree%2Farch%2Farm%2Fboot%2Fdts%2Fimx6ul-14x14-evk.dts%3Fh%3Dimx_4.1.15_1.0.0_ga" rel="nofollow" target="_blank"&gt;http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/boot/dts/imx6ul-14x14-evk.dts?h=imx_4.1.15_1.0.0_ga&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Another usage gpio interrupt in FT5x06 touchscreen driver:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-thread-small" data-containerid="2004" data-containertype="14" data-objectid="430812" data-objecttype="1" href="https://community.nxp.com/thread/430812"&gt;https://community.nxp.com/thread/430812&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Based on these examples one can create own driver with gpio interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 11:18:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-as-interrupt/m-p/594462#M89335</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-07-21T11:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO as interrupt</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-as-interrupt/m-p/1457524#M190321</link>
      <description>&lt;P&gt;Hi igor,&lt;/P&gt;&lt;P&gt;Can you reply the question in original post? "&lt;SPAN&gt;these two lines are enough"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Winston&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 22:20:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-as-interrupt/m-p/1457524#M190321</guid>
      <dc:creator>yangao</dc:creator>
      <dc:date>2022-05-12T22:20:59Z</dc:date>
    </item>
  </channel>
</rss>

