<?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>P-Series中的主题 P1020RDB external irq (IRQ7) problem</title>
    <link>https://community.nxp.com/t5/P-Series/P1020RDB-external-irq-IRQ7-problem/m-p/1741472#M5180</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working on Qoriq P1020 RDB custom board. In this board, a signal is connected to IRQ7 external interrupt. After I read the mpic.txt documentation in Linux and I added external IRQ in dts as follow. Then I called request_irq and connected a handler for this interrupt. It is successfully connected and interrupt is generated.&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:fgpio@0" target="_blank"&gt;fgpio@0&lt;/A&gt; {&lt;/P&gt;&lt;P&gt;#address-cells = &amp;lt;0x01&amp;gt;&lt;/P&gt;&lt;P&gt;#size-cells = &amp;lt;0x00&amp;gt;&lt;/P&gt;&lt;P&gt;cell-index = &amp;lt;0x00&amp;gt;&lt;/P&gt;&lt;P&gt;compatible = "...,..."&lt;/P&gt;&lt;P&gt;reg = &amp;lt;0x00 0x00&amp;gt;&lt;/P&gt;&lt;P&gt;interrupts = &amp;lt;7 2 0 0&amp;gt;&lt;/P&gt;&lt;P&gt;interrupt-parent &amp;lt;&amp;amp;mpic&amp;gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Here is my problem. This signal is always low and lots of interrupts are triggered. In Qoriq documentation (P1020RM) there is a register for reading external irq signal levels (PIC_ERQSR). I read this register as 0xfc000000 in Linux. Also I read in U-Boot console after power up and I get the same value. This means IRQ7 is always low after power up. On the other hand, I get 0xFFF00000 when I read this register in another OS.&lt;/P&gt;&lt;P&gt;Versions -&amp;gt; U-Boot: 2018.07, Linux: 4.15.7&lt;/P&gt;&lt;P&gt;Which configuration causes this problem?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Oct 2023 16:32:22 GMT</pubDate>
    <dc:creator>Safak28</dc:creator>
    <dc:date>2023-10-17T16:32:22Z</dc:date>
    <item>
      <title>P1020RDB external irq (IRQ7) problem</title>
      <link>https://community.nxp.com/t5/P-Series/P1020RDB-external-irq-IRQ7-problem/m-p/1741472#M5180</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working on Qoriq P1020 RDB custom board. In this board, a signal is connected to IRQ7 external interrupt. After I read the mpic.txt documentation in Linux and I added external IRQ in dts as follow. Then I called request_irq and connected a handler for this interrupt. It is successfully connected and interrupt is generated.&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:fgpio@0" target="_blank"&gt;fgpio@0&lt;/A&gt; {&lt;/P&gt;&lt;P&gt;#address-cells = &amp;lt;0x01&amp;gt;&lt;/P&gt;&lt;P&gt;#size-cells = &amp;lt;0x00&amp;gt;&lt;/P&gt;&lt;P&gt;cell-index = &amp;lt;0x00&amp;gt;&lt;/P&gt;&lt;P&gt;compatible = "...,..."&lt;/P&gt;&lt;P&gt;reg = &amp;lt;0x00 0x00&amp;gt;&lt;/P&gt;&lt;P&gt;interrupts = &amp;lt;7 2 0 0&amp;gt;&lt;/P&gt;&lt;P&gt;interrupt-parent &amp;lt;&amp;amp;mpic&amp;gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Here is my problem. This signal is always low and lots of interrupts are triggered. In Qoriq documentation (P1020RM) there is a register for reading external irq signal levels (PIC_ERQSR). I read this register as 0xfc000000 in Linux. Also I read in U-Boot console after power up and I get the same value. This means IRQ7 is always low after power up. On the other hand, I get 0xFFF00000 when I read this register in another OS.&lt;/P&gt;&lt;P&gt;Versions -&amp;gt; U-Boot: 2018.07, Linux: 4.15.7&lt;/P&gt;&lt;P&gt;Which configuration causes this problem?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 16:32:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/P1020RDB-external-irq-IRQ7-problem/m-p/1741472#M5180</guid>
      <dc:creator>Safak28</dc:creator>
      <dc:date>2023-10-17T16:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: P1020RDB external irq (IRQ7) problem</title>
      <link>https://community.nxp.com/t5/P-Series/P1020RDB-external-irq-IRQ7-problem/m-p/1744769#M5181</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/211697"&gt;@Safak28&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer below link to configure external interrupt.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/P-Series/How-to-configure-external-interrupt-IRQ2-in-P2040/m-p/797758" target="_self"&gt;https://community.nxp.com/t5/P-Series/How-to-configure-external-interrupt-IRQ2-in-P2040/m-p/797758&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 20:24:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/P1020RDB-external-irq-IRQ7-problem/m-p/1744769#M5181</guid>
      <dc:creator>Oswalag</dc:creator>
      <dc:date>2023-10-23T20:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: P1020RDB external irq (IRQ7) problem</title>
      <link>https://community.nxp.com/t5/P-Series/P1020RDB-external-irq-IRQ7-problem/m-p/1778423#M5182</link>
      <description>&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;P&gt;I have completed all steps in the topic you mentioned. I can see the interrupt in /proc/interrupts file.&lt;/P&gt;&lt;P&gt;In my configuration, I didn't remove the PCIe relations of IRQ7. Qoriq spec mentions there is a relations between IRQ7 and PCIe INTD. I think the relation is defined in dts like below (bold section). Is it right? I removed this section and I will try again.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;/* controller at 0x9000 */&lt;BR /&gt;&amp;amp;pci0 {&lt;BR /&gt;compatible = "fsl,mpc8548-pcie";&lt;BR /&gt;device_type = "pci";&lt;BR /&gt;#size-cells = &amp;lt;2&amp;gt;;&lt;BR /&gt;#address-cells = &amp;lt;3&amp;gt;;&lt;BR /&gt;bus-range = &amp;lt;0 255&amp;gt;;&lt;BR /&gt;clock-frequency = &amp;lt;33333333&amp;gt;;&lt;BR /&gt;interrupts = &amp;lt;16 2 0 0&amp;gt;;&lt;BR /&gt;pcie@0 {&lt;BR /&gt;reg = &amp;lt;0 0 0 0 0&amp;gt;;&lt;BR /&gt;#interrupt-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;2&amp;gt;;&lt;BR /&gt;#address-cells = &amp;lt;3&amp;gt;;&lt;BR /&gt;device_type = "pci";&lt;BR /&gt;interrupts = &amp;lt;16 2 0 0&amp;gt;;&lt;BR /&gt;interrupt-map-mask = &amp;lt;0xf800 0 0 7&amp;gt;;&lt;BR /&gt;interrupt-map = &amp;lt;&lt;BR /&gt;/* IDSEL 0x0 */&lt;BR /&gt;0000 0x0 0x0 0x1 &amp;amp;mpic 0x4 0x1 0x0 0x0&lt;BR /&gt;0000 0x0 0x0 0x2 &amp;amp;mpic 0x5 0x1 0x0 0x0&lt;BR /&gt;0000 0x0 0x0 0x3 &amp;amp;mpic 0x6 0x1 0x0 0x0&lt;BR /&gt;&lt;STRONG&gt;0000 0x0 0x0 0x4 &amp;amp;mpic 0x7 0x1 0x0 0x0&lt;/STRONG&gt;&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 06:47:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/P1020RDB-external-irq-IRQ7-problem/m-p/1778423#M5182</guid>
      <dc:creator>Safak28</dc:creator>
      <dc:date>2023-12-21T06:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: P1020RDB external irq (IRQ7) problem</title>
      <link>https://community.nxp.com/t5/P-Series/P1020RDB-external-irq-IRQ7-problem/m-p/1783975#M5183</link>
      <description>&lt;P&gt;I get into more details about this problem. The problem is pointed in qoriq reference manual. You can use mpic.txt for configuration of qoriq p1020 external irq, but&amp;nbsp; the RM says there is a relation between some tdm, gpio and irq pins. I removed tdm enable code from the uboot. Finally the external signal register is low for irq7 and the problem solved.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jan 2024 20:02:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/P1020RDB-external-irq-IRQ7-problem/m-p/1783975#M5183</guid>
      <dc:creator>Safak28</dc:creator>
      <dc:date>2024-01-07T20:02:32Z</dc:date>
    </item>
  </channel>
</rss>

