How do I read the local CPU temperatures from user space

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do I read the local CPU temperatures from user space

796 Views
tmorrison
Contributor III

I tried to google and search through this forum, but I haven't found anything close to this.

Environment:

   I am running a LS1043a CPU with OpenWrt from qoriq-components repository.

In section 35 of the LS1043A Reference Manual, it says there are 5 local temperature sensors?

Are these registers available to be read (do they need to be calibrated)?

I guess what I'm saying is that I don't really know how to use the TMU and what I need to configure in the device tree to be able to use it. There seems no guide.

The default LS1043a device tree has "thermal_zones". Are these the sensors (although they have eight(8) thermal zones (0-8) in the device tree). 

I am happy to read manuals if there was one.

Thanks in advance!

Labels (1)
0 Kudos
1 Reply

778 Views
bpe
NXP Employee
NXP Employee

The processor temperature sensors can be read via SYSFS. LSDK online documentation has a article explaining how to enable and use it. The recommendations are very basic and should work in any distro.

 

Hope it helps,
Platon

 

0 Kudos