arm64: dts: renesas: Add IPMMU device nodes
Subsystems (2)
Magnus Damm
maintainercover arm64: dts: renesas: Add IPMMU device nodes
arm64: dts: renesas: Add IPMMU device nodes
[PATCH 01/03] arm64: dts: renesas: r8a77965: Add IPMMU devices nodes [PATCH 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes [PATCH 03/03] arm64: dts: renesas: r8a77990: Add IPMMU devices nodes
This series adds IPMMU device nodes to R-Car M3-N, V3H and 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
---
Developed on top of renesas-devel-20180518-v4.17-rc5
arch/arm64/boot/dts/renesas/r8a77965.dtsi | 89 +++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 49 +++++++++++++++ arch/arm64/boot/dts/renesas/r8a77990.dtsi | 82 ++++++++++++++++++++++++++
Magnus Damm
maintainerPATCH 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.
---
Developed on top of renesas-devel-20180518-v4.17-rc5
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
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 01/03] arm64: dts: renesas: r8a77965: Add IPMMU devices nodes
Quoted 8 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.
Quoted 7 lines
Signed-off-by Magnus Damm <[email protected]>---
Developed on top of renesas-devel-20180518-v4.17-rc5
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
This looks fine but I will wait to see if there are other reviews before applying.
Magnus Damm
maintainerPATCH 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-20180518-v4.17-rc5
arch/arm64/boot/dts/renesas/r8a77980.dtsi | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+)
arch/arm64/boot/dts/renesas/r8a77980.dtsi +49 -0
@@ -387,6 +387,55 @@ dma-channels = <16>; }; + 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_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>; + }; + mmc0: mmc@ee140000 { compatible = "renesas,sdhi-r8a77980", "renesas,rcar-gen3-sdhi";
Re: [PATCH 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes
Quoted 64 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 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]>---
Developed on top of renesas-devel-20180518-v4.17-rc5
arch/arm64/boot/dts/renesas/r8a77980.dtsi | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+)arch/arm64/boot/dts/renesas/r8a77980.dtsi +39
-0@@ -387,6 +387,55 @@ dma-channels = <16>; }; + 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_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>;
arch/arm64/boot/dts/renesas/r8a77980.dtsi line 438
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +10
-0+ }; + + 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>; + }; +
nit: I believe the IPMMU nodes should go above the AVB rather than the MMC node to preserve the current node sorting order of:
1) bus address
2) IP block
3) alphabetical
Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi +0
-0mmc0: mmc@ee140000 { compatible = "renesas,sdhi-r8a77980", "renesas,rcar-gen3-sdhi";
Magnus Damm
maintainerRe: [PATCH 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes
Hi Simon,
Quoted 79 lines · Simon Horman
Quoted 64 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 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]>---
Developed on top of renesas-devel-20180518-v4.17-rc5
arch/arm64/boot/dts/renesas/r8a77980.dtsi | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+)arch/arm64/boot/dts/renesas/r8a77980.dtsi 2018-05-21 22:31:52.460607110 +0900 renamed from arch/arm64/boot/dts/renesas/r8a77980.dtsi +39
-0@@ -387,6 +387,55 @@ dma-channels = <16>; }; + 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_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>;arch/arm64/boot/dts/renesas/r8a77980.dtsi 2018-05-21 22:31:52.460607110 +0900 line 438
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi 2018-05-21 22:31:52.460607110 +0900 renamed from arch/arm64/boot/dts/renesas/r8a77980.dtsi +10
-0+ }; + + 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>; + }; +nit: I believe the IPMMU nodes should go above the AVB rather than the MMC node to preserve the current node sorting order of:
Quoted 3 lines
1) bus address
2) IP block
3) alphabetical
Will reposition the IPMMU nodes in next version. Will also add vip0 and vip1 IPMMU nodes as described in the 1.0 data sheet.
Thanks,
/ magnus
Re: [PATCH 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes
Hi Magnus,
Quoted 80 lines · Magnus Damm
Quoted 79 lines · Simon Horman
Quoted 64 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 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]>---
Developed on top of renesas-devel-20180518-v4.17-rc5
arch/arm64/boot/dts/renesas/r8a77980.dtsi | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+)arch/arm64/boot/dts/renesas/r8a77980.dtsi 2018-05-21 22:31:52.460607110 +0900 renamed from arch/arm64/boot/dts/renesas/r8a77980.dtsi +39
-0@@ -387,6 +387,55 @@ dma-channels = <16>; }; + 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_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>;arch/arm64/boot/dts/renesas/r8a77980.dtsi 2018-05-21 22:31:52.460607110 +0900 line 438
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi 2018-05-21 22:31:52.460607110 +0900 renamed from arch/arm64/boot/dts/renesas/r8a77980.dtsi +10
-0+ }; + + 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>; + }; +nit: I believe the IPMMU nodes should go above the AVB rather than the MMC node to preserve the current node sorting order of:
Quoted 6 lines
Quoted 3 lines
1) bus address
2) IP block
3) alphabeticalWill reposition the IPMMU nodes in next version. Will also add vip0 and vip1 IPMMU nodes as described in the 1.0 data sheet.
Note that the BSP has patches to move the ipmmu_mm nodes first, to work around probe order issues.
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
maintainerRe: [PATCH 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes
Hi Geert,
Quoted 87 lines · Geert Uytterhoeven
Hi Magnus,
Quoted 84 lines · Magnus Damm
Quoted 82 lines · Simon Horman
Quoted 64 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 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]>---
Developed on top of renesas-devel-20180518-v4.17-rc5
arch/arm64/boot/dts/renesas/r8a77980.dtsi | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+)arch/arm64/boot/dts/renesas/r8a77980.dtsi 2018-05-21 22:31:52.460607110 +0900 renamed from arch/arm64/boot/dts/renesas/r8a77980.dtsi +39
-0@@ -387,6 +387,55 @@ dma-channels = <16>; }; + 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_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>;arch/arm64/boot/dts/renesas/r8a77980.dtsi 2018-05-21 22:31:52.460607110 +0900 line 438
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi 2018-05-21 22:31:52.460607110 +0900 renamed from arch/arm64/boot/dts/renesas/r8a77980.dtsi +10
-0+ }; + + 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>; + }; +nit: I believe the IPMMU nodes should go above the AVB rather than the MMC node to preserve the current node sorting order of:
1) bus address
2) IP block
3) alphabetical
Quoted 5 lines
Quoted 2 lines
Will reposition the IPMMU nodes in next version. Will also add vip0 and vip1 IPMMU nodes as described in the 1.0 data sheet.
Note that the BSP has patches to move the
ipmmu_mmnodes first, to work around probe order issues.
That might have been appropriate for older IPMMU driver versions.
I think what is in upstream should not depend on any ordering.
Cheers,
/ magnus
Re: [PATCH 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes
Hi Magnus,
Quoted 90 lines · Magnus Damm
Quoted 88 lines · Geert Uytterhoeven
Quoted 86 lines · Magnus Damm
Quoted 79 lines · Simon Horman
Quoted 64 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 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]>---
Developed on top of renesas-devel-20180518-v4.17-rc5
arch/arm64/boot/dts/renesas/r8a77980.dtsi | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+)arch/arm64/boot/dts/renesas/r8a77980.dtsi 2018-05-21 22:31:52.460607110 +0900 renamed from arch/arm64/boot/dts/renesas/r8a77980.dtsi +39
-0@@ -387,6 +387,55 @@ dma-channels = <16>; }; + 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_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>;arch/arm64/boot/dts/renesas/r8a77980.dtsi 2018-05-21 22:31:52.460607110 +0900 line 438
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi 2018-05-21 22:31:52.460607110 +0900 renamed from arch/arm64/boot/dts/renesas/r8a77980.dtsi +10
-0+ }; + + 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>; + }; +nit: I believe the IPMMU nodes should go above the AVB rather than the MMC node to preserve the current node sorting order of:
Quoted 3 lines
1) bus address
2) IP block
3) alphabeticalWill reposition the IPMMU nodes in next version. Will also add vip0 and vip1 IPMMU nodes as described in the 1.0 data sheet.
Quoted 6 lines
Quoted 2 lines
Note that the BSP has patches to move the
ipmmu_mmnodes first, to work around probe order issues.That might have been appropriate for older IPMMU driver versions.
I think what is in upstream should not depend on any ordering.
I don't know, it's an -EPROBE_DEFER issue.
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
maintainerRe: [PATCH 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes
Hi Geert,
Quoted 96 lines · Geert Uytterhoeven
Hi Magnus,
Quoted 93 lines · Magnus Damm
Quoted 90 lines · Geert Uytterhoeven
Quoted 80 lines · Magnus Damm
Quoted 79 lines · Simon Horman
Quoted 64 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 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]>---
Developed on top of renesas-devel-20180518-v4.17-rc5
arch/arm64/boot/dts/renesas/r8a77980.dtsi | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+)arch/arm64/boot/dts/renesas/r8a77980.dtsi 2018-05-21 22:31:52.460607110 +0900 renamed from arch/arm64/boot/dts/renesas/r8a77980.dtsi +39
-0@@ -387,6 +387,55 @@ dma-channels = <16>; }; + 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_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>;arch/arm64/boot/dts/renesas/r8a77980.dtsi 2018-05-21 22:31:52.460607110 +0900 line 438
Quoted 10 lines
arch/arm64/boot/dts/renesas/r8a77980.dtsi 2018-05-21 22:31:52.460607110 +0900 renamed from arch/arm64/boot/dts/renesas/r8a77980.dtsi +10
-0+ }; + + 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>; + }; +nit: I believe the IPMMU nodes should go above the AVB rather than the MMC node to preserve the current node sorting order of:
Quoted 6 lines
Quoted 3 lines
1) bus address
2) IP block
3) alphabeticalWill reposition the IPMMU nodes in next version. Will also add vip0 and vip1 IPMMU nodes as described in the 1.0 data sheet.
Note that the BSP has patches to move the
ipmmu_mmnodes first, to work around probe order issues.
Quoted 7 lines
Quoted 3 lines
That might have been appropriate for older IPMMU driver versions.
I think what is in upstream should not depend on any ordering.
I don't know, it's an -EPROBE_DEFER issue.
Thanks, will have a look!
Cheers,
/ magnus
Magnus Damm
maintainerPATCH 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 but the documentation seems unclear.
As expected VC0 belongs to R8A77990_PD_A3VC however VP0 is for now assigned to R8A77990_PD_ALWAYS_ON even though the IPMMU data sheet lists it as part of A3VP.
What I can tell A3VP is not implemented on E3 so the data sheet probably needs an update.
---
Developed on top of renesas-devel-20180518-v4.17-rc5
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 03/03] arm64: dts: renesas: r8a77990: Add IPMMU devices nodes
Quoted 14 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 but the documentation seems unclear.
As expected VC0 belongs to
R8A77990_PD_A3VChowever VP0 is for now assigned toR8A77990_PD_ALWAYS_ONeven though the IPMMU data sheet lists it as part of A3VP.What I can tell A3VP is not implemented on E3 so the data sheet probably needs an update.
Quoted 7 lines
Signed-off-by Magnus Damm <[email protected]>---
Developed on top of renesas-devel-20180518-v4.17-rc5
arch/arm64/boot/dts/renesas/r8a77990.dtsi | 82 +++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+)
This looks fine but I will wait to see if there are other reviews before applying.
Quoted 6 lines · Magnus Damm
arm64: dts: renesas: Add IPMMU device nodes
[PATCH 01/03] arm64: dts: renesas: r8a77965: Add IPMMU devices nodes [PATCH 02/03] arm64: dts: renesas: r8a77980: Add IPMMU devices nodes [PATCH 03/03] arm64: dts: renesas: r8a77990: Add IPMMU devices nodes
Quoted 7 lines
This series adds IPMMU device nodes to R-Car M3-N, V3H and 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
Hi Magnus,
Given Olof Johansson's recent comments in ("Re: [GIT PULL] Renesas ARM64 Based SoC DT Updates for v4.18") please consider squashing this series into a single patch when posting v2.