Imx6ul CPU Temp Sense: Difference between revisions

From embeddedTS Manuals
No edit summary
(Removed references to ADC)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The imx6ul Low Resolution ADC (LRADC) has an internal temperature sensing channel for monitoring and alarming on high die temperature situations. The status of the temperature sensor can be read through MRR command from LPDDR2 MR4 register, but a more convenient way to query the temp sensor is through the [https://wiki.analog.com/software/linux/docs/iio/iio Linux Industrial I/O Subsystem] (IIO), which provides the simplest API via [https://en.wikipedia.org/wiki/Sysfs sysfs] (/sys) The following command will returns temp in milli-celsius:
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 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 [https://en.wikipedia.org/wiki/Sysfs sysfs] (/sys) interface. The following command returns the temperature in millicelsius:
<source lang=bash>
<source lang=bash>
cat /sys/bus/iio/devices/iio:device0/in_temp_input
cat /sys/class/thermal/thermal_zone0/temp
</source>
</source>

Latest revision as of 15:20, 30 December 2020

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