查看设备树
thermal-zones {
soc_thermal: soc-thermal {
polling-delay-passive = <20>; /* milliseconds */
polling-delay = <1000>; /* milliseconds */
sustainable-power = <1000>; /* milliwatts */
thermal-sensors = <&tsadc 0>;
trips {
threshold: trip-point@0 {
temperature = <70000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "passive";
};
target: trip-point@1 {
temperature = <85000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "passive";
};
soc_crit: soc-crit {
temperature = <95000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "critical";
};
};
threshold 节点表示温度超过 70 度开始限制频率,type 要设置成"passive";
target 节点表示限制系统的最高温度会 85 度左右,type 要设置成"passive";
soc_crit 节点表示温度超过 95 度,自动重启系统,type 要设置成"critical"。