Imx6ul CPU Temp Sense: Difference between revisions
From embeddedTS Manuals
m (Kris moved page TS-4100 Temp Sense to Imx6ul CPU Temp Sense without leaving a redirect: Made generic) |
(Remove ADC, not documented in reference manual, good enough reason to remove it from our docs.) |
||
Line 1: | Line 1: | ||
The i.MX6UL CPU has an internal TEMPMON peripheral that is supported by [https://www.kernel.org/doc/html/latest/driver-api/thermal/sysfs-api.html Linux's Thermal Zone management]. This sensor is embedded more toward the center of the die and therefore reads hotter than its ADC counterpart as it is meant to be reflective of the thermal state of the CPU for throttling control. This can be read similarly to the ADC counterpart above using [https://en.wikipedia.org/wiki/Sysfs sysfs] (/sys). The following command returns the temperature in millicelsius: | The i.MX6UL CPU has an internal TEMPMON peripheral that is supported by [https://www.kernel.org/doc/html/latest/driver-api/thermal/sysfs-api.html Linux's Thermal Zone management]. This sensor is embedded more toward the center of the die and therefore reads hotter than its ADC counterpart as it is meant to be reflective of the thermal state of the CPU for throttling control. This can be read similarly to the ADC counterpart above using [https://en.wikipedia.org/wiki/Sysfs sysfs] (/sys). The following command returns the temperature in millicelsius: | ||
<source lang=bash> | <source lang=bash> | ||
cat /sys/class/thermal/thermal_zone0/temp | cat /sys/class/thermal/thermal_zone0/temp | ||
</source> | </source> |
Revision as of 15:18, 30 December 2020
The i.MX6UL CPU has an internal TEMPMON peripheral that is supported by Linux's Thermal Zone management. This sensor is embedded more toward the center of the die and therefore reads hotter than its ADC counterpart as it is meant to be reflective of the thermal state of the CPU for throttling control. This can be read similarly to the ADC counterpart above using sysfs (/sys). The following command returns the temperature in millicelsius:
cat /sys/class/thermal/thermal_zone0/temp