arm64: dts: mediatek: add iommu support for mt8365 SoC
authorAlexandre Mergnat <amergnat@baylibre.com>
Mon, 25 Sep 2023 18:17:41 +0000 (20:17 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Wed, 18 Oct 2023 07:47:03 +0000 (09:47 +0200)
Add iommu support in the SoC DTS using the 4 local arbiters (LARBs)

Reviewed-by: Yong Wu <yong.wu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230207-iommu-support-v6-7-24453c8625b3@baylibre.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8365.dtsi

index afcfa1d..24581f7 100644 (file)
                        reg = <0 0x10200a80 0 0x20>;
                };
 
+               iommu: iommu@10205000 {
+                       compatible = "mediatek,mt8365-m4u";
+                       reg = <0 0x10205000 0 0x1000>;
+                       interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_LOW>;
+                       mediatek,larbs = <&larb0>, <&larb1>, <&larb2>, <&larb3>;
+                       #iommu-cells = <1>;
+               };
+
                infracfg_nao: infracfg@1020e000 {
                        compatible = "mediatek,mt8365-infracfg", "syscon";
                        reg = <0 0x1020e000 0 0x1000>;