Skip to content

Commit

Permalink
platform odroidc2-enable-scpi-cpu-thermal
Browse files Browse the repository at this point in the history
  • Loading branch information
scpcom committed May 27, 2020
1 parent 7e9d32c commit 529f834
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include "meson-gxbb.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/thermal/thermal.h>

/ {
compatible = "hardkernel,odroid-c2", "amlogic,meson-gxbb";
Expand Down Expand Up @@ -81,6 +82,41 @@
<1800000 1>;
};

thermal-zones {
cpu-thermal {
polling-delay-passive = <250>; /* milliseconds */
polling-delay = <1000>; /* milliseconds */

thermal-sensors = <&scpi_sensors 0>;

trips {
cpu_alert0: cpu-alert0 {
temperature = <70000>;
hysteresis = <2000>;
type = "passive";
};
cpu_alert1: cpu-alert1 {
temperature = <85000>;
hysteresis = <2000>;
type = "passive";
};
cpu_crit: cpu_crit {
temperature = <95000>;
hysteresis = <2000>;
type = "critical";
};
};

cooling-maps {
map0 {
trip = <&cpu_alert1>;
cooling-device =
<&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};
};
};
};

vcc1v8: regulator-vcc1v8 {
compatible = "regulator-fixed";
regulator-name = "VCC1V8";
Expand Down Expand Up @@ -119,6 +155,10 @@
hdmi-phandle = <&hdmi_tx>;
};

&cpu0 {
#cooling-cells = <2>;
};

&ethmac {
status = "okay";
pinctrl-0 = <&eth_rgmii_pins>;
Expand Down

0 comments on commit 529f834

Please sign in to comment.