summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorOctav Zlatior <octav.zlatior@theobroma-systems.com>2015-06-08 16:44:05 +0200
committerKlaus Goger <klaus.goger@theobroma-systems.com>2015-07-30 18:53:04 +0200
commit8408b6ce97d05b928d65029e429c8da3ae775010 (patch)
treeae8b3c9d5d4180c4ca20943076ada01b12e0fdde /arch/arm
parenteae1ad0edb9e691becf54868f03d5334a997d5ba (diff)
dts: sun6i: pangolin thermal trips and maps
* defines the trip points for active and passive cooling * defines the fan device in i2c3 Signed-off-by: Octav Zlatior <octav.zlatior@theobroma-systems.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/boot/dts/sun6i-a31-pangolin.dts57
-rw-r--r--arch/arm/boot/dts/sun6i-a31.dtsi2
2 files changed, 58 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/sun6i-a31-pangolin.dts b/arch/arm/boot/dts/sun6i-a31-pangolin.dts
index 1401dd2ef02a..fc5826dcbaa1 100644
--- a/arch/arm/boot/dts/sun6i-a31-pangolin.dts
+++ b/arch/arm/boot/dts/sun6i-a31-pangolin.dts
@@ -78,6 +78,7 @@
};
};
};
+
&cpu0 {
cpu-supply = <&vdd_cpu>;
operating-points = <
@@ -90,6 +91,55 @@
sampling-rate = <160000>;
};
+&cpu_thermal {
+ cooling-maps {
+ map_fan {
+ trip = <&cpu_active>;
+ cooling-device = <&fan 0 9>;
+ };
+ map0 {
+ trip = <&cpu_alert0>;
+ cooling-device = <&cpu0 0 1>;
+ };
+ map1 {
+ trip = <&cpu_alert1>;
+ cooling-device = <&cpu0 0 2>;
+ };
+ map2 {
+ trip = <&cpu_alert2>;
+ cooling-device = <&cpu0 0 3>;
+ };
+ };
+
+ trips {
+ cpu_active: cpu_active {
+ temperature = <40000>;
+ hysteresis = <2000>;
+ type = "active";
+ };
+ cpu_alert0: cpu_alert0 {
+ temperature = <70000>;
+ hysteresis = <2000>;
+ type = "passive";
+ };
+ cpu_alert1: cpu_alert1 {
+ temperature = <80000>;
+ hysteresis = <2000>;
+ type = "passive";
+ };
+ cpu_alert2: cpu_alert2 {
+ temperature = <90000>;
+ hysteresis = <2000>;
+ type = "passive";
+ };
+ cpu_crit: cpu_crit {
+ temperature = <100000>;
+ hysteresis = <2000>;
+ type = "critical";
+ };
+ };
+};
+
&rtc {
status = "disabled";
};
@@ -153,6 +203,13 @@
compatible = "isil,isl1208";
reg = <0x6f>;
};
+ fan: fan@18 {
+ compatible = "ti,amc6821";
+ reg = <0x18>;
+ cooling-min-state = <0>;
+ cooling-max-state = <9>;
+ #cooling-cells = <2>;
+ };
};
&gpu {
diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi
index fc783e898922..efe9a1a90676 100644
--- a/arch/arm/boot/dts/sun6i-a31.dtsi
+++ b/arch/arm/boot/dts/sun6i-a31.dtsi
@@ -135,7 +135,7 @@
};
thermal-zones {
- cpu_thermal {
+ cpu_thermal: cpu_thermal {
/* milliseconds */
polling-delay-passive = <250>;
polling-delay = <1000>;