arm64: dts: renesas: Add IPMMU device nodes V2
Subsystems (2)
Magnus Damm
maintainerv2 cover arm64: dts: renesas: Add IPMMU device nodes V2
arm64: dts: renesas: Add IPMMU device nodes V2
[PATCH v2 01/03] arm64: dts: renesas: r8a77965: Add IPMMU devices nodes [PATCH v2 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes [PATCH v2 03/03] arm64: dts: renesas: r8a77990: Add IPMMU devices nodes
This series is the second attempt to add IPMMU device nodes to R-Car M3-N, R-Car V3H and R-Car E3 SoCs.
The IPMMU DT binding changes are not yet merged upstream however they have been documented by the following patches:
[PATCH] iommu/ipmmu-vmsa: Document R-Car M3-N IPMMU DT bindings [PATCH] iommu/ipmmu-vmsa: Document R-Car V3H and E3 IPMMU DT bindings
Please see each individual patch for list of changes.
---
arch/arm64/boot/dts/renesas/r8a77965.dtsi | 89 +++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 63 ++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77990.dtsi | 82 ++++++++++++++++++++++++++ 3 files changed, 234 insertions(+)
Magnus Damm
maintainerPATCH v2 1/3 arm64: dts: renesas: r8a77965: Add IPMMU devices nodes
From: Magnus Damm <[email protected]>
Add IPMMU device nodes for the R-Car M3-N SoC aka r8a77965.
The r8a77965 IPMMU is quite similar to r8a7796 however VP0 has been added and PV1 has been removed. Also the IMSSTR bit assignment has been reworked.
---
The DT binding for the M3-N IPMMU has earlier been documented in:
[PATCH] iommu/ipmmu-vmsa: Document R-Car M3-N IPMMU DT bindings
Changes since V1:
- Added Reviewed-by from Simon - thanks!
arch/arm64/boot/dts/renesas/r8a77965.dtsi | 89 +++++++++++++++++++++++++++++
1 file changed, 89 insertions(+)
arch/arm64/boot/dts/renesas/r8a77965.dtsi +89 -0
@@ -611,6 +611,95 @@ dma-channels = <16>; }; + ipmmu_ds0: mmu@e6740000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xe6740000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 0>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_ds1: mmu@e7740000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xe7740000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 1>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_hc: mmu@e6570000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xe6570000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 2>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_ir: mmu@ff8b0000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xff8b0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 3>; + power-domains = <&sysc R8A77965_PD_A3IR>; + #iommu-cells = <1>; + }; + + ipmmu_mm: mmu@e67b0000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xe67b0000 0 0x1000>; + interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_mp: mmu@ec670000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xec670000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 4>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_pv0: mmu@fd800000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xfd800000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 6>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_rt: mmu@ffc80000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xffc80000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 10>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_vc0: mmu@fe6b0000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xfe6b0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 12>; + power-domains = <&sysc R8A77965_PD_A3VC>; + #iommu-cells = <1>; + }; + + ipmmu_vi0: mmu@febd0000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xfebd0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 14>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_vp0: mmu@fe990000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xfe990000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 16>; + power-domains = <&sysc R8A77965_PD_A3VP>; + #iommu-cells = <1>; + }; + avb: ethernet@e6800000 { compatible = "renesas,etheravb-r8a77965", "renesas,etheravb-rcar-gen3";
Re: [PATCH v2 01/03] arm64: dts: renesas: r8a77965: Add IPMMU devices nodes
Quoted 10 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Add IPMMU device nodes for the R-Car M3-N SoC aka r8a77965.
The r8a77965 IPMMU is quite similar to r8a7796 however VP0 has been added and PV1 has been removed. Also the IMSSTR bit assignment has been reworked.
Signed-off-by Magnus Damm <[email protected]>Reviewed-by Simon Horman <[email protected]>
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] 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
Magnus Damm
maintainerPATCH v2 2/3 arm64: dts: renesas: r8a77980: Add IPMMU devices nodes
In reply to Magnus DammFrom: Magnus Damm <[email protected]>
Add IPMMU device nodes for the R-Car V3H SoC aka r8a77980.
The r8a77980 IPMMU is quite similar to r8a77970 however VC0 has been added. The IMSSTR bit assignment has also been reworked. Power domains are also quite different however the the documentation is rather unclear about this topic.
Until we know better VC0 gets assigned to R8A77980_PD_ALWAYS_ON.
---
Developed on top of renesas-devel-20180614v2-v4.17
Changes since V1:
- Added ipmmu_vip0 and ipmmu_vip1 from 1.00 data sheet
- Interrupt bit configuration based on 1.00 data sheet
- Updated order of DT nodes per request by Simon
arch/arm64/boot/dts/renesas/r8a77980.dtsi | 63 +++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+)
arch/arm64/boot/dts/renesas/r8a77980.dtsi +63 -0
@@ -427,6 +427,69 @@ }; }; + ipmmu_ds1: mmu@e7740000 { + compatible = "renesas,ipmmu-r8a77980"; + reg = <0 0xe7740000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 0>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_vip0: mmu@e7b00000 { + compatible = "renesas,ipmmu-r8a77980"; + reg = <0 0xe7b00000 0 0x1000>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_vip1: mmu@e7960000 { + compatible = "renesas,ipmmu-r8a77980"; + reg = <0 0xe7960000 0 0x1000>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_ir: mmu@ff8b0000 { + compatible = "renesas,ipmmu-r8a77980"; + reg = <0 0xff8b0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 3>; + power-domains = <&sysc R8A77980_PD_A3IR>; + #iommu-cells = <1>; + }; + + ipmmu_mm: mmu@e67b0000 { + compatible = "renesas,ipmmu-r8a77980"; + reg = <0 0xe67b0000 0 0x1000>; + interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_rt: mmu@ffc80000 { + compatible = "renesas,ipmmu-r8a77980"; + reg = <0 0xffc80000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 10>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_vc0: mmu@fe6b0000 { + compatible = "renesas,ipmmu-r8a77980"; + reg = <0 0xfe6b0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 12>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_vi0: mmu@febd0000 { + compatible = "renesas,ipmmu-r8a77980"; + reg = <0 0xfebd0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 14>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + avb: ethernet@e6800000 { compatible = "renesas,etheravb-r8a77980", "renesas,etheravb-rcar-gen3";
Re: [PATCH v2 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes
Hi Magnus,
Thanks for your patch!
Quoted 6 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Add IPMMU device nodes for the R-Car V3H SoC aka r8a77980.
The r8a77980 IPMMU is quite similar to r8a77970 however VC0 has been added. The IMSSTR bit assignment has also been
... VC0, VIP0, and VIP1 have been added.
Quoted 10 lines
reworked. Power domains are also quite different however the the documentation is rather unclear about this topic.
Until we know better VC0 gets assigned to
R8A77980_PD_ALWAYS_ON.Signed-off-by Magnus Damm <[email protected]>Changes since V1:
- Addedipmmu_vip0andipmmu_vip1from 1.00 data sheet
- Interrupt bit configuration based on 1.00 data sheet
... which lacks the bits for VIP0 and VIP1, sigh...
Quoted 1 line
- Updated order of DT nodes per request by Simon
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
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
Magnus Damm
maintainerPATCH v2 3/3 arm64: dts: renesas: r8a77990: Add IPMMU devices nodes
In reply to Magnus DammFrom: Magnus Damm <[email protected]>
Add IPMMU device nodes for the R-Car E3 SoC aka r8a77990.
The r8a77990 IPMMU is similar to r8a77995. Power domains are however different and the public documentation is still unclear.
Based on preliminary information from the hardware team the R-Car E3 SoC comes with an IPMMU-VP0 device in an Always-on power domain and the IPMMU-VC0 is placed as expected in the A3VC power domain.
---
Changes since V1:
- Updated patch description based on information from hardware team
- Added Reviewed-by from Simon - thanks!
arch/arm64/boot/dts/renesas/r8a77990.dtsi | 82 +++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+)
arch/arm64/boot/dts/renesas/r8a77990.dtsi +82 -0
@@ -7,6 +7,7 @@ #include <dt-bindings/clock/renesas-cpg-mssr.h> #include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/power/r8a77990-sysc.h> / { compatible = "renesas,r8a77990";
@@ -191,6 +192,87 @@ #power-domain-cells = <1>; }; + ipmmu_ds0: mmu@e6740000 { + compatible = "renesas,ipmmu-r8a77990"; + reg = <0 0xe6740000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 0>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_ds1: mmu@e7740000 { + compatible = "renesas,ipmmu-r8a77990"; + reg = <0 0xe7740000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 1>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_hc: mmu@e6570000 { + compatible = "renesas,ipmmu-r8a77990"; + reg = <0 0xe6570000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 2>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_mm: mmu@e67b0000 { + compatible = "renesas,ipmmu-r8a77990"; + reg = <0 0xe67b0000 0 0x1000>; + interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_mp: mmu@ec670000 { + compatible = "renesas,ipmmu-r8a77990"; + reg = <0 0xec670000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 4>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_pv0: mmu@fd800000 { + compatible = "renesas,ipmmu-r8a77990"; + reg = <0 0xfd800000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 6>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_rt: mmu@ffc80000 { + compatible = "renesas,ipmmu-r8a77990"; + reg = <0 0xffc80000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 10>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_vc0: mmu@fe6b0000 { + compatible = "renesas,ipmmu-r8a77990"; + reg = <0 0xfe6b0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 12>; + power-domains = <&sysc R8A77990_PD_A3VC>; + #iommu-cells = <1>; + }; + + ipmmu_vi0: mmu@febd0000 { + compatible = "renesas,ipmmu-r8a77990"; + reg = <0 0xfebd0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 14>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_vp0: mmu@fe990000 { + compatible = "renesas,ipmmu-r8a77990"; + reg = <0 0xfe990000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 16>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + avb: ethernet@e6800000 { compatible = "renesas,etheravb-r8a77990", "renesas,etheravb-rcar-gen3";
Re: [PATCH v2 03/03] arm64: dts: renesas: r8a77990: Add IPMMU devices nodes
Quoted 7 lines · Magnus Damm
From: Magnus Damm <[email protected]>
Add IPMMU device nodes for the R-Car E3 SoC aka r8a77990.
The r8a77990 IPMMU is similar to r8a77995. Power domains are however different and the public documentation is still unclear.
Quoted 6 lines
Based on preliminary information from the hardware team the R-Car E3 SoC comes with an IPMMU-VP0 device in an Always-on power domain and the IPMMU-VC0 is placed as expected in the A3VC power domain.
Signed-off-by Magnus Damm <[email protected]>Reviewed-by Simon Horman <[email protected]>
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] 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
Quoted 9 lines · Magnus Damm
arm64: dts: renesas: Add IPMMU device nodes V2
[PATCH v2 01/03] arm64: dts: renesas: r8a77965: Add IPMMU devices nodes [PATCH v2 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes [PATCH v2 03/03] arm64: dts: renesas: r8a77990: Add IPMMU devices nodes
This series is the second attempt to add IPMMU device nodes to R-Car M3-N, R-Car V3H and R-Car E3 SoCs.
Quoted 7 lines
The IPMMU DT binding changes are not yet merged upstream however they have been documented by the following patches:
[PATCH] iommu/ipmmu-vmsa: Document R-Car M3-N IPMMU DT bindings [PATCH] iommu/ipmmu-vmsa: Document R-Car V3H and E3 IPMMU DT bindings
Please see each individual patch for list of changes.
Hi Magnus,
as per my comment on v1, did you consider merging these patches into one patch. Olof has asked that we consider such consolidation.
Quoted 16 lines · Simon Horman
Quoted 15 lines · Magnus Damm
arm64: dts: renesas: Add IPMMU device nodes V2
[PATCH v2 01/03] arm64: dts: renesas: r8a77965: Add IPMMU devices nodes [PATCH v2 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes [PATCH v2 03/03] arm64: dts: renesas: r8a77990: Add IPMMU devices nodes
This series is the second attempt to add IPMMU device nodes to R-Car M3-N, R-Car V3H and R-Car E3 SoCs.
The IPMMU DT binding changes are not yet merged upstream however they have been documented by the following patches:
[PATCH] iommu/ipmmu-vmsa: Document R-Car M3-N IPMMU DT bindings [PATCH] iommu/ipmmu-vmsa: Document R-Car V3H and E3 IPMMU DT bindings
Quoted 6 lines
Quoted 1 line
Please see each individual patch for list of changes.
Hi Magnus,
as per my comment on v1, did you consider merging these patches into one patch. Olof has asked that we consider such consolidation.
The above dependencies now appear have been accepted for v4.19.
I have now applied this series. I took the liberty of squashing all three patches into one. The result is as follows.
From: Magnus Damm <[email protected]>
Date: Sun, 17 Jun 2018 19:42:13 +0900
Subject: [PATCH] arm64: dts: renesas: r8a779{65,80,90}: Add IPMMU devices
nodes
Add IPMMU device nodes for the R-Car M3-N (r8a77965), V3H (r8a77980) and E3 (r8a77990) SoCs.
* The r8a77965 IPMMU is quite similar to r8a7796 however VP0 has been added and PV1 has been removed. Also the IMSSTR bit assignment has been reworked.
* The r8a77980 IPMMU is quite similar to r8a77970 however VC0 has been added. The IMSSTR bit assignment has also been reworked. Power domains are also quite different however the the documentation is rather unclear about this topic.
Until we know better VC0 gets assigned to R8A77980_PD_ALWAYS_ON.
* The r8a77990 IPMMU is similar to r8a77995. Power domains are however different and the public documentation is still unclear.
Based on preliminary information from the hardware team the R-Car E3 SoC comes with an IPMMU-VP0 device in an Always-on power domain and the IPMMU-VC0 is placed as expected in the A3VC power domain.
--- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 89 +++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 63 ++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77990.dtsi | 82 ++++++++++++++++++++++++++++ 3 files changed, 234 insertions(+)
arch/arm64/boot/dts/renesas/r8a77965.dtsi +89 -0
@@ -704,6 +704,95 @@ dma-channels = <16>; }; + ipmmu_ds0: mmu@e6740000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xe6740000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 0>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_ds1: mmu@e7740000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xe7740000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 1>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_hc: mmu@e6570000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xe6570000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 2>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_ir: mmu@ff8b0000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xff8b0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 3>; + power-domains = <&sysc R8A77965_PD_A3IR>; + #iommu-cells = <1>; + }; + + ipmmu_mm: mmu@e67b0000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xe67b0000 0 0x1000>; + interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_mp: mmu@ec670000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xec670000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 4>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_pv0: mmu@fd800000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xfd800000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 6>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_rt: mmu@ffc80000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xffc80000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 10>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_vc0: mmu@fe6b0000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xfe6b0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 12>; + power-domains = <&sysc R8A77965_PD_A3VC>; + #iommu-cells = <1>; + }; + + ipmmu_vi0: mmu@febd0000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xfebd0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 14>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + #iommu-cells = <1>; + }; + + ipmmu_vp0: mmu@fe990000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xfe990000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 16>; + power-domains = <&sysc R8A77965_PD_A3VP>; + #iommu-cells = <1>; + }; + avb: ethernet@e6800000 { compatible = "renesas,etheravb-r8a77965", "renesas,etheravb-rcar-gen3";
arch/arm64/boot/dts/renesas/r8a77980.dtsi +63 -0
69 lines not on this page · raw message
arch/arm64/boot/dts/renesas/r8a77990.dtsi +82 -0
94 lines not on this page · raw message
Signature · 1 line
2.11.0
Hi Simon,
Quoted 21 lines · Simon Horman
Quoted 20 lines · Simon Horman
Quoted 9 lines · Magnus Damm
arm64: dts: renesas: Add IPMMU device nodes V2
[PATCH v2 01/03] arm64: dts: renesas: r8a77965: Add IPMMU devices nodes [PATCH v2 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes [PATCH v2 03/03] arm64: dts: renesas: r8a77990: Add IPMMU devices nodes
This series is the second attempt to add IPMMU device nodes to R-Car M3-N, R-Car V3H and R-Car E3 SoCs.
Quoted 7 lines
The IPMMU DT binding changes are not yet merged upstream however they have been documented by the following patches:
[PATCH] iommu/ipmmu-vmsa: Document R-Car M3-N IPMMU DT bindings [PATCH] iommu/ipmmu-vmsa: Document R-Car V3H and E3 IPMMU DT bindings
Please see each individual patch for list of changes.
Hi Magnus,
Quoted 7 lines
Quoted 2 lines
as per my comment on v1, did you consider merging these patches into one patch. Olof has asked that we consider such consolidation.
The above dependencies now appear have been accepted for v4.19.
I have now applied this series. I took the liberty of squashing all three patches into one. The result is as follows.
I tend to disagree...
Quoted 22 lines
From: Magnus Damm <[email protected]>
Date: Sun, 17 Jun 2018 19:42:13 +0900
Subject: [PATCH] arm64: dts: renesas: r8a779{65,80,90}: Add IPMMU devices
nodesAdd IPMMU device nodes for the R-Car M3-N (r8a77965), V3H (r8a77980) and E3 (r8a77990) SoCs.
* The r8a77965 IPMMU is quite similar to r8a7796 however VP0 has been added and PV1 has been removed. Also the IMSSTR bit assignment has been reworked.
* The r8a77980 IPMMU is quite similar to r8a77970 however VC0 has been added. The IMSSTR bit assignment has also been reworked. Power domains are also quite different however the the documentation is rather unclear about this topic.
Until we know better VC0 gets assigned to
R8A77980_PD_ALWAYS_ON.* The r8a77990 IPMMU is similar to r8a77995. Power domains are however different and the public documentation is still unclear.
Quoted 6 lines
Based on preliminary information from the hardware team the R-Car E3 SoC comes with an IPMMU-VP0 device in an Always-on power domain and the IPMMU-VC0 is placed as expected in the A3VC power domain.
Signed-off-by Magnus Damm <[email protected]>Signed-off-by Simon Horman <[email protected]>
As is obvious from the need for three bullets with extensive explanation above, the IPMMU hierarchies for the various SoCs do differ a lot. Hence this is not a case of mindless copying/adjusting the device node for the (same and identical) device found on multiple SoC variants.
There's also a high probability of future fixes, cfr. "Until we know better ..." and "the public documentation is still unclear".
Given the above, I think it's better to keep them as 3 separate commits.
Thanks!
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] 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
Quoted 68 lines · Geert Uytterhoeven
Hi Simon,
Quoted 21 lines · Simon Horman
Quoted 20 lines · Simon Horman
Quoted 9 lines · Magnus Damm
arm64: dts: renesas: Add IPMMU device nodes V2
[PATCH v2 01/03] arm64: dts: renesas: r8a77965: Add IPMMU devices nodes [PATCH v2 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes [PATCH v2 03/03] arm64: dts: renesas: r8a77990: Add IPMMU devices nodes
This series is the second attempt to add IPMMU device nodes to R-Car M3-N, R-Car V3H and R-Car E3 SoCs.
Quoted 7 lines
The IPMMU DT binding changes are not yet merged upstream however they have been documented by the following patches:
[PATCH] iommu/ipmmu-vmsa: Document R-Car M3-N IPMMU DT bindings [PATCH] iommu/ipmmu-vmsa: Document R-Car V3H and E3 IPMMU DT bindings
Please see each individual patch for list of changes.
Hi Magnus,
Quoted 7 lines
Quoted 2 lines
as per my comment on v1, did you consider merging these patches into one patch. Olof has asked that we consider such consolidation.
The above dependencies now appear have been accepted for v4.19.
I have now applied this series. I took the liberty of squashing all three patches into one. The result is as follows.
I tend to disagree...
Quoted 22 lines
From: Magnus Damm <[email protected]>
Date: Sun, 17 Jun 2018 19:42:13 +0900
Subject: [PATCH] arm64: dts: renesas: r8a779{65,80,90}: Add IPMMU devices
nodesAdd IPMMU device nodes for the R-Car M3-N (r8a77965), V3H (r8a77980) and E3 (r8a77990) SoCs.
* The r8a77965 IPMMU is quite similar to r8a7796 however VP0 has been added and PV1 has been removed. Also the IMSSTR bit assignment has been reworked.
* The r8a77980 IPMMU is quite similar to r8a77970 however VC0 has been added. The IMSSTR bit assignment has also been reworked. Power domains are also quite different however the the documentation is rather unclear about this topic.
Until we know better VC0 gets assigned to
R8A77980_PD_ALWAYS_ON.* The r8a77990 IPMMU is similar to r8a77995. Power domains are however different and the public documentation is still unclear.
Quoted 6 lines
Based on preliminary information from the hardware team the R-Car E3 SoC comes with an IPMMU-VP0 device in an Always-on power domain and the IPMMU-VC0 is placed as expected in the A3VC power domain.
Signed-off-by Magnus Damm <[email protected]>Signed-off-by Simon Horman <[email protected]>As is obvious from the need for three bullets with extensive explanation above, the IPMMU hierarchies for the various SoCs do differ a lot. Hence this is not a case of mindless copying/adjusting the device node for the (same and identical) device found on multiple SoC variants.
Quoted 4 lines
There's also a high probability of future fixes, cfr. "Until we know better ..." and "the public documentation is still unclear".
Given the above, I think it's better to keep them as 3 separate commits.
Sure, there are details, and they are important.
But at a high level we are adding all the IPMMU nodes to 3 different SoCs.
Quoted 44 lines · Simon Horman
Quoted 16 lines · Simon Horman
Quoted 15 lines · Magnus Damm
arm64: dts: renesas: Add IPMMU device nodes V2
[PATCH v2 01/03] arm64: dts: renesas: r8a77965: Add IPMMU devices nodes [PATCH v2 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes [PATCH v2 03/03] arm64: dts: renesas: r8a77990: Add IPMMU devices nodes
This series is the second attempt to add IPMMU device nodes to R-Car M3-N, R-Car V3H and R-Car E3 SoCs.
The IPMMU DT binding changes are not yet merged upstream however they have been documented by the following patches:
[PATCH] iommu/ipmmu-vmsa: Document R-Car M3-N IPMMU DT bindings [PATCH] iommu/ipmmu-vmsa: Document R-Car V3H and E3 IPMMU DT bindings
Quoted 6 lines
Quoted 1 line
Please see each individual patch for list of changes.
Hi Magnus,
as per my comment on v1, did you consider merging these patches into one patch. Olof has asked that we consider such consolidation.
The above dependencies now appear have been accepted for v4.19.
I have now applied this series. I took the liberty of squashing all three patches into one. The result is as follows.
From: Magnus Damm <[email protected]>
Date: Sun, 17 Jun 2018 19:42:13 +0900
Subject: [PATCH] arm64: dts: renesas: r8a779{65,80,90}: Add IPMMU devices
nodesAdd IPMMU device nodes for the R-Car M3-N (r8a77965), V3H (r8a77980) and E3 (r8a77990) SoCs.
* The r8a77965 IPMMU is quite similar to r8a7796 however VP0 has been added and PV1 has been removed. Also the IMSSTR bit assignment has been reworked.
arch/arm64/boot/dts/renesas/r8a77965.dtsi line 737
Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi +7
-0+ ipmmu_ir: mmu@ff8b0000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xff8b0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 3>; + power-domains = <&sysc R8A77965_PD_A3IR>; + #iommu-cells = <1>; + };
Please note that R-Car Gen3 HardWare Manual Errata for Rev. 1.00 (Aug 24, 2018) removed the IPMMU-IR IOMMU instance on R-Car M3-N, as this SoC does not have an Image Processing Unit (IMP-X5) nor the A3IR power domain.
I've sent a patch to fix that.
Quoted 6 lines
* The r8a77980 IPMMU is quite similar to r8a77970 however VC0 has been added. The IMSSTR bit assignment has also been reworked. Power domains are also quite different however the the documentation is rather unclear about this topic.
Until we know better VC0 gets assigned to
R8A77980_PD_ALWAYS_ON.
JFTR, this matches the R-Car Gen3 HardWare Manual Errata for Rev. 1.00 (Jul 20, 2018).
Quoted 6 lines
* The r8a77990 IPMMU is similar to r8a77995. Power domains are however different and the public documentation is still unclear.
Based on preliminary information from the hardware team the R-Car E3 SoC comes with an IPMMU-VP0 device in an Always-on power domain and the IPMMU-VC0 is placed as expected in the A3VC power domain.
JFTR, this matches the R-Car Gen3 HardWare Manual Errata for Rev. 1.00 (Jul 20, 2018).
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
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
Quoted 44 lines · Simon Horman
Quoted 16 lines · Simon Horman
Quoted 15 lines · Magnus Damm
arm64: dts: renesas: Add IPMMU device nodes V2
[PATCH v2 01/03] arm64: dts: renesas: r8a77965: Add IPMMU devices nodes [PATCH v2 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes [PATCH v2 03/03] arm64: dts: renesas: r8a77990: Add IPMMU devices nodes
This series is the second attempt to add IPMMU device nodes to R-Car M3-N, R-Car V3H and R-Car E3 SoCs.
The IPMMU DT binding changes are not yet merged upstream however they have been documented by the following patches:
[PATCH] iommu/ipmmu-vmsa: Document R-Car M3-N IPMMU DT bindings [PATCH] iommu/ipmmu-vmsa: Document R-Car V3H and E3 IPMMU DT bindings
Quoted 6 lines
Quoted 1 line
Please see each individual patch for list of changes.
Hi Magnus,
as per my comment on v1, did you consider merging these patches into one patch. Olof has asked that we consider such consolidation.
The above dependencies now appear have been accepted for v4.19.
I have now applied this series. I took the liberty of squashing all three patches into one. The result is as follows.
From: Magnus Damm <[email protected]>
Date: Sun, 17 Jun 2018 19:42:13 +0900
Subject: [PATCH] arm64: dts: renesas: r8a779{65,80,90}: Add IPMMU devices
nodesAdd IPMMU device nodes for the R-Car M3-N (r8a77965), V3H (r8a77980) and E3 (r8a77990) SoCs.
* The r8a77965 IPMMU is quite similar to r8a7796 however VP0 has been added and PV1 has been removed. Also the IMSSTR bit assignment has been reworked.
arch/arm64/boot/dts/renesas/r8a77965.dtsi line 737
Quoted 8 lines
arch/arm64/boot/dts/renesas/r8a77965.dtsi +7
-0+ ipmmu_ir: mmu@ff8b0000 { + compatible = "renesas,ipmmu-r8a77965"; + reg = <0 0xff8b0000 0 0x1000>; + renesas,ipmmu-main = <&ipmmu_mm 3>; + power-domains = <&sysc R8A77965_PD_A3IR>; + #iommu-cells = <1>; + };
Please note that R-Car Gen3 HardWare Manual Errata for Rev. 1.00 (Aug 24, 2018) removed the IPMMU-IR IOMMU instance on R-Car M3-N, as this SoC does not have an Image Processing Unit (IMP-X5) nor the A3IR power domain.
I've sent a patch to fix that.
Quoted 6 lines
* The r8a77980 IPMMU is quite similar to r8a77970 however VC0 has been added. The IMSSTR bit assignment has also been reworked. Power domains are also quite different however the the documentation is rather unclear about this topic.
Until we know better VC0 gets assigned to
R8A77980_PD_ALWAYS_ON.
JFTR, this matches the R-Car Gen3 HardWare Manual Errata for Rev. 1.00 (Jul 20, 2018).
Quoted 6 lines
* The r8a77990 IPMMU is similar to r8a77995. Power domains are however different and the public documentation is still unclear.
Based on preliminary information from the hardware team the R-Car E3 SoC comes with an IPMMU-VP0 device in an Always-on power domain and the IPMMU-VC0 is placed as expected in the A3VC power domain.
JFTR, this matches the R-Car Gen3 HardWare Manual Errata for Rev. 1.00 (Jul 20, 2018).
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
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