of/irq: create interrupts-extended property
authorGrant Likely <grant.likely@linaro.org>
Thu, 19 Sep 2013 21:47:37 +0000 (16:47 -0500)
committerGrant Likely <grant.likely@linaro.org>
Mon, 28 Oct 2013 23:48:14 +0000 (16:48 -0700)
commit79d9701559a9f3e9b2021fbd292f5e70ad75f686
treebbbcc05e19c73ffe9f6a5b71c8c45c5e051c2747
parentf27446c3ad5b6d3b5b28ec0176e23d3ceca595d8
of/irq: create interrupts-extended property

The standard interrupts property in device tree can only handle
interrupts coming from a single interrupt parent. If a device is wired
to multiple interrupt controllers, then it needs to be attached to a
node with an interrupt-map property to demux the interrupt specifiers
which is confusing. It would be a lot easier if there was a form of the
interrupts property that allows for a separate interrupt phandle for
each interrupt specifier.

This patch does exactly that by creating a new interrupts-extended
property which reuses the phandle+arguments pattern used by GPIOs and
other core bindings.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Kumar Gala <galak@codeaurora.org>
[grant.likely: removed versatile platform hunks into separate patch]
Cc: Rob Herring <rob.herring@calxeda.com>
Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
arch/arm/boot/dts/testcases/tests-interrupts.dtsi
drivers/of/irq.c
drivers/of/selftest.c