Platform: RK3288
OS: Android 6.0
Kernel: 3.10.92
RK3288使用TSADC(Temperature-Sensor ADC)来测量CPU温度,支持两种模式:
用户自定义模式: 主动控制读取温度.
自动模式: 自动检测温度,达到阀值就自动报告.
rk3288.dtsi中的device配置:
tsadc: tsadc@ff280000 {
compatible = "rockchip,tsadc";
reg = <0xff280000 0x100>;
interrupts = ;
#io-channel-cells = <1>;
io-channel-ranges;
clock-frequency = <10000>;
clocks = , ;
clock-names = "tsadc", "pclk_tsadc";
pinctrl-names = "default", "tsadc_int";
pinctrl-0 = ;
pinctrl-1 = ;
tsadc-ht-temp = <120>; //关机阀值
tsadc-ht-reset-cru = <1>;
tsadc-ht-pull-gpio = <0>;
status = "okay";
};
rockchip_tsadc.c:
tsadc温度控制驱动文件.