Skip to contentSkip to conversation

Add gpu and camera thermal zones for msm8916

PATCH New Amit Kucheria 1 participant 3 messages Sep 10, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover Add gpu and camera thermal zones for msm8916

Expose temperature values from the tsens sensors next to the camera and gpu.

Amit Kucheria (2):
arm64: dts: msm8916: Add gpu thermal management
arm64: dts: msm8916: Add camera thermal zone

 arch/arm64/boot/dts/qcom/msm8916.dtsi | 41 +++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/2 arm64: dts: msm8916: Add gpu thermal management

Initialise the gpu thermal zone to export temperature to userspace.

---
 arch/arm64/boot/dts/qcom/msm8916.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
arch/arm64/boot/dts/qcom/msm8916.dtsi +20 -0
index 7b32b8990d62..a494196a657e 100644
@@ -237,6 +237,26 @@
 			};
 		};
 
+		gpu-thermal {
+			polling-delay-passive = <250>;
+			polling-delay = <1000>;
+
+			thermal-sensors = <&tsens 2>;
+
+			trips {
+				gpu_alert: trip0 {
+					temperature = <75000>;
+					hysteresis = <2000>;
+					type = "passive";
+				};
+				gpu_crit: trip1 {
+					temperature = <95000>;
+					hysteresis = <2000>;
+					type = "critical";
+				};
+			};
+		};
+
 	};
 
 	cpu_opp_table: cpu_opp_table {
Signature · 1 line
2.17.1
#2 lore raw

PATCH 2/2 arm64: dts: msm8916: Add camera thermal zone

In reply to Amit Kucheria

Initialise the camera thermal zone to export temperature to userspace.

---
 arch/arm64/boot/dts/qcom/msm8916.dtsi | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
arch/arm64/boot/dts/qcom/msm8916.dtsi +21 -0
index a494196a657e..d1cfda35b0cb 100644
@@ -257,6 +257,27 @@
 			};
 		};
 
+		camera-thermal {
+			polling-delay-passive = <250>;
+			polling-delay = <1000>;
+
+			thermal-sensors = <&tsens 1>;
+
+			trips {
+				cam_alert: trip0 {
+					temperature = <75000>;
+					hysteresis = <2000>;
+					type = "passive";
+				};
+				cam_crit: trip1 {
+					temperature = <95000>;
+					hysteresis = <2000>;
+					type = "critical";
+				};
+			};
+
+		};
+
 	};
 
 	cpu_opp_table: cpu_opp_table {
Signature · 1 line
2.17.1