Skip to content

Commit

Permalink
hwmon: (pmbus/ltc2978) Explicit driver for LTC2978
Browse files Browse the repository at this point in the history
Provide explicit driver for LTC2978 to enable support for minimum and peak
attributes. Remove ltc2978 chip id from generic pmbus driver.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
  • Loading branch information
Guenter Roeck committed Oct 24, 2011
1 parent 3d79028 commit c3ff9a6
Show file tree
Hide file tree
Showing 6 changed files with 385 additions and 7 deletions.
78 changes: 78 additions & 0 deletions Documentation/hwmon/ltc2978
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
Kernel driver ltc2978
=====================

Supported chips:
* Linear Technology LTC2978
Prefix: 'ltc2978'
Addresses scanned: -
Datasheet: http://cds.linear.com/docs/Datasheet/2978fa.pdf

Author: Guenter Roeck <guenter.roeck@ericsson.com>


Description
-----------

The LTC2978 is an octal power supply monitor, supervisor, sequencer and
margin controller.


Usage Notes
-----------

This driver does not probe for PMBus devices. You will have to instantiate
devices explicitly.

Example: the following commands will load the driver for an LTC2978 at address
0x60 on I2C bus #1:

# modprobe ltc2978
# echo ltc2978 0x60 > /sys/bus/i2c/devices/i2c-1/new_device


Sysfs attributes
----------------

in1_label "vin"
in1_input Measured input voltage.
in1_min Minimum input voltage.
in1_max Maximum input voltage.
in1_lcrit Critical minimum input voltage.
in1_crit Critical maximum input voltage.
in1_min_alarm Input voltage low alarm.
in1_max_alarm Input voltage high alarm.
in1_lcrit_alarm Input voltage critical low alarm.
in1_crit_alarm Input voltage critical high alarm.
in1_lowest Lowest input voltage.
in1_highest Highest input voltage.
in1_reset_history Reset history. Writing into this attribute will reset
history for all attributes.

in[2-9]_label "vout[1-8]".
in[2-9]_input Measured output voltage.
in[2-9]_min Minimum output voltage.
in[2-9]_max Maximum output voltage.
in[2-9]_lcrit Critical minimum output voltage.
in[2-9]_crit Critical maximum output voltage.
in[2-9]_min_alarm Output voltage low alarm.
in[2-9]_max_alarm Output voltage high alarm.
in[2-9]_lcrit_alarm Output voltage critical low alarm.
in[2-9]_crit_alarm Output voltage critical high alarm.
in[2-9]_lowest Lowest output voltage.
in[2-9]_highest Lowest output voltage.
in[2-9]_reset_history Reset history. Writing into this attribute will reset
history for all attributes.

temp1_input Measured temperature.
temp1_min Mimimum temperature.
temp1_max Maximum temperature.
temp1_lcrit Critical low temperature.
temp1_crit Critical high temperature.
temp1_min_alarm Chip temperature low alarm.
temp1_max_alarm Chip temperature high alarm.
temp1_lcrit_alarm Chip temperature critical low alarm.
temp1_crit_alarm Chip temperature critical high alarm.
temp1_lowest Lowest measured temperature.
temp1_highest Highest measured temperature.
temp1_reset_history Reset history. Writing into this attribute will reset
history for all attributes.
5 changes: 0 additions & 5 deletions Documentation/hwmon/pmbus
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ Supported chips:
Addresses scanned: -
Datasheet:
http://archive.ericsson.net/service/internet/picov/get?DocNo=28701-EN/LZT146395
* Linear Technology LTC2978
Octal PMBus Power Supply Monitor and Controller
Prefix: 'ltc2978'
Addresses scanned: -
Datasheet: http://cds.linear.com/docs/Datasheet/2978fa.pdf
* ON Semiconductor ADP4000, NCP4200, NCP4208
Prefixes: 'adp4000', 'ncp4200', 'ncp4208'
Addresses scanned: -
Expand Down
12 changes: 11 additions & 1 deletion drivers/hwmon/pmbus/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ config SENSORS_PMBUS
help
If you say yes here you get hardware monitoring support for generic
PMBus devices, including but not limited to ADP4000, BMR450, BMR451,
BMR453, BMR454, LTC2978, NCP4200, and NCP4208.
BMR453, BMR454, NCP4200, and NCP4208.

This driver can also be built as a module. If so, the module will
be called pmbus.
Expand All @@ -46,6 +46,16 @@ config SENSORS_LM25066
This driver can also be built as a module. If so, the module will
be called lm25066.

config SENSORS_LTC2978
tristate "Linear Technologies LTC2978"
default n
help
If you say yes here you get hardware monitoring support for Linear
Technology LTC2978.

This driver can also be built as a module. If so, the module will
be called ltc2978.

config SENSORS_MAX16064
tristate "Maxim MAX16064"
default n
Expand Down
1 change: 1 addition & 0 deletions drivers/hwmon/pmbus/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ obj-$(CONFIG_PMBUS) += pmbus_core.o
obj-$(CONFIG_SENSORS_PMBUS) += pmbus.o
obj-$(CONFIG_SENSORS_ADM1275) += adm1275.o
obj-$(CONFIG_SENSORS_LM25066) += lm25066.o
obj-$(CONFIG_SENSORS_LTC2978) += ltc2978.o
obj-$(CONFIG_SENSORS_MAX16064) += max16064.o
obj-$(CONFIG_SENSORS_MAX34440) += max34440.o
obj-$(CONFIG_SENSORS_MAX8688) += max8688.o
Expand Down
Loading

0 comments on commit c3ff9a6

Please sign in to comment.