]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ARM: dts: qcom: msm8974: add gpu support
authorBrian Masney <masneyb@onstation.org>
Mon, 1 Feb 2021 10:56:54 +0000 (12:56 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 2 Feb 2021 22:44:58 +0000 (16:44 -0600)
Add support for the a3xx GPU. opp_table is chosen to include lower
frequencies common to all different msm8974 variants.

Signed-off-by: Brian Masney <masneyb@onstation.org>
[iskren.chernev@gmail.com: change after v1]
Signed-off-by: Iskren Chernev <iskren.chernev@gmail.com>
Link: https://lore.kernel.org/r/20210201105657.1642825-1-iskren.chernev@gmail.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm/boot/dts/qcom-msm8974.dtsi
arch/arm/boot/dts/qcom-msm8974pro.dtsi

index 51f5f904f9eb967b317b824b2b1d1df4d5e46c19..c65d33591efaa3171cd04695d0abbab265d7e69c 100644 (file)
                                 <&rpmcc RPM_SMD_CNOC_A_CLK>;
                };
 
+               gpu: adreno@fdb00000 {
+                       status = "disabled";
+
+                       compatible = "qcom,adreno-330.1",
+                                    "qcom,adreno";
+                       reg = <0xfdb00000 0x10000>;
+                       reg-names = "kgsl_3d0_reg_memory";
+                       interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "kgsl_3d0_irq";
+                       clock-names = "core",
+                                     "iface",
+                                     "mem_iface";
+                       clocks = <&mmcc OXILI_GFX3D_CLK>,
+                                <&mmcc OXILICX_AHB_CLK>,
+                                <&mmcc OXILICX_AXI_CLK>;
+                       sram = <&gmu_sram>;
+                       power-domains = <&mmcc OXILICX_GDSC>;
+                       operating-points-v2 = <&gpu_opp_table>;
+
+                       interconnects = <&mmssnoc MNOC_MAS_GRAPHICS_3D &bimc BIMC_SLV_EBI_CH0>,
+                                       <&ocmemnoc OCMEM_VNOC_MAS_GFX3D &ocmemnoc OCMEM_SLV_OCMEM>;
+                       interconnect-names = "gfx-mem",
+                                            "ocmem";
+
+                       // iommus = <&gpu_iommu 0>;
+
+                       gpu_opp_table: opp_table {
+                               compatible = "operating-points-v2";
+
+                               opp-320000000 {
+                                       opp-hz = /bits/ 64 <320000000>;
+                               };
+
+                               opp-200000000 {
+                                       opp-hz = /bits/ 64 <200000000>;
+                               };
+
+                               opp-27000000 {
+                                       opp-hz = /bits/ 64 <27000000>;
+                               };
+                       };
+               };
+
                mdss: mdss@fd900000 {
                        status = "disabled";
 
index 6740a4cb7da8db0206253b7a4ffa7e67c3664f9b..b64c28036dd07a80ad40e8713d2c4e98b66ca6ea 100644 (file)
                clock-controller@fc400000 {
                                compatible = "qcom,gcc-msm8974pro";
                };
+
+               adreno@fdb00000 {
+                       compatible = "qcom,adreno-330.2",
+                                    "qcom,adreno";
+               };
        };
 };