This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM365: IRQ on GPIO26

Other Parts Discussed in Thread: ADS7846

Hello!

I use  linux-2.6.32.17 from ti-dvsdk_dm365-evm_4_02_00_06. For the driver ads7846 I need IRQ on GPIO26 pin. I commented out ".gpio_unbanked = 8" in dm356.c and IRQ installed ok - dmesg say "DaVinci: 104 gpio irq" and /proc/interrupts " 90:          0        GPIO  gpio_test". But the handler is not called.

My test code:

        if (gpio_request(PEN_PIN, "gpio_test") < 0) {
            printk("Err: gpio irq\n");
        };

        gpio_direction_input(PEN_PIN);
       
        int status = 0;

        status = request_irq(gpio_to_irq(PEN_PIN), gpio_irq_handler, IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING, "gpio_test", NULL);
        
        if (status < 0) {
            printk("<1> gpio_request_irq : Failed to Register IRQ %d  \n", gpio_to_irq(PEN_PIN));
            printk("<1> gpio_request_irq : return status is %d  \n", status);
        }

Pin is configured correctly - gpio_get_value(PEN_PIN) work right