UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Newbie laurencefr
Newbie
348 Views
Registered: ‎11-20-2018

gpio-zynq interrupts

Hello,

I try to use a gpio interrupt with kernel xilinx 4.14.

In fact, my driver uses 2 interruptions : 1 standard intc controller, and 1 gpio.

In my dts, I have : "interrupts-extended = <&intc 0 31 1>, <&gpio0 55 2>;"

From my driver, when I try to get interrupt ressources with :

irq_res = platform_get_resource(devP->me, IORESOURCE_IRQ, irq_ressource_nb)

it works fine for intc interrupt, but it returns null pointer for gpio interrupt.

Please, can somebody tell me what I am doing wrong ?

Note :

- I include in my dts zynq-7000.dtsi which contains gpio0 node, with interrupt-controller set, and #interrupt-cells = <2>.

- I already checked kernel.config.

CONFIG_GPIO_SYSFS=y
CONFIG_GPIO_ZYNQ=y

Thanks.

 

0 Kudos
1 Reply
Newbie laurencefr
Newbie
304 Views
Registered: ‎11-20-2018

Re: gpio-zynq interrupts

Someone has an idea ? please ?

0 Kudos