OSDN Git Service

hwmon: (nct7904) Add extra sysfs support for fan, voltage and temperature.
authoramy.shih <amy.shih@advantech.com.tw>
Wed, 7 Aug 2019 01:38:41 +0000 (01:38 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 3 Sep 2019 19:47:17 +0000 (12:47 -0700)
commit486842db3b79af126682d148477bf17ce025870a
treed48826a2d0a2f400301af93dad9945f335cb598d
parentdbf55205118e5d46cddf65a1d1e7ea16879a7c72
hwmon: (nct7904) Add extra sysfs support for fan, voltage and temperature.

NCT-7904D also supports reading of channel limitation registers as well
as SMI status registers for fan, voltage and temperature monitoring.
It also supports reading the temperature sensor type (thermal diode,
thermistor, AMD SB-TSI or Intel PECI).

Add the following sysfs nodes:

-fan[1-*]_min
-fan[1-*]_alarm
-in[1-*]_min
-in[1-*]_max
-in[1-*]_alarm
-temp[1-*]_max
-temp[1-*]_max_hyst
-temp[1-*]_emergency
-temp[1-*]_emergency_hyst
-temp[1-*]_alarm
-temp[1-*]_type

Signed-off-by: Amy Shih <amy.shih@advantech.com.tw>
Link: https://lore.kernel.org/r/20190807013842.24451-1-Amy.Shih@advantech.com.tw
[groeck: Clarified description]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct7904.c