Imx6ul CPU Temp Sense: Difference between revisions

From embeddedTS Manuals
(Created page with "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...")
 
No edit summary
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 temperaturesensor can be read through MRR command from LPDDR2 MR4 register, but a more convenient way to querry the temp sensing which returns temp in millicelsius is:
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 which 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:
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):
<source lang=bash>
<source lang=bash>
cat /sys/bus/iio/devices/iio:device0/in_temp_input
cat /sys/bus/iio/devices/iio:device0/in_temp_input
</source>
</source>

Revision as of 15:46, 15 May 2020

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 which is through the Linux Industrial I/O Subsystem (IIO), which provides the simplest API via sysfs (/sys) The following command will returns temp in milli-celsius:

cat /sys/bus/iio/devices/iio:device0/in_temp_input