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: [EMAIL PROTECTED] {
                        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...
                [EMAIL PROTECTED] {
                        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
[EMAIL PROTECTED]
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to