Interrupt sense value in device tree

Vijay Nikam vijay.t.nikam at gmail.com
Tue Feb 24 17:23:50 EST 2009


Hello,

I created a device node for gpio-controller for evaluation board
mpc83313erdb. I created the dtb and loaded on target.

But in dts at interrupts = <74 0x2> I set sense as Edge (sense== 2:
Edge, high-to-low change),  when I load the driver module and checked
the entry in /proc/interrupts it shows the sense as 'Level' i.e. 8
(sense == 8: Level, low assertion) as follows;

74:          1   IPIC   Level     gpio

Following is gpio-controller device tree node;

gpio-controller at c00 {
              #gpio-cells = <2>;
              compatible = "fsl,mpc8313-gpio", "fsl,mpc8349-gpio";
              reg = <0xc00 0x100>;
              interrupts = <74 0x2>;
              interrupt-parent = <&ipic>;
              gpio-controller;
            };

Could anyone please tell what could be the reason ? ? ? Am I missing
something ? ? ?

Kindly please acknowledge ... thank you ...

Kind Regards,
Vijay Nikam

##################### Start ############################
cat /proc/interrupts

        CPU0
 16:        162   IPIC   Level     serial
 19:         43   IPIC   Level     i2c-mpc
 20:          1   IPIC   Level     i2c-mpc
 22:          2   IPIC   Edge      phy_interrupt
 32:          0   IPIC   Level     enet_error
 33:        765   IPIC   Level     enet_rx
 34:          3   IPIC   Level     enet_tx
 35:          0   IPIC   Level     enet_error
 36:          0   IPIC   Level     enet_rx
 37:         15   IPIC   Level     enet_tx
 38:          0   IPIC   Edge      ehci_hcd:usb1
 72:          0   IPIC   Level     gtm timer
 74:          1   IPIC   Level     gpio
 77:      51451   IPIC   Level     fsl-elbc
 80:          0   IPIC   Level     pmc
BAD:          0
###################### END ############################



More information about the Linuxppc-dev mailing list