of-thermal and hwmon sensors

From: Michael Walle <hidden>
Date: 2016-08-03 15:03:10

Hi,

as far as I understand it, there isn't a possibility to expose the 
thermal temperature sensors to the hwmon subsystem if the thermal zones 
are configured via device tree. Because the of-thermal driver hardcodes 
the following:

   /* No hwmon because there might be hwmon drivers registering */
   tzp->no_hwmon = true;

I guess this has to be set to true, because if not no (future) hwmon 
driver will work at all. But as far as I see, the most OF enabled 
thermal drivers don't have corresponding hwmon drivers and therefore 
can't be exposed as hwmon devices.

There was already a small discussion back in 2015:
    https://lkml.org/lkml/2015/4/20/665

but it didn't end in a solution.

Are there any new ideas from your side how to solve this? I'm not really 
into device trees and if I understand it correctly, Robs argument was 
that it should not be upon the device tree to decide which driver should 
be used (if there are multiple ones for one device). Could it be a new 
device node in the device tree with a compatible property like the 
following:
   compatible = "preferred-device", "generic-thermal-hwmon";

-michael
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help