hi
I want to make a gpio interrupt driver.my chip is ls1046a
In my code:
irq_no=gpio_to_irq(GPIO_NUM);
the func"gpio_to_irq()" return -22, my GPIO_NUM=gpio1_26=480+26=506;
Does nxp not provide this interface? In IMX platform i can this function successfully.
here is my code:
#define BASE_GPIO2 506
static int __init button_init(void){
int error,a;
a = gpio_is_valid(BASE_GPIO2);
printk(KERN_INFO"value a is:%d.\n",a);
irq_no = gpio_to_irq(BASE_GPIO2);
printk(KERN_INFO"irq_no is:%d.\n",irq_no);