5 Replies Latest reply on Sep 1, 2017 6:34 AM by Carlos_A

    Using interrupts with Kaby Lake Sunrise Point GPIO driver

    mrogers2 Community Member

      Hope someone can help !

       

      I'm using 4.11.12 on Fed 25, with a C236 PCH.  pinctrl_sunrisepoint & pinctrl_intel modules are loaded.

      I can use /sys/class/gpio/export and friends to do I/O, but I need interrupts also.

       

      Echoing for ex. "both" to gpio475/edge causes these to appear in /proc/interrupts:

       

        14:          0          0          0          0          0          0          0          0  IR-IO-APIC   14-fasteoi   INT345D:00

      292:         0          0          0          0          0          0          0          0  intel-gpio  155  gpiolib

       

      But setting it as input and toggling it generates no interrupts. I also tried the C code here:

       

      https://developer.ridgerun.com/wiki/index.php?title=Gpio-int-test.c

       

      but I never see the interrupt counts increment...

      Ultimately I must create a driver with my own interrupt service rtn, but it would be great

      to get this working first.

       

      Thanks in advance,

      Martin