Skip to contentSkip to conversation

devicetree: add binding for Sigma Designs SMP86xx interrupt controller

PATCH Applied Mans Rullgard 5 participants 10 messages Jan 20, 2016 – Feb 18, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v4 1/2 devicetree: add binding for Sigma Designs SMP86xx interrupt controller

This adds a binding for the secondary interrupt controller in Sigma Designs SMP86xx and SMP87xx chips.

---
Changes:
- not included in v3

---
 .../interrupt-controller/sigma,smp8642-intc.txt    | 49 ++++++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt
Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt new file +49 -0
new file mode 100644
index 000000000000..2643f3466091
@@ -0,0 +1,49 @@
+Sigma Designs SMP86xx/SMP87xx secondary interrupt controller
+
+Required properties:
+- compatible: should be "sigma,smp8642-intc"
+- reg: physical address of MMIO region
+- ranges: address space mapping of child nodes
+- interrupt-parent: phandle of parent interrupt controller
+- interrupt-controller: boolean
+- #address-cells: should be <1>
+- #size-cells: should be <1>
+
+One child node per control block with properties:
+- reg: address of registers for this control block
+- interrupt-controller: boolean
+- #interrupt-cells: should be <2>, interrupt index and flags per interrupts.txt
+- interrupts: interrupt spec of primary interrupt controller
+
+Example:
+
+interrupt-controller@6e000 {
+	compatible = "sigma,smp8642-intc";
+	reg = <0x6e000 0x400>;
+	ranges = <0x0 0x6e000 0x400>;
+	interrupt-parent = <&gic>;
+	interrupt-controller;
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	irq0: irq0 {
+		reg = <0x000 0x100>;
+		interrupt-controller;
+		#interrupt-cells = <2>;
+		interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
+	};
+
+	irq1: irq1 {
+		reg = <0x100 0x100>;
+		interrupt-controller;
+		#interrupt-cells = <2>;
+		interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
+	};
+
+	irq2: irq2 {
+		reg = <0x300 0x100>;
+		interrupt-controller;
+		#interrupt-cells = <2>;
+		interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
+	};
+};
Signature · 6 lines
2.7.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw

PATCH v4 2/2 irqchip: add support for Sigma Designs SMP86xx/SMP87xx interrupt controller

This adds support for the secondary interrupt controller used in Sigma Designs SMP86xx and SMP87xx chips.

---
Changes from v3:
- use of_address_to_resource() rather accessing "reg" property directly

Boot tested on SMP8643 (tango3) and SMP8759 (tango4)

---
 drivers/irqchip/Kconfig     |   5 +
 drivers/irqchip/Makefile    |   1 +
 drivers/irqchip/irq-tango.c | 232 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 238 insertions(+)
 create mode 100644 drivers/irqchip/irq-tango.c
drivers/irqchip/Kconfig +5 -0
index 4d7294e5d982..399eda54b860 100644
@@ -133,6 +133,11 @@ config ST_IRQCHIP
 	help
 	  Enables SysCfg Controlled IRQs on STi based platforms.
 
+config TANGO_IRQ
+	bool
+	select IRQ_DOMAIN
+	select GENERIC_IRQ_CHIP
+
 config TB10X_IRQC
 	bool
 	select IRQ_DOMAIN
drivers/irqchip/Makefile +1 -0
index 177f78f6e6d6..74512452cc8b 100644
@@ -38,6 +38,7 @@ obj-$(CONFIG_VERSATILE_FPGA_IRQ)	+= irq-versatile-fpga.o
 obj-$(CONFIG_ARCH_NSPIRE)		+= irq-zevio.o
 obj-$(CONFIG_ARCH_VT8500)		+= irq-vt8500.o
 obj-$(CONFIG_ST_IRQCHIP)		+= irq-st.o
+obj-$(CONFIG_TANGO_IRQ)			+= irq-tango.o
 obj-$(CONFIG_TB10X_IRQC)		+= irq-tb10x.o
 obj-$(CONFIG_XTENSA)			+= irq-xtensa-pic.o
 obj-$(CONFIG_XTENSA_MX)			+= irq-xtensa-mx.o
drivers/irqchip/irq-tango.c new file +232 -0

232 lines not on this page · raw message

Signature · 6 lines
2.7.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer Acked-by on v4 1/2
#7 lore raw
In reply to Mans Rullgard
Quoted 37 lines · Mans Rullgard

This adds a binding for the secondary interrupt controller in Sigma Designs SMP86xx and SMP87xx chips.

---
Changes:
- not included in v3

---
 .../interrupt-controller/sigma,smp8642-intc.txt    | 49 ++++++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt
Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt new file +19 -0
new file mode 100644
index 000000000000..2643f3466091
@@ -0,0 +1,49 @@
+Sigma Designs SMP86xx/SMP87xx secondary interrupt controller
+
+Required properties:
+- compatible: should be "sigma,smp8642-intc"
+- reg: physical address of MMIO region
+- ranges: address space mapping of child nodes
+- interrupt-parent: phandle of parent interrupt controller
+- interrupt-controller: boolean
+- #address-cells: should be <1>
+- #size-cells: should be <1>
+
+One child node per control block with properties:
+- reg: address of registers for this control block
+- interrupt-controller: boolean
+- #interrupt-cells: should be <2>, interrupt index and flags per interrupts.txt
+- interrupts: interrupt spec of primary interrupt controller
+
+Example:
+

Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt line 29

Quoted 10 lines
Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt new file +10 -0
+interrupt-controller@6e000 {
+	compatible = "sigma,smp8642-intc";
+	reg = <0x6e000 0x400>;
+	ranges = <0x0 0x6e000 0x400>;
+	interrupt-parent = <&gic>;
+	interrupt-controller;
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	irq0: irq0 {

Keeping with generic names, this should be interrupt-controller@0 (and 100, 300).

Otherwise,

Quoted 23 lines
Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt new file +20 -0
+		reg = <0x000 0x100>;
+		interrupt-controller;
+		#interrupt-cells = <2>;
+		interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
+	};
+
+	irq1: irq1 {
+		reg = <0x100 0x100>;
+		interrupt-controller;
+		#interrupt-cells = <2>;
+		interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
+	};
+
+	irq2: irq2 {
+		reg = <0x300 0x100>;
+		interrupt-controller;
+		#interrupt-cells = <2>;
+		interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
+	};
+};
Signature · 1 line
2.7.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#8 lore raw
Quoted 43 lines · Rob Herring
Quoted 42 lines · Mans Rullgard

This adds a binding for the secondary interrupt controller in Sigma Designs SMP86xx and SMP87xx chips.

---
Changes:
- not included in v3

---
 .../interrupt-controller/sigma,smp8642-intc.txt    | 49 ++++++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt
Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt new file +24 -0
new file mode 100644
index 000000000000..2643f3466091
@@ -0,0 +1,49 @@
+Sigma Designs SMP86xx/SMP87xx secondary interrupt controller
+
+Required properties:
+- compatible: should be "sigma,smp8642-intc"
+- reg: physical address of MMIO region
+- ranges: address space mapping of child nodes
+- interrupt-parent: phandle of parent interrupt controller
+- interrupt-controller: boolean
+- #address-cells: should be <1>
+- #size-cells: should be <1>
+
+One child node per control block with properties:
+- reg: address of registers for this control block
+- interrupt-controller: boolean
+- #interrupt-cells: should be <2>, interrupt index and flags per interrupts.txt
+- interrupts: interrupt spec of primary interrupt controller
+
+Example:
+
+interrupt-controller@6e000 {
+	compatible = "sigma,smp8642-intc";
+	reg = <0x6e000 0x400>;
+	ranges = <0x0 0x6e000 0x400>;
+	interrupt-parent = <&gic>;
Quoted 8 lines

Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt line 29

Quoted 5 lines
Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt new file +5 -0
+	interrupt-controller;
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	irq0: irq0 {

Keeping with generic names, this should be interrupt-controller@0 (and 100, 300).

I could've sworn I'd made that change. Too many versions of this patch floating about...

Quoted 27 lines

Otherwise,

Quoted 23 lines
Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt new file +20 -0
+		reg = <0x000 0x100>;
+		interrupt-controller;
+		#interrupt-cells = <2>;
+		interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
+	};
+
+	irq1: irq1 {
+		reg = <0x100 0x100>;
+		interrupt-controller;
+		#interrupt-cells = <2>;
+		interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
+	};
+
+	irq2: irq2 {
+		reg = <0x300 0x100>;
+		interrupt-controller;
+		#interrupt-cells = <2>;
+		interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
+	};
+};
Signature · 1 line
2.7.0
Signature · 5 lines
Måns Rullgård
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Acked-by on v4 2/2
#2 lore raw

Re: [PATCH v4 2/2] irqchip: add support for Sigma Designs SMP86xx/SMP87xx interrupt controller

In reply to Mans Rullgard
Quoted 8 lines · Mans Rullgard

This adds support for the secondary interrupt controller used in Sigma Designs SMP86xx and SMP87xx chips.

---
Changes from v3:
- use of_address_to_resource() rather accessing "reg" property directly

Quoted 7 lines

Boot tested on SMP8643 (tango3) and SMP8759 (tango4)

---
 drivers/irqchip/Kconfig     |   5 +
 drivers/irqchip/Makefile    |   1 +
 drivers/irqchip/irq-tango.c | 232 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 238 insertions(+)
 create mode 100644 drivers/irqchip/irq-tango.c
	M.
Signature · 5 lines
Jazz is not dead. It just smells funny...
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw

Re: [PATCH v4 2/2] irqchip: add support for Sigma Designs SMP86xx/SMP87xx interrupt controller

Quoted 9 lines · Marc Zyngier
Quoted 7 lines · Mans Rullgard

This adds support for the secondary interrupt controller used in Sigma Designs SMP86xx and SMP87xx chips.

---
Changes from v3:
- use of_address_to_resource() rather accessing "reg" property directly

So, with this version, no changes are required to the DT node written for earlier versions, right?

Quoted 7 lines
Quoted 5 lines
 drivers/irqchip/Kconfig     |   5 +
 drivers/irqchip/Makefile    |   1 +
 drivers/irqchip/irq-tango.c | 232 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 238 insertions(+)
 create mode 100644 drivers/irqchip/irq-tango.c

So, at some point, this driver should appear in one of the upstream repositories, right?

linux-next? irq/core branch on tip?

https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git/log/?h=irq/core
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/

Will it be included in Linux 4.6?

Regards.

#4 lore raw

Re: [PATCH v4 2/2] irqchip: add support for Sigma Designs SMP86xx/SMP87xx interrupt controller

Quoted 23 lines · Marc Gonzalez
Quoted 9 lines · Marc Zyngier
Quoted 7 lines · Mans Rullgard

This adds support for the secondary interrupt controller used in Sigma Designs SMP86xx and SMP87xx chips.

---
Changes from v3:
- use of_address_to_resource() rather accessing "reg" property directly

So, with this version, no changes are required to the DT node written for earlier versions, right?

Quoted 7 lines
Quoted 5 lines
 drivers/irqchip/Kconfig     |   5 +
 drivers/irqchip/Makefile    |   1 +
 drivers/irqchip/irq-tango.c | 232 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 238 insertions(+)
 create mode 100644 drivers/irqchip/irq-tango.c
Quoted 8 lines

So, at some point, this driver should appear in one of the upstream repositories, right?

linux-next? irq/core branch on tip?

https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git/log/?h=irq/core
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/

As I already said on IRC, one of us (Thomas, Jason or me) will queue it, and it will eventually appear in the branches documented in the MAINTAINERS file.

Quoted 1 line

Will it be included in Linux 4.6?

My crystal ball says "Probably".

Thanks,

	M.
Signature · 1 line
Jazz is not dead. It just smells funny...
#5 lore raw

Re: [PATCH v4 2/2] irqchip: add support for Sigma Designs SMP86xx/SMP87xx interrupt controller

Quoted 3 lines · Marc Zyngier

As I already said on IRC, one of us (Thomas, Jason or me) will queue it, and it will eventually appear in the branches documented in the MAINTAINERS file.

Thanks for bringing the T field in the MAINTAINERS file to my attention, I had managed to never notice it until now. Doh!

When there are several T entries, it means they are frequently synced?

Regards.

Applied
#9 lore raw
In reply to Mans Rullgard
Quoted 11 lines · Mans Rullgard

This adds a binding for the secondary interrupt controller in Sigma Designs SMP86xx and SMP87xx chips.

---
Changes:
- not included in v3

---
 .../interrupt-controller/sigma,smp8642-intc.txt    | 49 ++++++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/sigma,smp8642-intc.txt

Applied to irqchip/tango with Rob's Ack. Converted to 'interrupt-controller@XXX' as requested by Rob.

thx,

Jason.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Applied
#6 lore raw

Re: [PATCH v4 2/2] irqchip: add support for Sigma Designs SMP86xx/SMP87xx interrupt controller

In reply to Mans Rullgard

Hi Mans,

Quoted 8 lines · Mans Rullgard

This adds support for the secondary interrupt controller used in Sigma Designs SMP86xx and SMP87xx chips.

---
Changes from v3:
- use of_address_to_resource() rather accessing "reg" property directly

Quoted 7 lines

Boot tested on SMP8643 (tango3) and SMP8759 (tango4)

---
 drivers/irqchip/Kconfig     |   5 +
 drivers/irqchip/Makefile    |   1 +
 drivers/irqchip/irq-tango.c | 232 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 238 insertions(+)
 create mode 100644 drivers/irqchip/irq-tango.c

Applied to irqchip/tango with Marc's Acked-by.

thx,

Jason.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html