Skip to contentSkip to conversation

irqchip: Add support for IDT 79rc3243x interrupt controller

PATCH Applied Thomas Bogendoerfer 5 participants 8 messages Apr 22, 2021 – Apr 27, 2021

Subsystems (2)

v4 of 5 Applied Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/2 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.

---
Changes in v4:
- changed comaptible string to idt,32434-pic

 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

PATCH v4 2/2 dt-bindings: interrupt-controller: Add IDT 79RC3243x Interrupt Controller

Document DT bindings for IDT 79RC3243x Interrupt Controller.

---
Changes in v4:
- renamed to idt,32434-pic

Changes in v3:
- fixed compatible string in example

Changes in v2:
- added dt binding doc

 .../interrupt-controller/idt,32434-pic.yaml   | 48 +++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/idt,32434-pic.yaml
Documentation/devicetree/bindings/interrupt-controller/idt,32434-pic.yaml new file +48 -0
new file mode 100644
index 000000000000..df5d8d1ead70
@@ -0,0 +1,48 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/idt,32434-pic.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: IDT 79RC32434 Interrupt Controller Device Tree Bindings
+
+maintainers:
+  - Thomas Bogendoerfer <[email protected]>
+
+allOf:
+  - $ref: /schemas/interrupt-controller.yaml#
+
+properties:
+  "#interrupt-cells":
+    const: 1
+
+  compatible:
+    const: idt,32434-pic
+
+  reg:
+    maxItems: 1
+
+  interrupt-controller: true
+
+required:
+  - "#interrupt-cells"
+  - compatible
+  - reg
+  - interrupt-controller
+
+additionalProperties: false
+
+examples:
+  - |
+    idtpic3: interrupt-controller@3800c {
+        compatible = "idt,32434-pic";
+        reg = <0x3800c 0x0c>;
+
+        interrupt-controller;
+        #interrupt-cells = <1>;
+
+        interrupt-parent = <&cpuintc>;
+        interrupts = <3>;
+    };
+
+...
Signature · 1 line
2.29.2
#2 lore raw

[irqchip: irq/irqchip-next] dt-bindings: interrupt-controller: Add IDT 79RC3243x Interrupt Controller

The following commit has been merged into the irq/irqchip-next branch of irqchip:

The following commit has been merged into the irq/irqchip-next branch of irqchip:

Commit-ID:     05d7bf817019890e4d049e0b851940c596adbd9b
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/05d7bf817019890e4d049e0b851940c596adbd9b
Author:        Thomas Bogendoerfer <[email protected]>
AuthorDate:    Thu, 22 Apr 2021 16:53:29 +02:00
Committer:     Marc Zyngier <[email protected]>
CommitterDate: Thu, 22 Apr 2021 16:03:18 +01:00

dt-bindings: interrupt-controller: Add IDT 79RC3243x Interrupt Controller

Document DT bindings for IDT 79RC3243x Interrupt Controller.

---
 Documentation/devicetree/bindings/interrupt-controller/idt,32434-pic.yaml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/idt,32434-pic.yaml
Documentation/devicetree/bindings/interrupt-controller/idt,32434-pic.yaml new file +48 -0
new file mode 100644
index 0000000..df5d8d1
@@ -0,0 +1,48 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/idt,32434-pic.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: IDT 79RC32434 Interrupt Controller Device Tree Bindings
+
+maintainers:
+  - Thomas Bogendoerfer <[email protected]>
+
+allOf:
+  - $ref: /schemas/interrupt-controller.yaml#
+
+properties:
+  "#interrupt-cells":
+    const: 1
+
+  compatible:
+    const: idt,32434-pic
+
+  reg:
+    maxItems: 1
+
+  interrupt-controller: true
+
+required:
+  - "#interrupt-cells"
+  - compatible
+  - reg
+  - interrupt-controller
+
+additionalProperties: false
+
+examples:
+  - |
+    idtpic3: interrupt-controller@3800c {
+        compatible = "idt,32434-pic";
+        reg = <0x3800c 0x0c>;
+
+        interrupt-controller;
+        #interrupt-cells = <1>;
+
+        interrupt-parent = <&cpuintc>;
+        interrupts = <3>;
+    };
+
+...
maintainer
#3 lore raw

Re: [PATCH v4 2/2] dt-bindings: interrupt-controller: Add IDT 79RC3243x Interrupt Controller

In reply to Thomas Bogendoerfer
Quoted 10 lines · Thomas Bogendoerfer

Document DT bindings for IDT 79RC3243x Interrupt Controller.

---
Changes in v4:
- renamed to idt,32434-pic

Changes in v3:
- fixed compatible string in example

Quoted 7 lines

Changes in v2:
- added dt binding doc

 .../interrupt-controller/idt,32434-pic.yaml   | 48 +++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/idt,32434-pic.yaml

My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):

yamllint warnings/errors:

dtschema/dtc warnings/errors:
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/interrupt-controller/idt,32434-pic.example.dt.yaml: interrupt-controller@3800c: 'interrupts' does not match any of the regexes: 'pinctrl-[0-9]+'
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/interrupt-controller/idt,32434-pic.yaml

See https://patchwork.ozlabs.org/patch/1469240

This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1.

If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:

pip3 install dtschema --upgrade

Please check and re-submit.

#4 lore raw

Re: [PATCH v4 2/2] dt-bindings: interrupt-controller: Add IDT 79RC3243x Interrupt Controller

Quoted 20 lines · Rob Herring
Quoted 10 lines · Thomas Bogendoerfer

Document DT bindings for IDT 79RC3243x Interrupt Controller.

---
Changes in v4:
- renamed to idt,32434-pic

Changes in v3:
- fixed compatible string in example

Quoted 7 lines

Changes in v2:
- added dt binding doc

 .../interrupt-controller/idt,32434-pic.yaml   | 48 +++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/idt,32434-pic.yaml
Quoted 8 lines

My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):

yamllint warnings/errors:

dtschema/dtc warnings/errors:
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/interrupt-controller/idt,32434-pic.example.dt.yaml: interrupt-controller@3800c: 'interrupts' does not match any of the regexes: 'pinctrl-[0-9]+'
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/interrupt-controller/idt,32434-pic.yaml

Now this is an error in Linus' tree. Please send a fix.

Rob

#5 lore raw
In reply to Thomas Bogendoerfer
Quoted 9 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.

---
Changes in v4:
- changed comaptible string to idt,32434-pic

I have dropped v3 from irq/irqchip-next and picked v4, but please send patches on top of that version if you have further changes.

Thanks,

	M.
Signature · 1 line
Without deviation from the norm, progress is not possible.
#6 lore raw
Quoted 7 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.

Quoted 6 lines
Quoted 4 lines

---
Changes in v4:
- changed comaptible string to idt,32434-pic

I have dropped v3 from irq/irqchip-next and picked v4, but please send

thanks

Quoted 1 line

patches on top of that version if you have further changes.

sure will do.

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]
#7 lore raw
In reply to Thomas Bogendoerfer
The following commit has been merged into the irq/irqchip-next branch of irqchip:

The following commit has been merged into the irq/irqchip-next branch of irqchip:

Commit-ID:     529ea36818112530791a2ec083a1a3066be6174c
Gitweb:        https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/529ea36818112530791a2ec083a1a3066be6174c
Author:        Thomas Bogendoerfer <[email protected]>
AuthorDate:    Thu, 22 Apr 2021 16:53:28 +02:00
Committer:     Marc Zyngier <[email protected]>
CommitterDate: Thu, 22 Apr 2021 16:03:18 +01:00

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 715eb43..18b0d0b 100644
@@ -583,4 +583,9 @@ config WPCM450_AIC
 	help
 	  Support for the interrupt controller in the Nuvoton WPCM450 BMC SoC.
 
+config IRQ_IDT3243X
+	bool
+	select GENERIC_IRQ_CHIP
+	select IRQ_DOMAIN
+
 endmenu
drivers/irqchip/Makefile +1 -0
index bef5793..1857360 100644
@@ -114,3 +114,4 @@ 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_WPCM450_AIC)		+= irq-wpcm450-aic.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