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>
Showing
- Documentation/devicetree/bindings/interrupt-controller/interrupts.txt 23 additions, 6 deletions...n/devicetree/bindings/interrupt-controller/interrupts.txt
- arch/arm/boot/dts/testcases/tests-interrupts.dtsi 16 additions, 0 deletionsarch/arm/boot/dts/testcases/tests-interrupts.dtsi
- drivers/of/irq.c 11 additions, 5 deletionsdrivers/of/irq.c
- drivers/of/selftest.c 70 additions, 0 deletionsdrivers/of/selftest.c
Please register or sign in to comment