Thread (1 message) 1 message, 1 author, 2014-02-28

Re: [PATCH V2 1/3] dt: palmas: support IRQ inversion at the board level

From: Mark Brown <hidden>
Date: 2014-02-28 05:58:18
Also in: linux-arm-kernel, linux-tegra

Possibly related (same subject, not in this thread)

On Thu, Feb 27, 2014 at 02:35:42PM -0700, Stephen Warren wrote:
On 02/27/2014 02:02 PM, Graeme Gregory wrote:
quoted
quoted
+- ti,irq-externally-inverted : If missing, the polarity of the Palmas IRQ
+  output should be set to the opposite of the polarity indicated by the IRQ
+  specifier in the interrupts property. If absent, the polarity should be
+  configured to match. This allows the representation of an inverter between
+  the Palmas IRQ output and the interrupt parent's IRQ input.
quoted
This has got to be the wrong way to do things, all this leads to is every
device doing this property in its own way and having totally inconsistent
properties all meaning the same thing.
quoted
If there is some other hardware inverting lines then there should be
a generic binding for this in DT. This is not describing the palmas hardware
but some external object to the palmas.
I'd be fine with removing the "ti," vendor prefix from the property
name, and promoting it to be a cross-device standard.
I'm not sure that many devices will need this though; most don't have
configurable output polarity. Still, I guess that shouldn't stop us from
creating standards for the cases where it is needed.
It's really common for PMICs and CODECs to be able to set any interrupt
polarity at least.
If the DT reviewers can ack the concept, I'm happy to respin the patch
with the more generic property name.
I'm not sure that renaming the property really deals with the concerns
though since drivers still all need to manually add support for this,
shouldn't there be an interrupt controller described in the DT which
just chains on to the parent with the polarity inverted to do the
impedence match?

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help