Imx6ul CPU Temp Sense

From embeddedTS Manuals
Revision as of 15:20, 30 December 2020 by Kris (talk | contribs) (Removed references to ADC)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The i.MX6UL CPU has an internal TEMPMON peripheral that is supported by Linux's Thermal Zone management. This on-die sensor is meant to measure of the thermal state of the CPU for throttling control. This can be read via the Linux kernel's sysfs (/sys) interface. The following command returns the temperature in millicelsius:

cat /sys/class/thermal/thermal_zone0/temp