dt-bindings: interrupt-controller: Add binding for the Microsemi Ocelot interrupt controller
Subsystems (2)
PATCH v3 1/2 dt-bindings: interrupt-controller: Add binding for the Microsemi Ocelot interrupt controller
Add the Device Tree binding documentation for the Microsemi Ocelot interrupt controller that is part of the ICPU. It is connected directly to the MIPS core interrupt controller.
---
Changes since v2:
- none
.../interrupt-controller/mscc,ocelot-icpu-intr.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/mscc,ocelot-icpu-intr.txt
Documentation/devicetree/bindings/interrupt-controller/mscc,ocelot-icpu-intr.txt new file +22 -0
@@ -0,0 +1,22 @@ +Microsemi Ocelot SoC ICPU Interrupt Controller + +Required properties: + +- compatible : should be "mscc,ocelot-icpu-intr" +- reg : Specifies base physical address and size of the registers. +- interrupt-controller : Identifies the node as an interrupt controller +- #interrupt-cells : Specifies the number of cells needed to encode an + interrupt source. The value shall be 1. +- interrupt-parent : phandle of the CPU interrupt controller. +- interrupts : Specifies the CPU interrupt the controller is connected to. + +Example: + + intc: interrupt-controller@70000070 { + compatible = "mscc,ocelot-icpu-intr"; + reg = <0x70000070 0x70>; + #interrupt-cells = <1>; + interrupt-controller; + interrupt-parent = <&cpuintc>; + interrupts = <2>; + };
Signature · 1 line
2.16.2
PATCH v3 2/2 irqchip: Add a driver for the Microsemi Ocelot controller
The Microsemi Ocelot SoC has a pretty simple IRQ controller in its ICPU block. Add a driver for it.
---
Changes in v3:
- moved parent irq parsing to the top of init
- reworked error path
drivers/irqchip/Kconfig | 5 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-mscc-ocelot.c | 118 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 124 insertions(+) create mode 100644 drivers/irqchip/irq-mscc-ocelot.c
drivers/irqchip/Kconfig +5 -0
@@ -286,6 +286,11 @@ config IRQ_MXS select IRQ_DOMAIN select STMP_DEVICE +config MSCC_OCELOT_IRQ + bool + select IRQ_DOMAIN + select GENERIC_IRQ_CHIP + config MVEBU_GICP bool
drivers/irqchip/Makefile +1 -0
@@ -72,6 +72,7 @@ obj-$(CONFIG_ARCH_SA1100) += irq-sa11x0.o obj-$(CONFIG_INGENIC_IRQ) += irq-ingenic.o obj-$(CONFIG_IMX_GPCV2) += irq-imx-gpcv2.o obj-$(CONFIG_PIC32_EVIC) += irq-pic32-evic.o +obj-$(CONFIG_MSCC_OCELOT_IRQ) += irq-mscc-ocelot.o obj-$(CONFIG_MVEBU_GICP) += irq-mvebu-gicp.o obj-$(CONFIG_MVEBU_ICU) += irq-mvebu-icu.o obj-$(CONFIG_MVEBU_ODMI) += irq-mvebu-odmi.o
drivers/irqchip/irq-mscc-ocelot.c new file +118 -0
118 lines not on this page · raw message
Signature · 1 line
2.16.2
Marc Zyngier
AppliedRe: [PATCH v3 2/2] irqchip: Add a driver for the Microsemi Ocelot controller
Quoted 10 lines · Alexandre Belloni
The Microsemi Ocelot SoC has a pretty simple IRQ controller in its ICPU block. Add a driver for it.
Signed-off-by Alexandre Belloni <[email protected]>---
Changes in v3:
- moved parent irq parsing to the top of init
- reworked error path
Quoted 5 lines
drivers/irqchip/Kconfig | 5 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-mscc-ocelot.c | 118 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 124 insertions(+) create mode 100644 drivers/irqchip/irq-mscc-ocelot.c
Queued both patches for 4.17. Thanks for the quick turnaround.
M.
Signature · 1 line
Jazz is not dead. It just smells funny...