AnsweredAssumed Answered

how to get temperature for imx6s (in linux 4.1.15)

Question asked by 才俊欧 on Oct 24, 2017
Latest reply on Nov 21, 2017 by Shibo Wan

I tried to get the temperature of imx6s chip but failed!

First I config the kernel: 

   Device Drivers Generic Thermal sysfs driver > Temperature sensor driver for Freescale i.MX SoCs


The i.MX Linux® Reference Manual said that the thermal driver implements the SoC temperature monitor function and protection and it creates a sys file interface of /sys/class/thermal/thermal_zone0/ for user. But I see nothing via command "ls /sys/class/thermal/".

While I find some device infomation about tempmon in /sys/bus/platform/devices:

$ find /sys/bus/platform/devices/2000000.aips-bus:tempmon/


I also preferred to the following link and it cannot solve my problem:

   "Get the temperature of i.mx6 ". 


But with the same board, I get the temperature data using the linux 3.14.28 kernel:

 $ ls /sys/class/thermal/
    cooling_device0 cooling_device1 thermal_zone0


 $ ls /sys/class/thermal/thermal_zone0/
    cdev0 cdev1 mode power temp trip_point_0_type trip_point_1_type uevent
    cdev0_trip_point cdev1_trip_point policy subsystem trip_point_0_temp trip_point_1_temp type


So what's wrong with my linux 4 kernel?