demuxing irqs
Jon Smirl
jonsmirl at gmail.com
Mon Sep 15 00:06:43 EST 2008
How do the virq numbers get assigned?
What do I pass into request_irq when I use one of these pins?
The gpio device...
gpio_wkup: gpio-wkup at c00 {
compatible = "fsl,mpc5200b-gpio-wkup","fsl,mpc5200-gpio-wkup";
reg = <0xc00 0x40>;
interrupts = <0x1 0x8 0x0 0x0 0x3 0x0>;
interrupt-parent = <&mpc5200_pic>;
gpio-controller;
#gpio-cells = <4>;
};
use of a gpio from the device...
ir at 0 {
compatible = "digispeaker,gpio-ir";
gpios = <&gpio_wkup 0 0 1 0>;
};
0 - gpio number in the device
0 - enable open drain
1 - class of interrupt, normal or wakeup
0 - type of interrupt, rising, falling, both, pulse
--
Jon Smirl
jonsmirl at gmail.com
More information about the Linuxppc-dev
mailing list