On Fri, Feb 26, 2016 at 4:44 AM, Joachim Eastwood <manabian@xxxxxxxxx> wrote: > Selecting which GPIOs that are associated with PINT irq lines is done in > pinctrl hw block (SCU). The pinctrl device usually deals with the pin > namespace but PINT selecction is done in the GPIO namespace. Fortunatly > there is a function that can translate from the pin namespace to the > GPIO namespace. > > Selection is done in DT with the "nxp,gpio-pin-interrupt" property. > Example usage; > &pinctrl { > gpio_joystick_1_cfg { > pins = "p9_0"; > function = "gpio"; > nxp,gpio-pin-interrupt = <0>; > input-enable; > bias-disable; > }; > }; > > The reason for not doing this irq line selection on the fly in the > irqchip driver is that the registers lie in the SCU hw block not in the > PINT block and DT gives you more control since you can select a specific > irq lines easily. I am a bit split but I assume that you as maintainer of this hardware is in a better position to assign the routing of the IRQs in a convenient way for this platform. So, patches applied as you can see. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html