55 lines
1.4 KiB
Diff
55 lines
1.4 KiB
Diff
From 3683f0071790fbdef59a28d224fdf37a5f456bf5 Mon Sep 17 00:00:00 2001
|
|
From: Philipp Rossak <embed3d@gmail.com>
|
|
Date: Sat, 27 Jan 2018 21:39:09 +0100
|
|
Subject: [PATCH 053/153] arm:dts: sun9i-a80 add thermal zone
|
|
|
|
This patch adds the thermal zones to the A80.
|
|
|
|
Sensor 0 is located besides the big CPU, sensor 1 is located besides the
|
|
DRAM, sensor 2 is located besides the GPU and sensor 3 is located besides
|
|
the small CPU.
|
|
|
|
Signed-off-by: Philipp Rossak <embed3d@gmail.com>
|
|
---
|
|
arch/arm/boot/dts/allwinner/sun9i-a80.dtsi | 26 ++++++++++++++++++++++++++
|
|
1 file changed, 26 insertions(+)
|
|
|
|
diff --git a/arch/arm/boot/dts/allwinner/sun9i-a80.dtsi b/arch/arm/boot/dts/allwinner/sun9i-a80.dtsi
|
|
index 14c68bdd1..7b7260f0c 100644
|
|
--- a/arch/arm/boot/dts/allwinner/sun9i-a80.dtsi
|
|
+++ b/arch/arm/boot/dts/allwinner/sun9i-a80.dtsi
|
|
@@ -1261,4 +1261,30 @@ r_rsb: rsb@8003400 {
|
|
#size-cells = <0>;
|
|
};
|
|
};
|
|
+
|
|
+ thermal-zones {
|
|
+ cpu0_thermal: cpu0-thermal {
|
|
+ polling-delay-passive = <1000>;
|
|
+ polling-delay = <5000>;
|
|
+ thermal-sensors = <&ths 0>;
|
|
+ };
|
|
+
|
|
+ dram_thermal: dram-thermal {
|
|
+ polling-delay-passive = <1000>;
|
|
+ polling-delay = <5000>;
|
|
+ thermal-sensors = <&ths 1>;
|
|
+ };
|
|
+
|
|
+ gpu_thermal: gpu-thermal {
|
|
+ polling-delay-passive = <1000>;
|
|
+ polling-delay = <5000>;
|
|
+ thermal-sensors = <&ths 2>;
|
|
+ };
|
|
+
|
|
+ cpu2_thermal: cpu2-thermal {
|
|
+ polling-delay-passive = <1000>;
|
|
+ polling-delay = <5000>;
|
|
+ thermal-sensors = <&ths 3>;
|
|
+ };
|
|
+ };
|
|
};
|
|
--
|
|
2.35.3
|
|
|