Skip to contentSkip to conversation

irqchip: Add support for IDT 79rc3243x interrupt controller

PATCH In review Thomas Bogendoerfer 2 participants 3 messages Apr 20, 2021 irqchip drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 irqchip: Add support for IDT 79rc3243x interrupt controller

IDT 79rc3243x SoCs have rather simple interrupt controllers connected to the MIPS CPU interrupt lines. Each of them has room for up to 32 interrupts.

---
 drivers/irqchip/Kconfig        |   5 ++
 drivers/irqchip/Makefile       |   1 +
 drivers/irqchip/irq-idt3243x.c | 124 +++++++++++++++++++++++++++++++++
 3 files changed, 130 insertions(+)
 create mode 100644 drivers/irqchip/irq-idt3243x.c
drivers/irqchip/Kconfig +5 -0
index e74fa206240a..55562b36bf3c 100644
@@ -586,4 +586,9 @@ config MST_IRQ
 	help
 	  Support MStar Interrupt Controller.
 
+config IRQ_IDT3243X
+	bool
+	select GENERIC_IRQ_CHIP
+	select IRQ_DOMAIN
+
 endmenu
drivers/irqchip/Makefile +1 -0
index c59b95a0532c..341891443eec 100644
@@ -113,3 +113,4 @@ obj-$(CONFIG_LOONGSON_PCH_MSI)		+= irq-loongson-pch-msi.o
 obj-$(CONFIG_MST_IRQ)			+= irq-mst-intc.o
 obj-$(CONFIG_SL28CPLD_INTC)		+= irq-sl28cpld.o
 obj-$(CONFIG_MACH_REALTEK_RTL)		+= irq-realtek-rtl.o
+obj-$(CONFIG_IRQ_IDT3243X)		+= irq-idt3243x.o
drivers/irqchip/irq-idt3243x.c new file +124 -0

124 lines not on this page · raw message

Signature · 1 line
2.29.2
#1 lore raw
Quoted 5 lines · Thomas Bogendoerfer

IDT 79rc3243x SoCs have rather simple interrupt controllers connected to the MIPS CPU interrupt lines. Each of them has room for up to 32 interrupts.

Is there a DT binding for this irqchip? The code looks fine, but it'd be good if the binding was merged at the same time as the driver.

Thanks,

        M.
Signature · 1 line
Jazz is not dead. It just smells funny...
#2 lore raw
Quoted 9 lines · Marc Zyngier
Quoted 5 lines · Thomas Bogendoerfer

IDT 79rc3243x SoCs have rather simple interrupt controllers connected to the MIPS CPU interrupt lines. Each of them has room for up to 32 interrupts.

Is there a DT binding for this irqchip? The code looks fine, but it'd be good if the binding was merged at the same time as the driver.

I'll write one and send a v2.

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]