[PATCH v2 01/12] ARM: Orion: DT support for IRQ and GPIO Controllers
Sebastian Hesselbarth
sebastian.hesselbarth at googlemail.com
Thu Jul 5 08:09:59 EDT 2012
On 07/05/2012 01:48 PM, Andrew Lunn wrote:
>> Yes. I am not sure yet how to describe those in the DT, or even if it
>> is actually useful to describe them. Wouldn't it be simpler to just
>> leave to the user of the GPIO to use a GPIO that's appropriate for its
>> usage, i.e not use a GPO when input is needed?
>
> We assume the hardware designer has got the basic hardware right. Its
> not going to work otherwise.
>
> What we are trying to detect is a DT author making a typo, assigning a
> gpio-key to a GPO pin, for example. The current MPP scheme will detect
> this sort of error and issue a warning to the kernel logs.
The output-only/non-interrupt gpios could be marked as such in DT.
The common code should not install irqs if marked by e.g.
"marvell,gpio-no-irq". The gpio driver already fails to set input
direction on output-only pins. This could be marked by e.g.
"marvell,gpio-output-only" in DT.
Sebastian
More information about the linux-arm-kernel
mailing list