* [PATCH 0/3] arm64: dts: renesas: Add INTC-EX device node on R-Car M3-W, V3M, and D3
@ 2017-10-06 12:05 Geert Uytterhoeven
[not found] ` <1507291553-24396-1-git-send-email-geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org>
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2017-10-06 12:05 UTC (permalink / raw)
To: Simon Horman, Magnus Damm
Cc: linux-renesas-soc, devicetree, Geert Uytterhoeven
Hi Simon, Magnus,
This patch series adds device nodes for the Interrupt Controller for
External Devices (INTC-EX) to the DT sources for the R-Car M3-W, V3M, and
D3 SoCs.
This has been tested on Salvator-X with R-Car M3-W.
(FWIW, I also tested on Salvator-XS with H3 ES2.0).
The compatible values used depend on the DT binding update "[PATCH]
dt-bindings: irqchip: renesas-irqc: Document R-Car M3-W, V3M, D3 support",
but they are non-controversial.
Actual use may depend on pinctrl patches (e.g. "[PATCH 2/3] pinctrl:
sh-pfc: r8a7796: Add support for INTC-EX IRQ pins").
Thanks!
Geert Uytterhoeven (3):
arm64: dts: r8a7796: Add INTC-EX device node
arm64: dts: r8a77970: Add INTC-EX device node
arm64: dts: r8a77995: Add INTC-EX device node
arch/arm64/boot/dts/renesas/r8a7796.dtsi | 16 ++++++++++++++++
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 16 ++++++++++++++++
arch/arm64/boot/dts/renesas/r8a77995.dtsi | 16 ++++++++++++++++
3 files changed, 48 insertions(+)
--
2.7.4
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/3] arm64: dts: r8a7796: Add INTC-EX device node
[not found] ` <1507291553-24396-1-git-send-email-geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org>
@ 2017-10-06 12:05 ` Geert Uytterhoeven
0 siblings, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2017-10-06 12:05 UTC (permalink / raw)
To: Simon Horman, Magnus Damm
Cc: linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA,
devicetree-u79uwXL29TY76Z2rM5mHXA, Geert Uytterhoeven
Add a device node for the Interrupt Controller for External Devices
(INTC-EX) on R-Car M3-W, which serves external IRQ pins IRQ[0-5].
Signed-off-by: Geert Uytterhoeven <geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org>
---
Tested on Salvator-X by:
1) Enabling pinctrl and pull-up for IRQ1/GP2_01 in
salvator-common.dtsi:
@@ -376,7 +376,7 @@
};
&pfc {
- pinctrl-0 = <&scif_clk_pins>;
+ pinctrl-0 = <&scif_clk_pins &irq1_pins &keyboard_pins>;
pinctrl-names = "default";
avb_pins: avb {
@@ -407,6 +407,16 @@
function = "i2c2";
};
+ irq1_pins: irq1 {
+ groups = "intc_ex_irq1";
+ function = "intc_ex";
+ };
+
+ keyboard_pins: keyboard {
+ pins = "GP_2_1";
+ bias-pull-up;
+ };
+
pwm1_pins: pwm1 {
groups = "pwm1_a";
function = "pwm1";
2) Triggering IRQ1 by tying EXIO-D pin 50 to GND,
3) Verifying that the IRQC_MONITOR register contents change due to
triggering.
---
arch/arm64/boot/dts/renesas/r8a7796.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a7796.dtsi
index d9c928f9d224015d..afee3360cb4f0f56 100644
--- a/arch/arm64/boot/dts/renesas/r8a7796.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a7796.dtsi
@@ -725,6 +725,22 @@
#power-domain-cells = <1>;
};
+ intc_ex: interrupt-controller@e61c0000 {
+ compatible = "renesas,intc-ex-r8a7796", "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 = <&sysc R8A7796_PD_ALWAYS_ON>;
+ resets = <&cpg 407>;
+ };
+
i2c_dvfs: i2c@e60b0000 {
#address-cells = <1>;
#size-cells = <0>;
--
2.7.4
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3] arm64: dts: r8a77970: Add INTC-EX device node
2017-10-06 12:05 [PATCH 0/3] arm64: dts: renesas: Add INTC-EX device node on R-Car M3-W, V3M, and D3 Geert Uytterhoeven
[not found] ` <1507291553-24396-1-git-send-email-geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org>
@ 2017-10-06 12:05 ` Geert Uytterhoeven
2017-10-06 12:05 ` [PATCH 3/3] arm64: dts: r8a77995: " Geert Uytterhoeven
2017-10-09 7:25 ` [PATCH 0/3] arm64: dts: renesas: Add INTC-EX device node on R-Car M3-W, V3M, and D3 Simon Horman
3 siblings, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2017-10-06 12:05 UTC (permalink / raw)
To: Simon Horman, Magnus Damm
Cc: linux-renesas-soc, devicetree, Geert Uytterhoeven
Add a device node for the Interrupt Controller for External Devices
(INTC-EX) on R-Car V3M, which serves external IRQ pins IRQ[0-5].
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a77970.dtsi b/arch/arm64/boot/dts/renesas/r8a77970.dtsi
index dab9735324328e42..48c52efd123c49da 100644
--- a/arch/arm64/boot/dts/renesas/r8a77970.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a77970.dtsi
@@ -140,6 +140,22 @@
#power-domain-cells = <1>;
};
+ intc_ex: interrupt-controller@e61c0000 {
+ compatible = "renesas,intc-ex-r8a77970", "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 = <&sysc 32>;
+ resets = <&cpg 407>;
+ };
+
prr: chipid@fff00044 {
compatible = "renesas,prr";
reg = <0 0xfff00044 0 4>;
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3] arm64: dts: r8a77995: Add INTC-EX device node
2017-10-06 12:05 [PATCH 0/3] arm64: dts: renesas: Add INTC-EX device node on R-Car M3-W, V3M, and D3 Geert Uytterhoeven
[not found] ` <1507291553-24396-1-git-send-email-geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org>
2017-10-06 12:05 ` [PATCH 2/3] arm64: dts: r8a77970: " Geert Uytterhoeven
@ 2017-10-06 12:05 ` Geert Uytterhoeven
2017-10-09 7:25 ` [PATCH 0/3] arm64: dts: renesas: Add INTC-EX device node on R-Car M3-W, V3M, and D3 Simon Horman
3 siblings, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2017-10-06 12:05 UTC (permalink / raw)
To: Simon Horman, Magnus Damm
Cc: linux-renesas-soc, devicetree, Geert Uytterhoeven
Add a device node for the Interrupt Controller for External Devices
(INTC-EX) on R-Car D3, which serves external IRQ pins IRQ[0-5].
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
arch/arm64/boot/dts/renesas/r8a77995.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a77995.dtsi b/arch/arm64/boot/dts/renesas/r8a77995.dtsi
index 56e42921e879673d..b2411a4d1debc62c 100644
--- a/arch/arm64/boot/dts/renesas/r8a77995.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a77995.dtsi
@@ -139,6 +139,22 @@
#power-domain-cells = <1>;
};
+ intc_ex: interrupt-controller@e61c0000 {
+ compatible = "renesas,intc-ex-r8a77995", "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 = <&sysc R8A77995_PD_ALWAYS_ON>;
+ resets = <&cpg 407>;
+ };
+
gpio0: gpio@e6050000 {
compatible = "renesas,gpio-r8a77995",
"renesas,rcar-gen3-gpio",
--
2.7.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/3] arm64: dts: renesas: Add INTC-EX device node on R-Car M3-W, V3M, and D3
2017-10-06 12:05 [PATCH 0/3] arm64: dts: renesas: Add INTC-EX device node on R-Car M3-W, V3M, and D3 Geert Uytterhoeven
` (2 preceding siblings ...)
2017-10-06 12:05 ` [PATCH 3/3] arm64: dts: r8a77995: " Geert Uytterhoeven
@ 2017-10-09 7:25 ` Simon Horman
3 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2017-10-09 7:25 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Magnus Damm, linux-renesas-soc, devicetree
On Fri, Oct 06, 2017 at 02:05:50PM +0200, Geert Uytterhoeven wrote:
> Hi Simon, Magnus,
>
> This patch series adds device nodes for the Interrupt Controller for
> External Devices (INTC-EX) to the DT sources for the R-Car M3-W, V3M, and
> D3 SoCs.
>
> This has been tested on Salvator-X with R-Car M3-W.
> (FWIW, I also tested on Salvator-XS with H3 ES2.0).
>
> The compatible values used depend on the DT binding update "[PATCH]
> dt-bindings: irqchip: renesas-irqc: Document R-Car M3-W, V3M, D3 support",
> but they are non-controversial.
>
> Actual use may depend on pinctrl patches (e.g. "[PATCH 2/3] pinctrl:
> sh-pfc: r8a7796: Add support for INTC-EX IRQ pins").
>
> Thanks!
>
> Geert Uytterhoeven (3):
> arm64: dts: r8a7796: Add INTC-EX device node
> arm64: dts: r8a77970: Add INTC-EX device node
> arm64: dts: r8a77995: Add INTC-EX device node
Thanks, applied.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-10-09 7:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-06 12:05 [PATCH 0/3] arm64: dts: renesas: Add INTC-EX device node on R-Car M3-W, V3M, and D3 Geert Uytterhoeven
[not found] ` <1507291553-24396-1-git-send-email-geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org>
2017-10-06 12:05 ` [PATCH 1/3] arm64: dts: r8a7796: Add INTC-EX device node Geert Uytterhoeven
2017-10-06 12:05 ` [PATCH 2/3] arm64: dts: r8a77970: " Geert Uytterhoeven
2017-10-06 12:05 ` [PATCH 3/3] arm64: dts: r8a77995: " Geert Uytterhoeven
2017-10-09 7:25 ` [PATCH 0/3] arm64: dts: renesas: Add INTC-EX device node on R-Car M3-W, V3M, and D3 Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).