> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 配置热区

为使您的产品或应用获得最佳性能，定制并控制其热行为非常重要。您可以为新添加的外部热敏电阻配置新的热区（thermal zone），以控制 Qualcomm Linux 的表面温度。

以下示例代码展示了如何使用设备树配置热区。

例如，监控 50°C 的温度阈值，并对 CPU 冷却设备应用缓解措施。

\*\*注意：\*\*默认情况下，系统配置 stepwise 热调节器（thermal governor）。

热区特定的参数在 [Linux Kernel Thermal Zones Documentation](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/thermal/thermal-zones.yaml?h=v6.6) 中有说明。

```text theme={null}
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 */
            };
        };
    };
};
```

## 后续步骤

* [定制热区](customize-a-thermal-zone)
