Commit e846011e authored by Maxime Ripard's avatar Maxime Ripard

ARM: sun8i: a33: Add devfreq-based GPU cooling

This adds GPU thermal throttling for the Allwinner A33.
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: default avatarQuentin Schulz <quentin.schulz@free-electrons.com>
parent a5ce7a3d
......@@ -492,6 +492,7 @@ mali: gpu@1c40000 {
clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>;
clock-names = "bus", "core";
resets = <&ccu RST_BUS_GPU>;
#cooling-cells = <2>;
assigned-clocks = <&ccu CLK_GPU>;
assigned-clock-rates = <408000000>;
......
......@@ -407,6 +407,16 @@ map1 {
trip = <&cpu_alert1>;
cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
map2 {
trip = <&gpu_alert0>;
cooling-device = <&mali 1 THERMAL_NO_LIMIT>;
};
map3 {
trip = <&gpu_alert1>;
cooling-device = <&mali 2 THERMAL_NO_LIMIT>;
};
};
trips {
......@@ -417,6 +427,13 @@ cpu_alert0: cpu_alert0 {
type = "passive";
};
gpu_alert0: gpu_alert0 {
/* milliCelsius */
temperature = <85000>;
hysteresis = <2000>;
type = "passive";
};
cpu_alert1: cpu_alert1 {
/* milliCelsius */
temperature = <90000>;
......@@ -424,6 +441,13 @@ cpu_alert1: cpu_alert1 {
type = "hot";
};
gpu_alert1: gpu_alert1 {
/* milliCelsius */
temperature = <95000>;
hysteresis = <2000>;
type = "hot";
};
cpu_crit: cpu_crit {
/* milliCelsius */
temperature = <110000>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment