OSDN Git Service

arm64: dts: qcom: sc7280: Add gpu thermal zone cooling support
authorManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
Wed, 11 Aug 2021 14:23:55 +0000 (19:53 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 21 Sep 2021 23:24:23 +0000 (18:24 -0500)
Add cooling-cells property and the cooling maps for the gpu thermal
zones to support GPU thermal cooling.

Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
Signed-off-by: Akhil P Oommen <akhilpo@codeaurora.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1628691835-36958-2-git-send-email-akhilpo@codeaurora.org
arch/arm64/boot/dts/qcom/sc7280.dtsi

index 5e09055..af6b569 100644 (file)
                        qcom,bcm-voters = <&apps_bcm_voter>;
                };
 
-               gpu@3d00000 {
+               gpu: gpu@3d00000 {
                        compatible = "qcom,adreno-635.0", "qcom,adreno";
                        #stream-id-cells = <16>;
                        reg = <0 0x03d00000 0 0x40000>,
                        qcom,gmu = <&gmu>;
                        interconnects = <&gem_noc MASTER_GFX3D 0 &mc_virt SLAVE_EBI1 0>;
                        interconnect-names = "gfx-mem";
+                       #cooling-cells = <2>;
 
                        gpu_opp_table: opp-table {
                                compatible = "operating-points-v2";
                };
 
                gpuss0-thermal {
-                       polling-delay-passive = <0>;
+                       polling-delay-passive = <100>;
                        polling-delay = <0>;
 
                        thermal-sensors = <&tsens1 1>;
 
                        trips {
                                gpuss0_alert0: trip-point0 {
-                                       temperature = <90000>;
+                                       temperature = <95000>;
                                        hysteresis = <2000>;
-                                       type = "hot";
+                                       type = "passive";
                                };
 
                                gpuss0_crit: gpuss0-crit {
                                        type = "critical";
                                };
                        };
+
+                       cooling-maps {
+                               map0 {
+                                       trip = <&gpuss0_alert0>;
+                                       cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+                       };
                };
 
                gpuss1-thermal {
-                       polling-delay-passive = <0>;
+                       polling-delay-passive = <100>;
                        polling-delay = <0>;
 
                        thermal-sensors = <&tsens1 2>;
 
                        trips {
                                gpuss1_alert0: trip-point0 {
-                                       temperature = <90000>;
+                                       temperature = <95000>;
                                        hysteresis = <2000>;
-                                       type = "hot";
+                                       type = "passive";
                                };
 
                                gpuss1_crit: gpuss1-crit {
                                        type = "critical";
                                };
                        };
+
+                       cooling-maps {
+                               map0 {
+                                       trip = <&gpuss1_alert0>;
+                                       cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+                               };
+                       };
                };
 
                nspss0-thermal {