Project

General

Profile

Reading Temperature

Using omapconf

root@mitysom-am57x:~# omapconf show temp
OMAPCONF (rev v1.74-1-g40ab0a2 built Fri Jan 22 21:22:26 UTC 2021)

...

|--------------------------------------------|
| Sensor | Temperature (C) | Temperature (F) |
|--------------------------------------------|
| MPU    | 52              | 125             |
| GPU    | 53              | 127             |
| CORE   | 52              | 125             |
| IVA    | 52              | 125             |
| DSPEVE | 51              | 123             |
|--------------------------------------------|

Using sysfs thermal_zones

There are 5 thermal zones, listed below:

root@mitysom-am57x:~# tail /sys/class/thermal/thermal_zone*/type
==> /sys/class/thermal/thermal_zone0/type <==
cpu_thermal

==> /sys/class/thermal/thermal_zone1/type <==
gpu_thermal

==> /sys/class/thermal/thermal_zone2/type <==
core_thermal

==> /sys/class/thermal/thermal_zone3/type <==
dspeve_thermal

==> /sys/class/thermal/thermal_zone4/type <==
iva_thermal

You can get the temperatures by reading the temp file in each zone

root@mitysom-am57x:~# tail /sys/class/thermal/thermal_zone*/temp
==> /sys/class/thermal/thermal_zone0/temp <==
52600

==> /sys/class/thermal/thermal_zone1/temp <==
52600

==> /sys/class/thermal/thermal_zone2/temp <==
53000

==> /sys/class/thermal/thermal_zone3/temp <==
52200

==> /sys/class/thermal/thermal_zone4/temp <==
53800

The thermal zones are defined in the dra7.dtsi file and a cpu temp alert threshold has been set to 50C in am57xx-mitysom.dtsi to turn on the cpu fan output (J11)

Go to top
Add picture from clipboard (Maximum size: 600 MB)