linux-kernel-test/drivers/hwmon
Neelesh Gupta 24c1aa8587 hwmon: (powerpc/powernv) hwmon driver for power, fan rpm, voltage and temperature
This patch adds basic kernel support for reading power values, fan
speed rpm, voltage and temperature data on powernv platforms which
will be exported to user space through sysfs interface.

Test results:
-------------
[root@tul163p1 ~]# sensors
ibmpowernv-isa-0000
Adapter: ISA adapter
fan1:        5465 RPM  (min =    0 RPM)
fan2:        5152 RPM  (min =    0 RPM)
fan3:        5521 RPM  (min =    0 RPM)
fan4:        4891 RPM  (min =    0 RPM)
fan5:           0 RPM  (min =    0 RPM)
fan6:           0 RPM  (min =    0 RPM)
fan7:        7480 RPM  (min =    0 RPM)
fan8:        7944 RPM  (min =    0 RPM)
temp1:        +39.0°C  (high =  +0.0°C)
power1:      190.00 W

[root@tul163p1 ~]# ls /sys/devices/platform/
alarmtimer  ibmpowernv.0  power  rtc-generic  serial8250  uevent
[root@tul163p1 ~]# ls /sys/devices/platform/ibmpowernv.0/hwmon/hwmon0/
device	    fan2_min	fan4_min    fan6_min	fan8_min   power
fan1_fault  fan3_fault	fan5_fault  fan7_fault	in1_fault  power1_input
fan1_input  fan3_input	fan5_input  fan7_input	in2_fault  subsystem
fan1_min    fan3_min	fan5_min    fan7_min	in3_fault  temp1_input
fan2_fault  fan4_fault	fan6_fault  fan8_fault	in4_fault  temp1_max
fan2_input  fan4_input	fan6_input  fan8_input	name	   uevent
[root@tul163p1 ~]# ls /sys/class/hwmon/hwmon0/
device	    fan2_min	fan4_min    fan6_min	fan8_min   power
fan1_fault  fan3_fault	fan5_fault  fan7_fault	in1_fault  power1_input
fan1_input  fan3_input	fan5_input  fan7_input	in2_fault  subsystem
fan1_min    fan3_min	fan5_min    fan7_min	in3_fault  temp1_input
fan2_fault  fan4_fault	fan6_fault  fan8_fault	in4_fault  temp1_max
fan2_input  fan4_input	fan6_input  fan8_input	name	   uevent
[root@tul163p1 ~]#

Signed-off-by: Neelesh Gupta <neelegup@linux.vnet.ibm.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2014-08-04 07:01:38 -07:00
..
pmbus hwmon: (pmbus) Add tps40422 front-end driver 2014-08-04 07:01:38 -07:00
ab8500.c
abituguru3.c hwmon: Correct some typos 2013-10-18 09:12:02 -07:00
abituguru.c hwmon: Correct some typos 2013-10-18 09:12:02 -07:00
abx500.c hwmon: (abx500) Staticize abx500_temp_attributes 2013-07-14 16:24:25 -07:00
abx500.h
acpi_power_meter.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
ad7314.c
ad7414.c hwmon: (ad7414) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:35 -07:00
ad7418.c hwmon: (ad7418) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:35 -07:00
adc128d818.c hwmon: (adc128d818) Drop write support on inX_input attributes 2014-07-07 09:48:23 -07:00
adcxx.c hwmon: (adcxx) Remove redundant spi_set_drvdata 2013-10-18 09:12:01 -07:00
adm1021.c hwmon: (adm1021) Avoid forward declaration 2014-08-04 07:01:36 -07:00
adm1025.c hwmon: (adm1025) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:36 -07:00
adm1026.c hwmon: (adm1026) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:37 -07:00
adm1029.c hwmon: (adm1029) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:35 -07:00
adm1031.c hwmon: (adm1031) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:37 -07:00
adm9240.c hwmon: (adm9240) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:37 -07:00
ads1015.c hwmon: (ads1015) Fix off-by-one for valid channel index checking 2014-07-29 20:27:10 -07:00
ads7828.c hwmon: (ads7828) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:34 -07:00
ads7871.c
adt7x10.c
adt7x10.h
adt7310.c hwmon: (adt7310) Use spi_w8r16be() instead spi_w8r16() 2013-10-03 13:52:15 +01:00
adt7410.c
adt7411.c
adt7462.c hwmon: (adt7462) Use error value returned from find_trange_value() 2013-10-13 16:16:26 -07:00
adt7470.c hwmon: (adt7470) Fix writes to temperature limit registers 2014-07-16 21:18:47 -07:00
adt7475.c Update Jean Delvare's e-mail address 2014-01-29 20:40:08 +01:00
amc6821.c hwmon: (amc6821) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:35 -07:00
applesmc.c hwmon: (applesmc) Always read until end of data 2013-10-09 09:48:55 -07:00
asb100.c
asc7621.c hwmon: Avoid initializing the same field twice 2014-04-04 18:01:34 +02:00
asus_atk0110.c ACPI: Clean up inclusions of ACPI header files 2013-12-07 01:03:14 +01:00
atxp1.c hwmon: (atxp1) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:33 -07:00
coretemp.c Revert "hwmon: (coretemp) Refine TjMax detection" 2014-05-01 04:07:52 -07:00
da9052-hwmon.c hwmon: (da9052) Don't use dash in the name attribute 2014-07-14 10:42:12 -07:00
da9055-hwmon.c hwmon: (da9055) Don't use dash in the name attribute 2014-07-14 10:42:12 -07:00
dme1737.c
ds620.c hwmon: use dev_get_platdata() 2013-08-11 22:10:39 -07:00
ds1621.c Update Jean Delvare's e-mail address 2014-01-29 20:40:08 +01:00
emc6w201.c hwmon: (emc6w201) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:35 -07:00
emc1403.c hwmon: Make regmap configs const 2014-08-04 07:01:35 -07:00
emc2103.c hwmon: (emc2103) Clamp limits instead of bailing out 2014-07-07 07:15:31 -07:00
f71805f.c hwmon: (f71805f) remove unnecessary OOM messages 2014-05-21 16:02:21 -07:00
f71882fg.c hwmon: (f71882fg) Remove extra return statement 2013-10-13 16:16:27 -07:00
f75375s.c hwmon: (f75375s) Don't crash the kernel unnecessarily 2013-10-13 16:16:27 -07:00
fam15h_power.c hwmon: (fam15h_power) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:34 -07:00
fschmd.c
g760a.c hwmon: (g760a) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:37 -07:00
g762.c hwmon: (g762) Make of_device_id array const 2014-05-21 16:02:22 -07:00
gl518sm.c hwmon: (gl518sm) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:36 -07:00
gl520sm.c hwmon: (gl520sm) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:36 -07:00
gpio-fan.c hwmon: (gpio-fan) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:33 -07:00
hih6130.c hwmon: (hih6130) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:34 -07:00
htu21.c hwmon: (htu21) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:35 -07:00
hwmon-vid.c hwmon: (hwmon-vid) Add __maybe_unused attribute to dummy variable 2013-09-10 06:28:17 -07:00
hwmon.c hwmon: Do not accept invalid name attributes 2014-03-03 08:01:06 -08:00
i5k_amb.c hwmon: Change my email address. 2013-08-27 08:28:01 -07:00
ibmaem.c hwmon: (ibmaem) Fix return value 2013-09-11 13:01:32 -07:00
ibmpex.c hwmon: (ibmpex) remove unnecessary OOM messages 2014-05-21 16:02:21 -07:00
ibmpowernv.c hwmon: (powerpc/powernv) hwmon driver for power, fan rpm, voltage and temperature 2014-08-04 07:01:38 -07:00
iio_hwmon.c hwmon: (iio_hwmon) Make of_device_id array const 2014-05-21 16:02:23 -07:00
ina2xx.c hwmon: (ina2xx) Cast to s16 on shunt and current regs 2014-06-12 08:36:18 -07:00
ina209.c hwmon: (ina209) Convert to use devm_hwmon_device_register_with_groups 2013-10-18 09:11:57 -07:00
it87.c hwmon: (it87) Add support for IT8623E 2014-04-04 18:01:35 +02:00
jc42.c hwmon: (jc42) Add support for STTS2004 and AT30TSE004 2014-05-21 16:02:25 -07:00
jz4740-hwmon.c hwmon: (jz4740) Use devm_ioremap_resource() 2014-03-03 08:01:03 -08:00
k8temp.c hwmon: remove DEFINE_PCI_DEVICE_TABLE macro 2014-01-14 21:36:30 -08:00
k10temp.c hwmon: (k10temp) Add support for AMD F16 M30h processor 2014-04-02 22:09:14 -07:00
Kconfig hwmon: (powerpc/powernv) hwmon driver for power, fan rpm, voltage and temperature 2014-08-04 07:01:38 -07:00
lineage-pem.c hwmon: (lineage-pem) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:37 -07:00
lm63.c hwmon: (lm63) Fix smatch warnings 2014-08-04 07:01:36 -07:00
lm70.c hwmon: (lm70) Convert to use devm_hwmon_device_register_with_groups 2014-05-21 16:02:20 -07:00
lm73.c hwmon: (lm73) Convert to use devm_hwmon_device_register_with_groups 2013-10-13 16:16:28 -07:00
lm75.c hwmon: (lm75) Add support for TMP112 2014-08-04 07:01:34 -07:00
lm75.h
lm77.c hwmon: (lm77) Prevent overflow problem when writing large limits 2014-07-31 09:41:46 -07:00
lm78.c hwmon: (lm78) Fix overflow problems seen when writing large temperature limits 2014-07-30 21:42:37 -07:00
lm80.c hwmon: (lm80) Rearrange code to avoid forward declarations 2014-05-21 16:02:26 -07:00
lm83.c hwmon: (lm83) Convert to use devm_hwmon_device_register_with_groups 2014-05-21 16:02:26 -07:00
lm85.c hwmon: (lm85) Fix various errors on attribute writes 2014-07-30 21:42:33 -07:00
lm87.c hwmon: Avoid initializing the same field twice 2014-04-04 18:01:34 +02:00
lm90.c hwmon: (lm90) Convert to use hwmon_device_register_with_groups 2014-04-04 18:01:35 +02:00
lm92.c hwmon: (lm92) Convert to use devm_hwmon_device_register_with_groups 2014-05-21 16:02:21 -07:00
lm93.c hwmon: (lm93) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:36 -07:00
lm95234.c hwmon: (lm95234) fix coccinelle warnings 2013-10-18 09:12:00 -07:00
lm95241.c hwmon: (lm95241) Avoid initializing the same field twice 2014-03-03 08:01:04 -08:00
lm95245.c hwmon: (lm95245) Make temp2_crit_hyst read-only 2014-03-03 08:01:06 -08:00
ltc2945.c hwmon: Make regmap configs const 2014-08-04 07:01:35 -07:00
ltc4151.c hwmon: (ltc4151) Convert to devm_hwmon_device_register_with_groups 2014-06-12 08:36:47 -07:00
ltc4215.c hwmon: (ltc4215) Convert to devm_hwmon_device_register_with_groups 2014-03-03 08:01:05 -08:00
ltc4222.c hwmon: Make regmap configs const 2014-08-04 07:01:35 -07:00
ltc4245.c hwmon: (ltc4245) Remove devicetree conditionals 2014-03-03 08:01:05 -08:00
ltc4260.c hwmon: Make regmap configs const 2014-08-04 07:01:35 -07:00
ltc4261.c hwmon: (ltc4261) fix coccinelle warnings 2013-10-18 09:12:00 -07:00
Makefile hwmon: (powerpc/powernv) hwmon driver for power, fan rpm, voltage and temperature 2014-08-04 07:01:38 -07:00
max197.c hwmon: (max197) remove unnecessary OOM messages 2014-05-21 16:02:22 -07:00
max1111.c hwmon: (max1111) remove unnecessary OOM messages 2014-05-21 16:02:22 -07:00
max1619.c hwmon: (max1619) Convert to use devm_hwmon_device_register_with_groups 2014-05-21 16:02:25 -07:00
max1668.c hwmon: (max1668) Convert to use devm_hwmon_device_register_with_groups 2014-03-03 08:01:04 -08:00
max6639.c hwmon: (max6639) Use SIMPLE_DEV_PM_OPS macro 2014-03-03 08:01:06 -08:00
max6642.c Update Jean Delvare's e-mail address 2014-01-29 20:40:08 +01:00
max6650.c hwmon: (max6650) Introduce local 'dev' variable 2014-03-03 08:01:06 -08:00
max6697.c hwmon: (max6697) fix coccinelle warnings 2013-10-18 09:11:59 -07:00
max16065.c hwmon: (max16065) Convert to use devm_hwmon_device_register_with_groups 2013-10-13 16:16:29 -07:00
mc13783-adc.c hwmon: (mc13783-adc) Increase size of name string 2013-10-13 16:16:26 -07:00
mcp3021.c hwmon: use dev_get_platdata() 2013-08-11 22:10:39 -07:00
nct6683.c hwmon: (nct6683) Fix probe unwind paths to properly unregister platform devices 2014-05-24 08:28:24 -07:00
nct6775.c hwmon: (nct6775) Fix probe unwind paths to properly unregister platform devices 2014-05-24 08:30:29 -07:00
ntc_thermistor.c hwmon: (ntc_thermistor) Support B57330V2103 from EPCOS 2014-08-04 07:01:35 -07:00
pc87360.c hwmon: (pc87360) Avoid initializing the same field twice 2014-04-04 18:01:34 +02:00
pc87427.c hwmon: (pc87427) remove unnecessary OOM messages 2014-05-21 16:02:22 -07:00
pcf8591.c Update Jean Delvare's e-mail address 2014-01-29 20:40:08 +01:00
powr1220.c hwmon: Add support for Lattice's POWR1220 power manager IC 2014-08-04 07:01:33 -07:00
s3c-hwmon.c hwmon: (s3c-hwmon) remove unnecessary OOM messages 2014-05-21 16:02:22 -07:00
sch56xx-common.c
sch56xx-common.h
sch5627.c
sch5636.c
sht15.c New driver for HTU21D (humidity sensor) 2013-09-03 10:43:35 -07:00
sht21.c
shtc1.c hwmon: add support for Sensirion SHTC1 sensor 2014-06-12 08:36:48 -07:00
sis5595.c Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging 2014-01-29 18:56:27 -08:00
smm665.c hwmon: (smm665) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:37 -07:00
smsc47b397.c Update Jean Delvare's e-mail address 2014-01-29 20:40:08 +01:00
smsc47m1.c Update Jean Delvare's e-mail address 2014-01-29 20:40:08 +01:00
smsc47m192.c hwmon: (smsc47m192) Fix temperature limit and vrm write operations 2014-07-24 06:25:25 -07:00
thmc50.c
tmp102.c hwmon: (tmp102) Convert to use hwmon_device_register_with_groups 2014-05-21 16:02:20 -07:00
tmp103.c hwmon: Make regmap configs const 2014-08-04 07:01:35 -07:00
tmp401.c hwmon: (tmp401) Convert to use devm_hwmon_device_register_with_groups 2013-10-18 09:11:52 -07:00
tmp421.c hwmon: (tmp421) Drop FSF mailing address 2014-08-04 07:01:38 -07:00
twl4030-madc-hwmon.c hwmon: (twl4030-madc-hwmon) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:33 -07:00
ultra45_env.c hwmon: (ultra45_env) Introduce managed version of kzalloc 2014-05-21 16:02:27 -07:00
vexpress.c hwmon: vexpress: Use devm helper for hwmon device registration 2014-06-12 08:36:50 -07:00
via686a.c hwmon: remove DEFINE_PCI_DEVICE_TABLE macro 2014-01-14 21:36:30 -08:00
via-cputemp.c hwmon, via-cputemp: Fix CPU hotplug callback registration 2014-03-20 13:43:48 +01:00
vt1211.c hwmon: (vt1211) remove unnecessary OOM messages 2014-05-21 16:02:22 -07:00
vt8231.c hwmon: remove DEFINE_PCI_DEVICE_TABLE macro 2014-01-14 21:36:30 -08:00
w83l785ts.c hwmon: Avoid initializing the same field twice 2014-04-04 18:01:34 +02:00
w83l786ng.c hwmon: (w83l786ng) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:34 -07:00
w83627ehf.c Update Jean Delvare's e-mail address 2014-01-29 20:40:08 +01:00
w83627hf.c Update Jean Delvare's e-mail address 2014-01-29 20:40:08 +01:00
w83781d.c Update Jean Delvare's e-mail address 2014-01-29 20:40:08 +01:00
w83791d.c hwmon: (w83791d) Fix smatch warning 2014-08-04 07:01:36 -07:00
w83792d.c hwmon: Avoid initializing the same field twice 2014-04-04 18:01:34 +02:00
w83793.c hwmon: (w83793) Clean up a signedness issue 2013-10-19 09:04:25 -07:00
w83795.c Update Jean Delvare's e-mail address 2014-01-29 20:40:08 +01:00
wm831x-hwmon.c hwmon: (wm831x) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:34 -07:00
wm8350-hwmon.c hwmon: (wm8350) Convert to devm_hwmon_device_register_with_groups 2014-08-04 07:01:34 -07:00