AnsweredAssumed Answered

gpio_to_irq in device tree

Question asked by ieio on Jun 25, 2014
Latest reply on Sep 11, 2014 by Fabio Estevam

Hi all,

moving to Yocto and in particular to the kernel 3.10.17 I need to adapt a driver that used a gpio as interrupt, in the former kernel 3.0.35, I did:

#define INT_PORT   IMX_GPIO_NR(6, 2)

#define INT_IRQ     gpio_to_irq(INT_PORT)

and the result was INT_IRQ 418

 

now in DTS I do

interrupt-parent = <&gpio6>;

interrupts = <2 2>;

 

and the result is irq= 322

 

What I missing?

Outcomes