mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
arm64: dts: rockchip: rk3399pro-npu: Add thermal zone node
Change-Id: I211edf33d2bcd7540473c8a39d56a5a1ff844a37 Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <dt-bindings/pinctrl/rockchip.h>
|
||||
#include <dt-bindings/power/rk1808-power.h>
|
||||
#include <dt-bindings/phy/phy.h>
|
||||
#include <dt-bindings/thermal/thermal.h>
|
||||
|
||||
/ {
|
||||
compatible = "rockchip,rk3399pro-npu";
|
||||
@@ -327,6 +328,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