mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
arm64: dts: rockchip: Add thermal thermal zone node for rk1808
Change-Id: Ie42fcef7d94829aeb056ac1ead3d5885fc1a30f8 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <dt-bindings/power/rk1808-power.h>
|
||||
#include <dt-bindings/phy/phy.h>
|
||||
#include <dt-bindings/soc/rockchip,boot-mode.h>
|
||||
#include <dt-bindings/thermal/thermal.h>
|
||||
|
||||
/ {
|
||||
compatible = "rockchip,rk1808";
|
||||
@@ -502,6 +503,55 @@
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
thermal_zones: thermal-zones {
|
||||
soc_thermal: soc-thermal {
|
||||
polling-delay-passive = <20>; /* milliseconds */
|
||||
polling-delay = <1000>; /* milliseconds */
|
||||
sustainable-power = <527>; /* milliwatts */
|
||||
|
||||
thermal-sensors = <&tsadc 0>;
|
||||
|
||||
trips {
|
||||
threshold: trip-point-0 {
|
||||
/* millicelsius */
|
||||
temperature = <75000>;
|
||||
/* millicelsius */
|
||||
hysteresis = <2000>;
|
||||
type = "passive";
|
||||
};
|
||||
target: trip-point-1 {
|
||||
/* millicelsius */
|
||||
temperature = <85000>;
|
||||
/* millicelsius */
|
||||
hysteresis = <2000>;
|
||||
type = "passive";
|
||||
};
|
||||
soc_crit: soc-crit {
|
||||
/* millicelsius */
|
||||
temperature = <115000>;
|
||||
/* millicelsius */
|
||||
hysteresis = <2000>;
|
||||
type = "critical";
|
||||
};
|
||||
};
|
||||
|
||||
cooling-maps {
|
||||
map0 {
|
||||
trip = <&target>;
|
||||
cooling-device =
|
||||
<&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
|
||||
contribution = <4096>;
|
||||
};
|
||||
map1 {
|
||||
trip = <&target>;
|
||||
cooling-device =
|
||||
<&npu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
|
||||
contribution = <1024>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
tsadc: tsadc@ff3a0000 {
|
||||
compatible = "rockchip,rk1808-tsadc";
|
||||
reg = <0x0 0xff3a0000 0x0 0x100>;
|
||||
|
||||
Reference in New Issue
Block a user