[PATCH] mfd: stmpe: Pull IRQ GPIO number from DT during DT-based probe

Lee Jones lee.jones at linaro.org
Tue Jan 8 06:11:04 EST 2013


On Tue, 08 Jan 2013, Viresh Kumar wrote:

> On 8 January 2013 15:18, Marek Vasut <marex at denx.de> wrote:
> > Maybe I was too quick about understanding the issue at hand. So allow me a
> > stupid question -- who's gonna configure the GPIO as input for it to work as IRQ
> > GPIO?
> 
> Hmm.. I tried a bit, but couldn't find any such call :(
> Probably an assumption is taken here. GPIO pins which are going to be used as
> interrupt lines, wouldn't be getting set in output mode at all. So,
> once they are put
> in input mode in beginning, nobody would change it ever.
> 
> Much of gpio controllers configure gpio pins in input mode in their probe().
> 
> Maybe, there is something else :)

Pinctrl?

-- 
Lee Jones
Linaro ST-Ericsson Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog



More information about the linux-arm-kernel mailing list