]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: allwinner: h616: add IOMMU node
authorAndre Przywara <andre.przywara@arm.com>
Sun, 16 Jun 2024 22:40:56 +0000 (23:40 +0100)
committerChen-Yu Tsai <wens@csie.org>
Thu, 27 Jun 2024 13:58:33 +0000 (21:58 +0800)
The Allwinner H616 contains a scatter-gather IOMMU connected to some
video related devices. It's almost compatible to the one used in the H6,
though with minor incompatibilities.

Add the DT node describing its resources, so that devices like the video
or display engine can connect to it.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Ryan Walklin <ryan@testtoast.com>
Link: https://lore.kernel.org/r/20240616224056.29159-6-andre.przywara@arm.com
[wens@csie.org: Move IOMMU node after GIC node for address order]
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi

index b07d7aee1896a40b7ea4b7b6d86a2f7a6146b932..bf4d41ecbfdcf8bccedb30aeb73a4fcfa5dcec20 100644 (file)
                        #interrupt-cells = <3>;
                };
 
+               iommu: iommu@30f0000 {
+                       compatible = "allwinner,sun50i-h616-iommu";
+                       reg = <0x030f0000 0x10000>;
+                       interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&ccu CLK_BUS_IOMMU>;
+                       resets = <&ccu RST_BUS_IOMMU>;
+                       #iommu-cells = <1>;
+               };
+
                mmc0: mmc@4020000 {
                        compatible = "allwinner,sun50i-h616-mmc",
                                     "allwinner,sun50i-a100-mmc";