summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2016-09-05 15:39:59 +0200
committerKlaus Goger <klaus.goger@theobroma-systems.com>2016-09-18 15:53:09 +0200
commitba3f252e886e35989d18686ee589e9f57c3392df (patch)
treecf48cf65bd64572c55e06c711e3c3203fda6a540
parentc6a2866482e3ecef1a420d1605bcbb58e0b3a40e (diff)
ARM: dts: sun9i: add thermal zones
-rw-r--r--arch/arm/boot/dts/sun9i-a80.dtsi85
1 files changed, 84 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/sun9i-a80.dtsi b/arch/arm/boot/dts/sun9i-a80.dtsi
index b86ac490a9ad..5d7a21545152 100644
--- a/arch/arm/boot/dts/sun9i-a80.dtsi
+++ b/arch/arm/boot/dts/sun9i-a80.dtsi
@@ -599,7 +599,6 @@
};
};
-
ehci0: usb@00a00000 {
compatible = "allwinner,sun9i-a80-ehci", "generic-ehci";
reg = <0x00a00000 0x100>;
@@ -1029,6 +1028,90 @@
allwinner,sun9i-tsc-offset = <(-2794000)>;
allwinner,sun9i-tsc-divisor = <(-14882)>;
};
+
+ thermal-zones {
+ dramc {
+ polling-delay-passive = <1000>; /* milliseconds */
+ polling-delay = <5000>; /* milliseconds */
+
+ thermal-sensors = <&tsc 1>;
+ };
+
+ gpu {
+ polling-delay-passive = <1000>; /* milliseconds */
+ polling-delay = <5000>; /* milliseconds */
+
+ thermal-sensors = <&tsc 2>;
+ };
+
+ c0cpux {
+ polling-delay-passive = <100>; /* milliseconds */
+ polling-delay = <500>; /* milliseconds */
+
+ thermal-sensors = <&tsc 3>;
+
+ trips {
+ c0cpux_alert0: c0cpux_alert0 {
+ temperature = <75000>; /* millicelsius */
+ hysteresis = <2000>; /* millicelsius */
+ type = "passive";
+ };
+ c0cpux_alert1 {
+ temperature = <90000>; /* millicelsius */
+ hysteresis = <2000>; /* millicelsius */
+ type = "passive";
+ };
+ c0cpux_crit {
+ temperature = <110000>; /* millicelsius */
+ hysteresis = <2000>; /* millicelsius */
+ type = "critical";
+ };
+ };
+
+ cooling-maps {
+ c0cpux_map0 {
+ trip = <&c0cpux_alert0>;
+ cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+ };
+ };
+ };
+
+ c1cpux {
+ polling-delay-passive = <100>; /* milliseconds */
+ polling-delay = <500>; /* milliseconds */
+
+ thermal-sensors = <&tsc 0>;
+
+ trips {
+ c1cpux_alert0: c1cpux_alert0 {
+ temperature = <75000>; /* millicelsius */
+ hysteresis = <2000>; /* millicelsius */
+ type = "passive";
+ };
+ c1cpux_alert1: c1cpux_alert1 {
+ temperature = <85000>; /* millicelsius */
+ hysteresis = <2000>; /* millicelsius */
+ type = "passive";
+ };
+ c1cpux_crit {
+ temperature = <110000>; /* millicelsius */
+ hysteresis = <2000>; /* millicelsius */
+ type = "critical";
+ };
+ };
+
+ cooling-maps {
+ c1cpux_map0 {
+ trip = <&c1cpux_alert0>;
+ cooling-device = <&cpu4 2 3>;
+ };
+
+ c1cpux_map1 {
+ trip = <&c1cpux_alert1>;
+ cooling-device = <&cpu4 4 6>;
+ };
+ };
+ };
};
uart0: serial@07000000 {