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

These two hunks of code enable the r8a7790 IPMMU-MX instance together with
the DU device on r8a7790. Depending on kernel version LPAE may need to
be enabled before the IPMMU driver becomes available.

Useful to test the IPMMU with the DU via the VGA port on r8a7790 Lager.

# modetest -M rcar-du -s 60:800x600

Not-Yet-Signed-off-by: Magnus Damm <damm+rene...@opensource.se>
---

 Tested with renesas-drivers-2016-09-13-v4.8-rc6

 arch/arm/boot/dts/r8a7790.dtsi |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- 0001/arch/arm/boot/dts/r8a7790.dtsi
+++ work/arch/arm/boot/dts/r8a7790.dtsi 2016-09-20 20:17:26.000000000 +0900
@@ -985,6 +985,7 @@
                         <&mstp7_clks R8A7790_CLK_LVDS0>,
                         <&mstp7_clks R8A7790_CLK_LVDS1>;
                clock-names = "du.0", "du.1", "du.2", "lvds.0", "lvds.1";
+               iommus = <&ipmmu_mx 15>, <&ipmmu_mx 16>;
                status = "disabled";
 
                ports {
@@ -1893,7 +1894,7 @@
                interrupts = <GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH>,
                             <GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>;
                #iommu-cells = <1>;
-               status = "disabled";
+               status = "okay";
        };
 
        ipmmu_rt: mmu@ffc80000 {

Reply via email to