Imx6ul CPU Temp Sense: Difference between revisions

From embeddedTS Manuals
No edit summary
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 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:
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:
<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:48, 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 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