Firefly开源社区

标题: AIO-3288C 常用命令(2) 读取CPU温度 [打印本页]

作者: jpchen    时间: 2018-11-16 12:03
标题: AIO-3288C 常用命令(2) 读取CPU温度
本帖最后由 jpchen 于 2018-11-16 12:04 编辑

AIO-3288C 开发板上的 AD 接口分为:高速 ADC 流接口 (High-speed ADC Stream Interface)、温度传感器 (Temperature Sensor)、逐次逼近ADC (Successive Approximation Register)。我们常用到的是RK3288温度传感器,该传感器主要有3个channel,channel0 is reserve, and channel 1is for CPU, and channel 2 is for GPU。所以读取CPU和GPU的温度主要是channel1和channel2,那么我们是通过哪个节点读取的呢?


shell@firefly:/ # cat sys/bus/platform/drivers/tsadc/ff280000.tsadc/temp1_input   //CPU温度
[  944.045908] cur temp  45
shell@firefly:/ # cat sys/bus/platform/drivers/tsadc/ff280000.tsadc/temp2_input   //GPU温度
[  944.045908] cur temp  46


其实看了一下CPU和GPU的温度差不多,所以一般读取CPU的温度即可





欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1