<?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>LayerscapeのトピックHow to Use an External IRQ in a Linux Driver?</title>
    <link>https://community.nxp.com/t5/Layerscape/How-to-Use-an-External-IRQ-in-a-Linux-Driver/m-p/1559559#M11441</link>
    <description>&lt;P&gt;I am working with the LS1046A and I need to use external IRQ6 in a driver to measure a pulse train with minimal latency. For this reason I don't want to use the pin configured as a GPIO. Is there an example of how to configure an external IRQ in the device tree and a code example showing what is required to handle the IRQ in my driver?&lt;/P&gt;&lt;P&gt;Thanks, Steve.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Nov 2022 16:40:35 GMT</pubDate>
    <dc:creator>Steve_W</dc:creator>
    <dc:date>2022-11-24T16:40:35Z</dc:date>
    <item>
      <title>How to Use an External IRQ in a Linux Driver?</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-Use-an-External-IRQ-in-a-Linux-Driver/m-p/1559559#M11441</link>
      <description>&lt;P&gt;I am working with the LS1046A and I need to use external IRQ6 in a driver to measure a pulse train with minimal latency. For this reason I don't want to use the pin configured as a GPIO. Is there an example of how to configure an external IRQ in the device tree and a code example showing what is required to handle the IRQ in my driver?&lt;/P&gt;&lt;P&gt;Thanks, Steve.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 16:40:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-Use-an-External-IRQ-in-a-Linux-Driver/m-p/1559559#M11441</guid>
      <dc:creator>Steve_W</dc:creator>
      <dc:date>2022-11-24T16:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to Use an External IRQ in a Linux Driver?</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-Use-an-External-IRQ-in-a-Linux-Driver/m-p/1563376#M11458</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The usage of external IRQ is same as other IP's irq, normally you need:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) enable IRQ pin function in RCW, bit 373-381&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the default rcw, IRQ already supported by default.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Add interrupt related description in dts node&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;interrupts = &amp;lt;GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please be aware that the irq in dts is calculated as : irq = hwirq - 32. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;According to chapter &amp;lt;interrupt assignment &amp;gt; of LS1046A, the hwirq num of IRQ6 is 177, so in dts file it should be 177 - 32 = 145.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is no device connected with IRQ6, The following steps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) map hwirq to Linux irq&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) request irq in device driver.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 09:11:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-Use-an-External-IRQ-in-a-Linux-Driver/m-p/1563376#M11458</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-12-02T09:11:10Z</dc:date>
    </item>
  </channel>
</rss>

