<?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 Howto access IRQ0 on a LS1046a in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/Howto-access-IRQ0-on-a-LS1046a/m-p/779140#M3434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hi all,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;we're running a LS1046A based custom board and have to use (so far) external IRQ0&amp;nbsp;that should, according to the ref manual, be accessible at 163 of the GIC. We have the following entry in our dts (inside the existing "&amp;amp;ifc { ... };" &amp;nbsp;section):&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;We try with external interrupt to the IRQ0 , no interrupt shown in /proc/interrupts for the external interrupt. What is missing for&amp;nbsp;&amp;nbsp;IRQ0 in LS1046A ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="color: #51626f; border-width: 0px 0px 0px 2px; border-style: initial initial initial solid; border-color: initial initial initial #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;cpld: board-control@2,0 {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; compatible = "fsl,ls1046ardb-cpld";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; reg = &amp;lt;0x2 0x0 0x0010000&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; interrupts = &amp;lt;GIC_SPI 163 IRQ_TYPE_LEVEL_LOW&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; interrupt-parent = &amp;lt;&amp;amp;gic&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Nov 2017 04:03:02 GMT</pubDate>
    <dc:creator>sreeragag</dc:creator>
    <dc:date>2017-11-16T04:03:02Z</dc:date>
    <item>
      <title>Howto access IRQ0 on a LS1046a</title>
      <link>https://community.nxp.com/t5/Layerscape/Howto-access-IRQ0-on-a-LS1046a/m-p/779140#M3434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hi all,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;we're running a LS1046A based custom board and have to use (so far) external IRQ0&amp;nbsp;that should, according to the ref manual, be accessible at 163 of the GIC. We have the following entry in our dts (inside the existing "&amp;amp;ifc { ... };" &amp;nbsp;section):&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;We try with external interrupt to the IRQ0 , no interrupt shown in /proc/interrupts for the external interrupt. What is missing for&amp;nbsp;&amp;nbsp;IRQ0 in LS1046A ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="color: #51626f; border-width: 0px 0px 0px 2px; border-style: initial initial initial solid; border-color: initial initial initial #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;cpld: board-control@2,0 {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; compatible = "fsl,ls1046ardb-cpld";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; reg = &amp;lt;0x2 0x0 0x0010000&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; interrupts = &amp;lt;GIC_SPI 163 IRQ_TYPE_LEVEL_LOW&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; interrupt-parent = &amp;lt;&amp;amp;gic&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 04:03:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Howto-access-IRQ0-on-a-LS1046a/m-p/779140#M3434</guid>
      <dc:creator>sreeragag</dc:creator>
      <dc:date>2017-11-16T04:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Howto access IRQ0 on a LS1046a</title>
      <link>https://community.nxp.com/t5/Layerscape/Howto-access-IRQ0-on-a-LS1046a/m-p/779141#M3435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it! We have added a device driver for cpld and added interrupt handling in it. Now it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Registered irq request in init function&lt;/P&gt;&lt;P&gt;struct device_node *node = of_find_node_by_name(NULL, "board-control");&lt;/P&gt;&lt;P&gt;irqNum = of_irq_to_resource(node, 0, &amp;amp;resource);&lt;/P&gt;&lt;P&gt;result = request_irq(irqNum, (irq_handler_t) irq5_handler, IRQF_TRIGGER_RISING, "irq0_handler", NULL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In interrupt handler function&lt;SPAN&gt; irq5_handler&amp;nbsp;&lt;/SPAN&gt;ISR added.&lt;/P&gt;&lt;P&gt;static irq_handler_t irq5_handler(unsigned int irq, void *dev_id, struct pt_regs *regs) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// ISR here&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Dec 2017 05:23:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Howto-access-IRQ0-on-a-LS1046a/m-p/779141#M3435</guid>
      <dc:creator>sreeragag</dc:creator>
      <dc:date>2017-12-20T05:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Howto access IRQ0 on a LS1046a</title>
      <link>https://community.nxp.com/t5/Layerscape/Howto-access-IRQ0-on-a-LS1046a/m-p/1234625#M7583</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-I lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;&lt;FONT&gt;Sreeragag,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;We are testing with the same issue as you.&lt;/P&gt;&lt;P&gt;However, when insmod is executed, kernel panic occurs.&lt;/P&gt;&lt;P&gt;Related questions have been posted on the link below.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-I lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;&lt;FONT&gt;&lt;A href="https://community.nxp.com/t5/QorIQ/LS1046-IRQ1-Interrupt-Error/m-p/1234303#M10071" target="_blank"&gt;https://community.nxp.com/t5/QorIQ/LS1046-IRQ1-Interrupt-Error/m-p/1234303#M10071&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I need help..&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-I lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;&lt;FONT&gt;Thank you,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-I lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;&lt;FONT&gt;Best Regards,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-I lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;&lt;FONT&gt;Gyosun.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 01:11:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Howto-access-IRQ0-on-a-LS1046a/m-p/1234625#M7583</guid>
      <dc:creator>Gyosun</dc:creator>
      <dc:date>2021-02-23T01:11:46Z</dc:date>
    </item>
  </channel>
</rss>

