Hello,
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.
fgpio@0 {
#address-cells = <0x01>
#size-cells = <0x00>
cell-index = <0x00>
compatible = "...,..."
reg = <0x00 0x00>
interrupts = <7 2 0 0>
interrupt-parent <&mpic>
}
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.
Versions -> U-Boot: 2018.07, Linux: 4.15.7
Which configuration causes this problem?
Thank you.