Skip to content

Commit 03e9bd8

Browse files
author
Guenter Roeck
committed
hwmon: (pmbus) Add client driver for LM25066, LM5064, and LM5066
PMBus client driver supporting National Semiconductor LM25066, LM5064, and LM5066. Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com> Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
1 parent 98591db commit 03e9bd8

6 files changed

Lines changed: 444 additions & 1 deletion

File tree

‎Documentation/hwmon/lm25066‎

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
Kernel driver max8688
2+
=====================
3+
4+
Supported chips:
5+
* National Semiconductor LM25066
6+
Prefix: 'lm25066'
7+
Addresses scanned: -
8+
Datasheets:
9+
http://www.national.com/pf/LM/LM25066.html
10+
http://www.national.com/pf/LM/LM25066A.html
11+
* National Semiconductor LM5064
12+
Prefix: 'lm5064'
13+
Addresses scanned: -
14+
Datasheet:
15+
http://www.national.com/pf/LM/LM5064.html
16+
* National Semiconductor LM5066
17+
Prefix: 'lm5066'
18+
Addresses scanned: -
19+
Datasheet:
20+
http://www.national.com/pf/LM/LM5066.html
21+
22+
Author: Guenter Roeck <guenter.roeck@ericsson.com>
23+
24+
25+
Description
26+
-----------
27+
28+
This driver supports hardware montoring for National Semiconductor LM25066,
29+
LM5064, and LM5064 Power Management, Monitoring, Control, and Protection ICs.
30+
31+
The driver is a client driver to the core PMBus driver. Please see
32+
Documentation/hwmon/pmbus for details on PMBus client drivers.
33+
34+
35+
Usage Notes
36+
-----------
37+
38+
This driver does not auto-detect devices. You will have to instantiate the
39+
devices explicitly. Please see Documentation/i2c/instantiating-devices for
40+
details.
41+
42+
43+
Platform data support
44+
---------------------
45+
46+
The driver supports standard PMBus driver platform data.
47+
48+
49+
Sysfs entries
50+
-------------
51+
52+
The following attributes are supported. Limits are read-write; all other
53+
attributes are read-only.
54+
55+
in1_label "vin"
56+
in1_input Measured input voltage.
57+
in1_average Average measured input voltage.
58+
in1_min Minimum input voltage.
59+
in1_max Maximum input voltage.
60+
in1_min_alarm Input voltage low alarm.
61+
in1_max_alarm Input voltage high alarm.
62+
63+
in2_label "vout1"
64+
in2_input Measured output voltage.
65+
in2_average Average measured output voltage.
66+
in2_min Minimum output voltage.
67+
in2_min_alarm Output voltage low alarm.
68+
69+
in3_label "vout2"
70+
in3_input Measured voltage on vaux pin
71+
72+
curr1_label "iin"
73+
curr1_input Measured input current.
74+
curr1_average Average measured input current.
75+
curr1_max Maximum input current.
76+
curr1_max_alarm Input current high alarm.
77+
78+
power1_label "pin"
79+
power1_input Measured input power.
80+
power1_average Average measured input power.
81+
power1_max Maximum input power limit.
82+
power1_alarm Input power alarm
83+
power1_input_highest Historical maximum power.
84+
power1_reset_history Write any value to reset maximum power history.
85+
86+
temp1_input Measured temperature.
87+
temp1_max Maximum temperature.
88+
temp1_crit Critical high temperature.
89+
temp1_max_alarm Chip temperature high alarm.
90+
temp1_crit_alarm Chip temperature critical high alarm.

‎drivers/hwmon/pmbus/Kconfig‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ config SENSORS_ADM1275
3535
This driver can also be built as a module. If so, the module will
3636
be called adm1275.
3737

38+
config SENSORS_LM25066
39+
tristate "National Semiconductor LM25066 and compatibles"
40+
default n
41+
help
42+
If you say yes here you get hardware monitoring support for National
43+
Semiconductor LM25066, LM5064, and LM5066.
44+
45+
This driver can also be built as a module. If so, the module will
46+
be called lm25066.
47+
3848
config SENSORS_MAX16064
3949
tristate "Maxim MAX16064"
4050
default n

‎drivers/hwmon/pmbus/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
obj-$(CONFIG_PMBUS) += pmbus_core.o
66
obj-$(CONFIG_SENSORS_PMBUS) += pmbus.o
77
obj-$(CONFIG_SENSORS_ADM1275) += adm1275.o
8+
obj-$(CONFIG_SENSORS_LM25066) += lm25066.o
89
obj-$(CONFIG_SENSORS_MAX16064) += max16064.o
910
obj-$(CONFIG_SENSORS_MAX34440) += max34440.o
1011
obj-$(CONFIG_SENSORS_MAX8688) += max8688.o

0 commit comments

Comments
 (0)