Linux Renesas SOC kernel development
 help / color / mirror / Atom feed
* [PATCH 00/02] arm64: r8a7795 INTC-EX support using RENESAS_IRQC
@ 2016-02-16  2:26 Magnus Damm
  2016-02-16  2:26 ` [PATCH 01/02] arm64: dts: r8a7795: Add INTC-EX device node Magnus Damm
  2016-02-16  2:26 ` [PATCH 02/02] arm64: renesas: Enable RENESAS_IRQC Magnus Damm
  0 siblings, 2 replies; 3+ messages in thread
From: Magnus Damm @ 2016-02-16  2:26 UTC (permalink / raw)
  To: linux-renesas-soc
  Cc: horms+renesas, Magnus Damm, laurent.pinchart+renesas,
	geert+renesas

arm64: r8a7795 INTC-EX support using RENESAS_IRQC

[PATCH 01/02] arm64: dts: r8a7795: Add INTC-EX device node
[PATCH 02/02] arm64: renesas: Enable RENESAS_IRQC

These two patches add the INTC-EX device node to the r8a7795 DTSI
file and selects RENESAS_IRQC to enable the irqchip driver. Those
two together allow r8a7795 based platforms to use external interrupt
pins IRQ0 -> IRQ5.

The patches in this series can be merged independently in any order,
but for complete run time support the following two patches are also
required:

[PATCH] pinctrl: sh-pfc: r8a7795: Add support for INTC-EX IRQ pins
[PATCH] clk: shmobile: r8a7795: Add INTC-EX clock

The DT compat string "renesas,intc-ex-r8a7795" is already included in
Documentation/devicetree/bindings/interrupt-controller/renesas,irqc.txt

Tested on r8a7795 Salvator-X by toggling IRQ2 using an external GPIO
connected via a loop back adapter on EXIO_D.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---

 Developed on top of renesas-drivers-2016-02-09-v4.5-rc3

 arch/arm64/Kconfig.platforms             |    1 +
 arch/arm64/boot/dts/renesas/r8a7795.dtsi |   15 +++++++++++++++
 2 files changed, 16 insertions(+)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 01/02] arm64: dts: r8a7795: Add INTC-EX device node
  2016-02-16  2:26 [PATCH 00/02] arm64: r8a7795 INTC-EX support using RENESAS_IRQC Magnus Damm
@ 2016-02-16  2:26 ` Magnus Damm
  2016-02-16  2:26 ` [PATCH 02/02] arm64: renesas: Enable RENESAS_IRQC Magnus Damm
  1 sibling, 0 replies; 3+ messages in thread
From: Magnus Damm @ 2016-02-16  2:26 UTC (permalink / raw)
  To: linux-renesas-soc
  Cc: horms+renesas, Magnus Damm, laurent.pinchart+renesas,
	geert+renesas

From: Magnus Damm <damm+renesas@opensource.se>

Add a single r8a7795 INTC-EX device node to support
external IRQ pins IRQ0 -> IRQ5.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---

 arch/arm64/boot/dts/renesas/r8a7795.dtsi |   15 +++++++++++++++
 1 file changed, 15 insertions(+)

--- 0001/arch/arm64/boot/dts/renesas/r8a7795.dtsi
+++ work/arch/arm64/boot/dts/renesas/r8a7795.dtsi	2016-02-16 11:01:37.760513000 +0900
@@ -357,6 +357,21 @@
 			reg = <0 0xe6060000 0 0x50c>;
 		};
 
+		intc_ex: interrupt-controller@e61c0000 {
+			compatible = "renesas,intc-ex-r8a7795", "renesas,irqc";
+			#interrupt-cells = <2>;
+			interrupt-controller;
+			reg = <0 0xe61c0000 0 0x200>;
+			interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH
+				      GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH
+				      GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH
+				      GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH
+				      GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH
+				      GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 407>;
+			power-domains = <&cpg>;
+		};
+
 		dmac0: dma-controller@e6700000 {
 			compatible = "renesas,dmac-r8a7795",
 				     "renesas,rcar-dmac";

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 02/02] arm64: renesas: Enable RENESAS_IRQC
  2016-02-16  2:26 [PATCH 00/02] arm64: r8a7795 INTC-EX support using RENESAS_IRQC Magnus Damm
  2016-02-16  2:26 ` [PATCH 01/02] arm64: dts: r8a7795: Add INTC-EX device node Magnus Damm
@ 2016-02-16  2:26 ` Magnus Damm
  1 sibling, 0 replies; 3+ messages in thread
From: Magnus Damm @ 2016-02-16  2:26 UTC (permalink / raw)
  To: linux-renesas-soc
  Cc: horms+renesas, Magnus Damm, laurent.pinchart+renesas,
	geert+renesas

From: Magnus Damm <damm+renesas@opensource.se>

Select RENESAS_IRQC for Arm64 SoCs from Renesas to enable
build of drivers/irqchip/irq-renesas-irqc.c.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---

 arch/arm64/Kconfig.platforms |    1 +
 1 file changed, 1 insertion(+)

--- 0001/arch/arm64/Kconfig.platforms
+++ work/arch/arm64/Kconfig.platforms	2016-02-16 11:02:55.040513000 +0900
@@ -77,6 +77,7 @@ config ARCH_RENESAS
 	select ARCH_SHMOBILE
 	select PINCTRL
 	select PM_GENERIC_DOMAINS if PM
+	select RENESAS_IRQC
 	help
 	  This enables support for the ARMv8 based Renesas SoCs.
 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-16  2:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-16  2:26 [PATCH 00/02] arm64: r8a7795 INTC-EX support using RENESAS_IRQC Magnus Damm
2016-02-16  2:26 ` [PATCH 01/02] arm64: dts: r8a7795: Add INTC-EX device node Magnus Damm
2016-02-16  2:26 ` [PATCH 02/02] arm64: renesas: Enable RENESAS_IRQC Magnus Damm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox