Does GPIO Linux framework support to change mode between GPIO and IRQ -


i checked sysfs of gpio, supports configure direction (in, out), active_level, edge.

i don't see supports change mode between gpio , interrupt. know ? or suggest.

example: gpios can supports either gpio or irq. change mode under linux via sysfs.

thanks in advance.

the gpio controller (and driver) provide support if any. in case gpio controller registered interrupt controller. there lot of examples, gpio-intel-mid.c have:

    retval = gpiochip_irqchip_add(&priv->chip,                                   &intel_mid_irqchip,                                   irq_base,                                   handle_simple_irq,                                   irq_type_none);     if (retval) {             dev_err(&pdev->dev,                     "could not connect irqchip gpiochip\n");             return retval;     } 

Comments

Popular posts from this blog

swift - Button on Table View Cell connected to local function -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

c# - ajax - How to receive data both html and json from server? -