andy-shev/linux

SoC_DT0 and SoC_DT1 (Intel temperature sensors) are not available

razvan-becheriu opened this issue · 4 comments

Hi,

The intel temperature drivers are not available in yocto thud (edison-fw/meta-intel-edison) version.
I have tried to enable the drivers in the kernel with no success.
Can you point out what are the kernel configuration parameters I need to enable/disable so that I can access the intel temperature sensors trough /sys/class/thermal/ interface?

Thank you,
Razvan

In the original BSP the drivers/thermal/intel_mrfl_thermal.c provides such functionality. As far as I know there is no similar functionality provided in vanilla kernel. Note, the vanilla should support rather ACPI approach to use DTS.

UPDATE: this comment related to a complete DTS solution, while issue report is only about temperature sensors from PMIC, which is supported by PMIC ADC driver along with IIO hwmon glue layer.

I have found that using hwmon you can actually get the temperature:
cat /sys/class/hwmon/hwmon0/temp2_label
Core 0
cat /sys/class/hwmon/hwmon0/temp2_input
55000
cat /sys/class/hwmon/hwmon0/temp3_label
Core 1
cat /sys/class/hwmon/hwmon0/temp3_input
56000

this works for me.
you can close this issue if it is of no interest for you either.

htot commented

What modules do you need to get this?

What modules do you need to get this?

It looks like IIO hwmon support.