* Regarding Level/Edge of Interrupt sense values
@ 2009-02-23 11:57 Vijay Nikam
2009-04-10 18:52 ` Scott Wood
0 siblings, 1 reply; 2+ messages in thread
From: Vijay Nikam @ 2009-02-23 11:57 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Scott Wood
Hello,
I created a device node for gpio-controller for evaluation board
mpc83313erdb. I created the dtb and loaded on target and the interrupt
is generated successfully.
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
* Re: Regarding Level/Edge of Interrupt sense values
2009-02-23 11:57 Regarding Level/Edge of Interrupt sense values Vijay Nikam
@ 2009-04-10 18:52 ` Scott Wood
0 siblings, 0 replies; 2+ messages in thread
From: Scott Wood @ 2009-04-10 18:52 UTC (permalink / raw)
To: Vijay Nikam; +Cc: linuxppc-dev
On Mon, Feb 23, 2009 at 05:27:53PM +0530, Vijay Nikam wrote:
> Hello,
Sorry for the late reply; I just noticed this sitting in my inbox.
> I created a device node for gpio-controller for evaluation board
> mpc83313erdb. I created the dtb and loaded on target and the interrupt
> is generated successfully.
>
> 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
Internal interrupts are inherently level-triggered. The sense/trigger of
the gpio interrupt itself (as configured in the IPIC) has nothing to do
with the sense/trigger of the gpio *pin* (as configured in the GPIO
block).
-Scott
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-10 18:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-23 11:57 Regarding Level/Edge of Interrupt sense values Vijay Nikam
2009-04-10 18:52 ` Scott Wood
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).