arm64: dts: qcom: msm8953: Add GPU IOMMU
authorVladimir Lypak <vladimir.lypak@gmail.com>
Thu, 25 Jan 2024 21:56:25 +0000 (22:56 +0100)
committerBjorn Andersson <andersson@kernel.org>
Tue, 6 Feb 2024 22:06:06 +0000 (16:06 -0600)
Add the IOMMU used for the GPU on MSM8953.

Signed-off-by: Vladimir Lypak <vladimir.lypak@gmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240125-msm8953-gpu-v1-1-f6493a5951f3@z3ntu.xyz
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/msm8953.dtsi

index f701c6ceda629fcadc04cfbd97abd66f5d4b65f8..52cb83317f3f5c38a1d9e8a63576bafe98c20947 100644 (file)
                        };
                };
 
+               gpu_iommu: iommu@1c48000 {
+                       compatible = "qcom,msm8953-iommu", "qcom,msm-iommu-v2";
+                       ranges = <0 0x01c48000 0x8000>;
+
+                       clocks = <&gcc GCC_OXILI_AHB_CLK>,
+                                <&gcc GCC_BIMC_GFX_CLK>;
+                       clock-names = "iface", "bus";
+
+                       power-domains = <&gcc OXILI_CX_GDSC>;
+
+                       qcom,iommu-secure-id = <18>;
+
+                       #address-cells = <1>;
+                       #iommu-cells = <1>;
+                       #size-cells = <1>;
+
+                       /* gfx3d_user */
+                       iommu-ctx@0 {
+                               compatible = "qcom,msm-iommu-v2-ns";
+                               reg = <0x0000 0x1000>;
+                               interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
+                       };
+
+                       /* gfx3d_secure */
+                       iommu-ctx@2000 {
+                               compatible = "qcom,msm-iommu-v2-sec";
+                               reg = <0x2000 0x1000>;
+                               interrupts = <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>;
+                       };
+               };
+
                apps_iommu: iommu@1e20000 {
                        compatible = "qcom,msm8953-iommu", "qcom,msm-iommu-v1";
                        ranges = <0 0x01e20000 0x20000>;