devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Add gpu and camera thermal zones for msm8916
@ 2018-09-10  7:17 Amit Kucheria
  2018-09-10  7:17 ` [PATCH v1 1/2] arm64: dts: msm8916: Add gpu thermal management Amit Kucheria
  2018-09-10  7:17 ` [PATCH v1 2/2] arm64: dts: msm8916: Add camera thermal zone Amit Kucheria
  0 siblings, 2 replies; 3+ messages in thread
From: Amit Kucheria @ 2018-09-10  7:17 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-arm-msm, andy.gross, devicetree, linux-soc

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(+)

-- 
2.17.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v1 1/2] arm64: dts: msm8916: Add gpu thermal management
  2018-09-10  7:17 [PATCH v1 0/2] Add gpu and camera thermal zones for msm8916 Amit Kucheria
@ 2018-09-10  7:17 ` Amit Kucheria
  2018-09-10  7:17 ` [PATCH v1 2/2] arm64: dts: msm8916: Add camera thermal zone Amit Kucheria
  1 sibling, 0 replies; 3+ messages in thread
From: Amit Kucheria @ 2018-09-10  7:17 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-arm-msm, andy.gross, David Brown, Rob Herring, Mark Rutland,
	linux-soc, devicetree

Initialise the gpu thermal zone to export temperature to userspace.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
---
 arch/arm64/boot/dts/qcom/msm8916.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi
index 7b32b8990d62..a494196a657e 100644
--- a/arch/arm64/boot/dts/qcom/msm8916.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi
@@ -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 {
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH v1 2/2] arm64: dts: msm8916: Add camera thermal zone
  2018-09-10  7:17 [PATCH v1 0/2] Add gpu and camera thermal zones for msm8916 Amit Kucheria
  2018-09-10  7:17 ` [PATCH v1 1/2] arm64: dts: msm8916: Add gpu thermal management Amit Kucheria
@ 2018-09-10  7:17 ` Amit Kucheria
  1 sibling, 0 replies; 3+ messages in thread
From: Amit Kucheria @ 2018-09-10  7:17 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-arm-msm, andy.gross, David Brown, Rob Herring, Mark Rutland,
	linux-soc, devicetree

Initialise the camera thermal zone to export temperature to userspace.

Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
---
 arch/arm64/boot/dts/qcom/msm8916.dtsi | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi
index a494196a657e..d1cfda35b0cb 100644
--- a/arch/arm64/boot/dts/qcom/msm8916.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi
@@ -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 {
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-09-10  7:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-10  7:17 [PATCH v1 0/2] Add gpu and camera thermal zones for msm8916 Amit Kucheria
2018-09-10  7:17 ` [PATCH v1 1/2] arm64: dts: msm8916: Add gpu thermal management Amit Kucheria
2018-09-10  7:17 ` [PATCH v1 2/2] arm64: dts: msm8916: Add camera thermal zone Amit Kucheria

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).