Imx6ul CPU Temp Sense
From embeddedTS Manuals
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: Through the Linux Industrial I/O Subsystem (IIO), which provides the simplest API via sysfs (/sys):
cat /sys/bus/iio/devices/iio:device0/in_temp_input