linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Interrupt sense value in device tree
@ 2009-02-24  6:23 Vijay Nikam
  0 siblings, 0 replies; 2+ messages in thread
From: Vijay Nikam @ 2009-02-24  6:23 UTC (permalink / raw)
  To: linuxppc-dev, Benjamin Herrenschmidt

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@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 ############################

^ permalink raw reply	[flat|nested] 2+ messages in thread
* Interrupt sense value in device tree
@ 2009-02-24  4:19 Vijay Nikam
  0 siblings, 0 replies; 2+ messages in thread
From: Vijay Nikam @ 2009-02-24  4:19 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Timur Tabi

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@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 ############################

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-24  6:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-24  6:23 Interrupt sense value in device tree Vijay Nikam
  -- strict thread matches above, loose matches on Subject: below --
2009-02-24  4:19 Vijay Nikam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).