Imx6ul CPU Temp Sense

From embeddedTS Manuals
Revision as of 15:53, 15 May 2020 by Randy (talk | contribs)

The imx6ul Low Resolution ADC (LRADC) has an internal temperature sensing channel for monitoring 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