Interrupt on Up2 Board GPIO(pin number 29, linux gpio 430)

Hi,
We are using a Up2 board with Yocto Sumo branch(linux kernel 4.14.92)
We are trying to use linux gpio 430 for interrupt handling. But, we dont see the interrupt handler invoked. Is it a known issue with workarounds as I see some fixes for 4.19 kernel
Code:
+static int register_gpio(void)
++{
++ if(gpio_request_one(IRQ_GPIO, GPIOF_IN, "MCU_sel") < 0) {
++ printk(KERN_ALERT "GPIO %d cannot be used\n", IRQ_GPIO);
++ return -EBUSY;
++ }
++ if ( (irq_line = gpio_to_irq(MCU_IRQ_GPIO)) < 0)
++ {
++ printk(KERN_ALERT "Gpio %d cannot be used as interrupt\n",IRQ_GPIO);
++ return -EINVAL;
++ }
++ if ( (irq_req_res = request_irq(irq_line, MCU_irq_handler, IRQF_TRIGGER_FALLING, "MCU_IRQ_GPIO", NULL)) < 0)
++ {
++ printk(KERN_ERR " registering irq failed\n");
++ return -EINVAL;
++ }
++ printk(KERN_INFO "select switch GPIO is registred\n");
++ return 0;
++}
++
Comments
Categories
- All Categories
- 105 Announcements & News
- 55 Product News - New Product/Product Change Notice/ End-of-life
- 184 Welcome Developers!
- 55 Unboxing & Project Sharing
- 31 Tech Updates
- 659 UP Products
- 1 UP 7000
- UP Squared i12
- 8 UP Xtreme i12
- 9 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 17 UP Squared V2
- 54 UP 4000
- 24 UP Xtreme i11
- 35 UP Squared 6000
- 58 UP Squared Pro
- 142 UP Xtreme
- 834 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 222 UP Core
- 3 UP Xtreme Lite
- 44 UP AI Edge
- 215 Starter Kits & Peripheral