* [PATCH 1/4] arm64: dts: renesas: r8a77970: Add IPMMU device nodes
2017-11-01 10:35 [PATCH 0/4] arm64: dts: renesas: r8a7796: IPMMU upstream integration Simon Horman
@ 2017-11-01 10:35 ` Simon Horman
2017-11-07 10:17 ` Geert Uytterhoeven
2017-11-01 10:35 ` [PATCH 2/4] arm64: dts: renesas: r8a77970: Tie SYS-DMAC to IPMMU-DS1 Simon Horman
` (3 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: Simon Horman @ 2017-11-01 10:35 UTC (permalink / raw)
To: linux-arm-kernel
Add r8a77970 IPMMU nodes and keep all disabled by default.
Based on work for the r8a7796 by Magnus Damm
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 41 +++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a77970.dtsi b/arch/arm64/boot/dts/renesas/r8a77970.dtsi
index 75d09f1724f0..fbae43ff70b2 100644
--- a/arch/arm64/boot/dts/renesas/r8a77970.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a77970.dtsi
@@ -134,6 +134,47 @@
#power-domain-cells = <1>;
};
+ ipmmu_vi0: mmu at febd0000 {
+ compatible = "renesas,ipmmu-r8a77970";
+ reg = <0 0xfebd0000 0 0x1000>; /* IPMMU-VI0 */
+ renesas,ipmmu-main = <&ipmmu_mm 9>;
+ #iommu-cells = <1>;
+ status = "disabled";
+ };
+
+ ipmmu_ir: mmu at ff8b0000 {
+ compatible = "renesas,ipmmu-r8a77970";
+ reg = <0 0xff8b0000 0 0x1000>; /* IPMMU-IR */
+ renesas,ipmmu-main = <&ipmmu_mm 3>;
+ #iommu-cells = <1>;
+ status = "disabled";
+ };
+
+ ipmmu_rt: mmu at ffc80000 {
+ compatible = "renesas,ipmmu-r8a77970";
+ reg = <0 0xffc80000 0 0x1000>; /* IPMMU-RT */
+ renesas,ipmmu-main = <&ipmmu_mm 7>;
+ #iommu-cells = <1>;
+ status = "disabled";
+ };
+
+ ipmmu_ds1: mmu at e7740000 {
+ compatible = "renesas,ipmmu-r8a7796";
+ reg = <0 0xe7740000 0 0x1000>; /* IPMMU-DS1 */
+ renesas,ipmmu-main = <&ipmmu_mm 1>;
+ #iommu-cells = <1>;
+ status = "disabled";
+ };
+
+ ipmmu_mm: mmu at e67b0000 {
+ compatible = "renesas,ipmmu-r8a77970";
+ reg = <0 0xe67b0000 0 0x1000>; /* IPMMU-MM */
+ interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>;
+ #iommu-cells = <1>;
+ status = "disabled";
+ };
+
intc_ex: interrupt-controller at e61c0000 {
compatible = "renesas,intc-ex-r8a77970", "renesas,irqc";
#interrupt-cells = <2>;
--
2.11.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH 1/4] arm64: dts: renesas: r8a77970: Add IPMMU device nodes
2017-11-01 10:35 ` [PATCH 1/4] arm64: dts: renesas: r8a77970: Add IPMMU device nodes Simon Horman
@ 2017-11-07 10:17 ` Geert Uytterhoeven
0 siblings, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2017-11-07 10:17 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Nov 1, 2017 at 11:35 AM, Simon Horman
<horms+renesas@verge.net.au> wrote:
> Add r8a77970 IPMMU nodes and keep all disabled by default.
>
> Based on work for the r8a7796 by Magnus Damm
>
> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
With the compatible value for ipmmu_ds1 fixed:
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
My comments for r8a7795.dtsi about IPMMU-* comments and power-domains
properties are applicable here, too.
> --- a/arch/arm64/boot/dts/renesas/r8a77970.dtsi
> +++ b/arch/arm64/boot/dts/renesas/r8a77970.dtsi
[...]
> + ipmmu_ds1: mmu at e7740000 {
> + compatible = "renesas,ipmmu-r8a7796";
"renesas,ipmmu-r8a77970"
> + reg = <0 0xe7740000 0 0x1000>; /* IPMMU-DS1 */
> + renesas,ipmmu-main = <&ipmmu_mm 1>;
> + #iommu-cells = <1>;
> + status = "disabled";
> + };
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at 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] 10+ messages in thread
* [PATCH 2/4] arm64: dts: renesas: r8a77970: Tie SYS-DMAC to IPMMU-DS1
2017-11-01 10:35 [PATCH 0/4] arm64: dts: renesas: r8a7796: IPMMU upstream integration Simon Horman
2017-11-01 10:35 ` [PATCH 1/4] arm64: dts: renesas: r8a77970: Add IPMMU device nodes Simon Horman
@ 2017-11-01 10:35 ` Simon Horman
2017-11-07 10:19 ` Geert Uytterhoeven
2017-11-01 10:35 ` [PATCH 3/4] arm64: dts: renesas: r8a77970: Connect Ethernet-AVB to IPMMU-RT Simon Horman
` (2 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: Simon Horman @ 2017-11-01 10:35 UTC (permalink / raw)
To: linux-arm-kernel
Hook up r8a77970 DMAC nodes to the IPMMU. In particular
SYS-DMAC1 and SYS-DMAC2 get tied to IPMMU-DS1.
Based on work for the r8a7796 by Magnus Damm.
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a77970.dtsi b/arch/arm64/boot/dts/renesas/r8a77970.dtsi
index fbae43ff70b2..f60493872089 100644
--- a/arch/arm64/boot/dts/renesas/r8a77970.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a77970.dtsi
@@ -218,6 +218,10 @@
resets = <&cpg 218>;
#dma-cells = <1>;
dma-channels = <8>;
+ iommus = <&ipmmu_ds1 0>, <&ipmmu_ds1 1>,
+ <&ipmmu_ds1 2>, <&ipmmu_ds1 3>,
+ <&ipmmu_ds1 4>, <&ipmmu_ds1 5>,
+ <&ipmmu_ds1 6>, <&ipmmu_ds1 7>;
};
dmac2: dma-controller at e7310000 {
@@ -242,6 +246,10 @@
resets = <&cpg 217>;
#dma-cells = <1>;
dma-channels = <8>;
+ iommus = <&ipmmu_ds1 16>, <&ipmmu_ds1 17>,
+ <&ipmmu_ds1 18>, <&ipmmu_ds1 19>,
+ <&ipmmu_ds1 20>, <&ipmmu_ds1 21>,
+ <&ipmmu_ds1 22>, <&ipmmu_ds1 23>;
};
hscif0: serial at e6540000 {
--
2.11.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH 2/4] arm64: dts: renesas: r8a77970: Tie SYS-DMAC to IPMMU-DS1
2017-11-01 10:35 ` [PATCH 2/4] arm64: dts: renesas: r8a77970: Tie SYS-DMAC to IPMMU-DS1 Simon Horman
@ 2017-11-07 10:19 ` Geert Uytterhoeven
0 siblings, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2017-11-07 10:19 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Nov 1, 2017 at 11:35 AM, Simon Horman
<horms+renesas@verge.net.au> wrote:
> Hook up r8a77970 DMAC nodes to the IPMMU. In particular
> SYS-DMAC1 and SYS-DMAC2 get tied to IPMMU-DS1.
>
> Based on work for the r8a7796 by Magnus Damm.
>
> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at 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] 10+ messages in thread
* [PATCH 3/4] arm64: dts: renesas: r8a77970: Connect Ethernet-AVB to IPMMU-RT
2017-11-01 10:35 [PATCH 0/4] arm64: dts: renesas: r8a7796: IPMMU upstream integration Simon Horman
2017-11-01 10:35 ` [PATCH 1/4] arm64: dts: renesas: r8a77970: Add IPMMU device nodes Simon Horman
2017-11-01 10:35 ` [PATCH 2/4] arm64: dts: renesas: r8a77970: Tie SYS-DMAC to IPMMU-DS1 Simon Horman
@ 2017-11-01 10:35 ` Simon Horman
2017-11-07 10:20 ` Geert Uytterhoeven
2017-11-01 10:35 ` [PATCH 4/4] arm64: dts: renesas: r8a77970: Enable IPMMU-DS1, RT and MM Simon Horman
2017-11-07 10:09 ` [PATCH 0/4] arm64: dts: renesas: r8a7796: IPMMU upstream integration Geert Uytterhoeven
4 siblings, 1 reply; 10+ messages in thread
From: Simon Horman @ 2017-11-01 10:35 UTC (permalink / raw)
To: linux-arm-kernel
Add IPMMU-RT to the Ethernet-AVB device node.
Based on work by Magnus Damm for the r8a7795.
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a77970.dtsi b/arch/arm64/boot/dts/renesas/r8a77970.dtsi
index f60493872089..fa59ee54a888 100644
--- a/arch/arm64/boot/dts/renesas/r8a77970.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a77970.dtsi
@@ -434,6 +434,7 @@
power-domains = <&sysc 32>;
resets = <&cpg 812>;
phy-mode = "rgmii-id";
+ iommus = <&ipmmu_rt 3>;
#address-cells = <1>;
#size-cells = <0>;
};
--
2.11.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/4] arm64: dts: renesas: r8a77970: Connect Ethernet-AVB to IPMMU-RT
2017-11-01 10:35 ` [PATCH 3/4] arm64: dts: renesas: r8a77970: Connect Ethernet-AVB to IPMMU-RT Simon Horman
@ 2017-11-07 10:20 ` Geert Uytterhoeven
0 siblings, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2017-11-07 10:20 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Nov 1, 2017 at 11:35 AM, Simon Horman
<horms+renesas@verge.net.au> wrote:
> Add IPMMU-RT to the Ethernet-AVB device node.
>
> Based on work by Magnus Damm for the r8a7795.
>
> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at 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] 10+ messages in thread
* [PATCH 4/4] arm64: dts: renesas: r8a77970: Enable IPMMU-DS1, RT and MM
2017-11-01 10:35 [PATCH 0/4] arm64: dts: renesas: r8a7796: IPMMU upstream integration Simon Horman
` (2 preceding siblings ...)
2017-11-01 10:35 ` [PATCH 3/4] arm64: dts: renesas: r8a77970: Connect Ethernet-AVB to IPMMU-RT Simon Horman
@ 2017-11-01 10:35 ` Simon Horman
2017-11-07 10:20 ` Geert Uytterhoeven
2017-11-07 10:09 ` [PATCH 0/4] arm64: dts: renesas: r8a7796: IPMMU upstream integration Geert Uytterhoeven
4 siblings, 1 reply; 10+ messages in thread
From: Simon Horman @ 2017-11-01 10:35 UTC (permalink / raw)
To: linux-arm-kernel
Enable the r8a77970 device nodes for IPMMU-DS1, IPMMU-RT
and the shared IPMMU-MM device.
Based on work for the r8a7796 by Magnus Damm.
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm64/boot/dts/renesas/r8a77970.dtsi | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/arm64/boot/dts/renesas/r8a77970.dtsi b/arch/arm64/boot/dts/renesas/r8a77970.dtsi
index fa59ee54a888..548257a92629 100644
--- a/arch/arm64/boot/dts/renesas/r8a77970.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a77970.dtsi
@@ -155,7 +155,6 @@
reg = <0 0xffc80000 0 0x1000>; /* IPMMU-RT */
renesas,ipmmu-main = <&ipmmu_mm 7>;
#iommu-cells = <1>;
- status = "disabled";
};
ipmmu_ds1: mmu at e7740000 {
@@ -163,7 +162,6 @@
reg = <0 0xe7740000 0 0x1000>; /* IPMMU-DS1 */
renesas,ipmmu-main = <&ipmmu_mm 1>;
#iommu-cells = <1>;
- status = "disabled";
};
ipmmu_mm: mmu at e67b0000 {
@@ -172,7 +170,6 @@
interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>;
#iommu-cells = <1>;
- status = "disabled";
};
intc_ex: interrupt-controller at e61c0000 {
--
2.11.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH 4/4] arm64: dts: renesas: r8a77970: Enable IPMMU-DS1, RT and MM
2017-11-01 10:35 ` [PATCH 4/4] arm64: dts: renesas: r8a77970: Enable IPMMU-DS1, RT and MM Simon Horman
@ 2017-11-07 10:20 ` Geert Uytterhoeven
0 siblings, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2017-11-07 10:20 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Nov 1, 2017 at 11:35 AM, Simon Horman
<horms+renesas@verge.net.au> wrote:
> Enable the r8a77970 device nodes for IPMMU-DS1, IPMMU-RT
> and the shared IPMMU-MM device.
>
> Based on work for the r8a7796 by Magnus Damm.
>
> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at 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] 10+ messages in thread
* [PATCH 0/4] arm64: dts: renesas: r8a7796: IPMMU upstream integration
2017-11-01 10:35 [PATCH 0/4] arm64: dts: renesas: r8a7796: IPMMU upstream integration Simon Horman
` (3 preceding siblings ...)
2017-11-01 10:35 ` [PATCH 4/4] arm64: dts: renesas: r8a77970: Enable IPMMU-DS1, RT and MM Simon Horman
@ 2017-11-07 10:09 ` Geert Uytterhoeven
4 siblings, 0 replies; 10+ messages in thread
From: Geert Uytterhoeven @ 2017-11-07 10:09 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Nov 1, 2017 at 11:35 AM, Simon Horman
<horms+renesas@verge.net.au> wrote:
> This series adds DT nodes for IPMMU instances on r8a77970 together with
> connections to r8a77970 on-chip devices: SYS-DMAC and Ethernet-AVB.
Subject s/7796/77970/.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at 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] 10+ messages in thread