arm64: dts: allwinner: h6: Add IOMMU
authorMaxime Ripard <maxime@cerno.tech>
Sun, 12 Jan 2020 07:51:46 +0000 (08:51 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Fri, 15 May 2020 07:35:39 +0000 (09:35 +0200)
Now that we have a driver for the IOMMU, let's start using it.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi

index 2e31632..78b1361 100644 (file)
                                clock-names = "bus",
                                              "mod";
                                resets = <&display_clocks RST_MIXER0>;
+                               iommus = <&iommu 0>;
 
                                ports {
                                        #address-cells = <1>;
                        #interrupt-cells = <3>;
                };
 
+               iommu: iommu@30f0000 {
+                       compatible = "allwinner,sun50i-h6-iommu";
+                       reg = <0x030f0000 0x10000>;
+                       interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&ccu CLK_BUS_IOMMU>;
+                       resets = <&ccu RST_BUS_IOMMU>;
+                       #iommu-cells = <1>;
+               };
+
                mmc0: mmc@4020000 {
                        compatible = "allwinner,sun50i-h6-mmc",
                                     "allwinner,sun50i-a64-mmc";