前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >全志平台Tina系统高温关机的设计节点和CPU温度的查看节点

全志平台Tina系统高温关机的设计节点和CPU温度的查看节点

作者头像
阿志小管家
发布2024-02-02 15:15:03
1480
发布2024-02-02 15:15:03
举报

高温关机的设置在设备树里

路径:tina/lichee/linux-4.9/arch/arm64/boot/dts/sunxi对应的设备树文件,如sun50iw11p1.dtsi

temperature = <110000>;一项,单位是千分之一摄氏度,110000的意思就是110摄氏度自动关机

代码语言:javascript
复制
thermal-zones {
1367                         cpu_thermal_zone {
1368                                 polling-delay-passive = <500>;
1369                                 polling-delay = <1000>;
1370                                 thermal-sensors = <&ths 0>;
1371                                 sustainable-power = <800>;
1372                                 k_po = <24>;
1373                                 k_pu = <48>;
1374                                 k_i = <0>;
1375
1376                                 cpu_trips: trips {
1377                                         cpu_threshold: trip-point@0 {
1378                                                 temperature = <70000>;
1379                                                 type = "passive";
1380                                                 hysteresis = <0>;
1381                                         };
1382                                         cpu_target: trip-point@1 {
1383                                                 temperature = <80000>;
1384                                                 type = "passive";
1385                                                 hysteresis = <0>;
1386                                         };
1387                                         cpu_crit: cpu_crit@0 {
1388                                                 temperature = <110000>;
1389                                                 type = "critical";
1390                                                 hysteresis = <0>;
1391                                         };
1392                                 };
1393
1394                                 cooling-maps {
1395                                         map0 {
1396                                                 trip = <&cpu_target>;
1397                                                 cooling-device = <&cpu0
1398                                                 THERMAL_NO_LIMIT
1399                                                 THERMAL_NO_LIMIT>;
1400                                                 contribution = <1024>;
1401                                         };
1402                                 };
1403                         };
1404                 };

查看设备当前温度的节点在:

/sys/devices/virtual/thermal/thermal_zone0/temp

/sys/devices/virtual/thermal/下有几个目录(thermal_zone0),第一个是cpu,第二个是gpu,读温度就是读目录下temp节点

单位也是千分之一摄氏度,读到36984,就是36.984摄氏度

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2024-02-02,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档