Hello all,
I'm trying to poll() on a GPIO 'value' file on the a20-olinuxino-lime2. As a most basic test, I am using gpio-int-test.c [0]. Once gpio-int-test is running, I am putting 3.3V on the GPIO pin. The value file shows changes from 0 to 1 and back, but the IRQ never fires as evidenced by the /proc/interrupts file. I have tried several pins where interrupts are actually defined: PC21, PC22 and PI10. Here's some output from debufs and /proc/interrupts, mainly containing details from the last test using PI10 (EINT22): laga@ivanov:~/dev/gpio$ cat /proc/interrupts | grep pio 51: 0 0 sunxi_pio_edge 1 Edge 1c0f000.mmc cd 54: 1 0 sunxi_pio_edge 4 Edge usb0-id-det 55: 0 0 sunxi_pio_edge 5 Edge usb0-vbus-det 64: 0 0 sunxi_pio_edge 14 Edge gpiolib 65: 0 0 sunxi_pio_edge 15 Edge gpiolib 72: 0 0 sunxi_pio_edge 22 Edge gpiolib laga@ivanov:~/dev/gpio$ cat /proc/interrupts | grep gpio 64: 0 0 sunxi_pio_edge 14 Edge gpiolib 65: 0 0 sunxi_pio_edge 15 Edge gpiolib 72: 0 0 sunxi_pio_edge 22 Edge gpiolib laga@ivanov:~/dev/gpio$ sudo cat /sys/kernel/debug/gpio GPIOs 0-287, platform/1c20800.pinctrl, 1c20800.pinctrl: gpio-67 ( |ahci-5v ) out hi gpio-81 ( |usb0-vbus ) out lo gpio-85 ( |sysfs ) in lo IRQ gpio-86 ( |sysfs ) in lo IRQ gpio-87 ( |sysfs ) in hi gpio-225 ( |cd ) in lo IRQ gpio-226 ( |? ) out hi gpio-227 ( |usb2-vbus ) out hi gpio-228 ( |usb0_id_det ) in hi IRQ gpio-229 ( |usb0_vbus_det ) in lo IRQ gpio-230 ( |usb1-vbus ) out hi gpio-266 ( |sysfs ) in lo IRQ Any idea what's going on here? Do I have to unmask an interrupt somewhere? Best, Michael [0] https://developer.ridgerun.com/wiki/index.php/Gpio-int-test.c -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
