ARM: dts: qcom: msm8226: Add GPU
authorLuca Weiss <luca@z3ntu.xyz>
Thu, 30 Nov 2023 20:35:20 +0000 (21:35 +0100)
committerBjorn Andersson <andersson@kernel.org>
Sat, 9 Dec 2023 03:31:29 +0000 (19:31 -0800)
The msm8226 SoC contains an Adreno 305B. Add a node to configure it.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Link: https://lore.kernel.org/r/20231130-msm8226-gpu-v1-3-6bb2f1b29e49@z3ntu.xyz
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm/boot/dts/qcom/qcom-msm8226.dtsi

index b9686e75fe1d3c5edc3b949a5d8d110ebc44aa19..b492c95e5d301d25d6e9446081940bcb52a94569 100644 (file)
                                              "ref";
                        };
                };
+
+               gpu: adreno@fdb00000 {
+                       compatible = "qcom,adreno-305.18", "qcom,adreno";
+                       reg = <0xfdb00000 0x10000>;
+                       reg-names = "kgsl_3d0_reg_memory";
+
+                       interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "kgsl_3d0_irq";
+
+                       clocks = <&mmcc OXILI_GFX3D_CLK>,
+                                <&mmcc OXILICX_AHB_CLK>,
+                                <&mmcc OXILICX_AXI_CLK>;
+                       clock-names = "core", "iface", "mem_iface";
+
+                       sram = <&gmu_sram>;
+                       power-domains = <&mmcc OXILICX_GDSC>;
+                       operating-points-v2 = <&gpu_opp_table>;
+
+                       status = "disabled";
+
+                       gpu_opp_table: opp-table {
+                               compatible = "operating-points-v2";
+
+                               opp-450000000 {
+                                       opp-hz = /bits/ 64 <450000000>;
+                               };
+
+                               opp-320000000 {
+                                       opp-hz = /bits/ 64 <320000000>;
+                               };
+
+                               opp-200000000 {
+                                       opp-hz = /bits/ 64 <200000000>;
+                               };
+
+                               opp-19000000 {
+                                       opp-hz = /bits/ 64 <19000000>;
+                               };
+                       };
+               };
        };
 
        thermal-zones {