RK3399 嵌入式開發板thermal_zone 配置方法 (溫度控制)

查看設備樹

 

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"。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章