andy-shev / linux

Linux kernel source tree
Other
25 stars 11 forks source link

SoC_DT0 and SoC_DT1 (Intel temperature sensors) are not available #26

Closed razvan-becheriu closed 5 years ago

razvan-becheriu commented 5 years ago

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

andy-shev commented 5 years ago

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.

razvan-becheriu commented 5 years ago

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 5 years ago

What modules do you need to get this?

andy-shev commented 5 years ago

What modules do you need to get this?

It looks like IIO hwmon support.