# 配置 thermal zone

要使产品或应用达到最佳性能，定制和控制其温控行为至关重要。您可以为新添加的外部热敏电阻配置新的 thermal zone，以控制 Qualcomm Linux 的表面温度。

以下示例代码演示了如何使用设备树配置 thermal zone。

例如，监视 50°C 的温度阈值并对 CPU cooling device 采取缓解措施。

Note

默认情况下，系统会配置逐步温控调节器。

[index: kernel/git/torvalds/linux.git](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/thermal/thermal-zones.yaml?h=v6.6) 中说明了特定于 thermal zone 的参数。

thermal-zones {
        <thermal zone name> {
            polling-delay-passive = <2000>;
            polling-delay = <0>;
            thermal-sensors = < thermal sensor phandle and sensor specifier used to monitor this thermal zone>;
            trips {
                trip0: apc-trip {
                    temperature = <50000>;  /*Threshold to trigger thermal mitigation */
                    hysteresis = <2000>;    /*The offset of clear threshold, the clear threshold is 48000 */
                };
            };
            cooling-maps {
                map0 {
                     trip = <&apc_trip>;
                     cooling-device = <&cpufreq-cpu4 THERMAL_NO_LIMIT 5>; /* Reduce Gold cluster CPU fmax freq by 5 levels */
                };
            };
        };
    };
    Copy to clipboard

## 后续步骤

- [使用风扇控制器调节温度](https://docs.qualcomm.com/doc/80-70022-30SC/topic/fan-controller.html#fan-controller)

Last Published: Nov 02, 2025

[Previous Topic
通过温控调节优化性能](https://docs.qualcomm.com/bundle/publicresource/80-70022-30SC/topics/thermal-tuning.md) [Next Topic
使用风扇控制器调节温度](https://docs.qualcomm.com/bundle/publicresource/80-70022-30SC/topics/fan-controller.md)