aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/sun4i-a10.dtsi
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2015-01-11 23:34:08 -0500
committerMaxime Ripard <maxime.ripard@free-electrons.com>2015-01-21 03:59:10 -0500
commit541ce2ca7ec8aa3f45bdd746a91ca24233d2a0d6 (patch)
treeb8b28a420f22a443ee47ab816e1338d5588a0cfe /arch/arm/boot/dts/sun4i-a10.dtsi
parent32a5d2d170cc24e9c5398d2a9432899f8368ba5c (diff)
ARM: dts: sun4i: Add cpu thermal zones to dtsi
The core temperature sensor now supports thermal zones. Add a thermal zone mapping for the cpus with passive cooling (cpufreq throttling). Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts/sun4i-a10.dtsi')
-rw-r--r--arch/arm/boot/dts/sun4i-a10.dtsi34
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi
index f9d20a589ba1..af11f5da8e98 100644
--- a/arch/arm/boot/dts/sun4i-a10.dtsi
+++ b/arch/arm/boot/dts/sun4i-a10.dtsi
@@ -12,6 +12,8 @@
12 12
13#include "skeleton.dtsi" 13#include "skeleton.dtsi"
14 14
15#include <dt-bindings/thermal/thermal.h>
16
15#include <dt-bindings/dma/sun4i-a10.h> 17#include <dt-bindings/dma/sun4i-a10.h>
16#include <dt-bindings/pinctrl/sun4i-a10.h> 18#include <dt-bindings/pinctrl/sun4i-a10.h>
17 19
@@ -93,6 +95,38 @@
93 }; 95 };
94 }; 96 };
95 97
98 thermal-zones {
99 cpu_thermal {
100 /* milliseconds */
101 polling-delay-passive = <250>;
102 polling-delay = <1000>;
103 thermal-sensors = <&rtp>;
104
105 cooling-maps {
106 map0 {
107 trip = <&cpu_alert0>;
108 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
109 };
110 };
111
112 trips {
113 cpu_alert0: cpu_alert0 {
114 /* milliCelsius */
115 temperature = <850000>;
116 hysteresis = <2000>;
117 type = "passive";
118 };
119
120 cpu_crit: cpu_crit {
121 /* milliCelsius */
122 temperature = <100000>;
123 hysteresis = <2000>;
124 type = "critical";
125 };
126 };
127 };
128 };
129
96 memory { 130 memory {
97 reg = <0x40000000 0x80000000>; 131 reg = <0x40000000 0x80000000>;
98 }; 132 };