Skip to content

Commit a5b79d6

Browse files
stiggeGuenter Roeck
authored andcommitted
hwmon: Driver for Maxim MAX6639
2-Channel Temperature Monitor with Dual PWM Fan-Speed Controller Signed-off-by: Roland Stigge <stigge@antcom.de> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
1 parent 521cb40 commit a5b79d6

5 files changed

Lines changed: 713 additions & 0 deletions

File tree

‎Documentation/hwmon/max6639‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
Kernel driver max6639
2+
=====================
3+
4+
Supported chips:
5+
* Maxim MAX6639
6+
Prefix: 'max6639'
7+
Addresses scanned: I2C 0x2c, 0x2e, 0x2f
8+
Datasheet: http://pdfserv.maxim-ic.com/en/ds/MAX6639.pdf
9+
10+
Authors:
11+
He Changqing <hechangqing@semptian.com>
12+
Roland Stigge <stigge@antcom.de>
13+
14+
Description
15+
-----------
16+
17+
This driver implements support for the Maxim MAX6639. This chip is a 2-channel
18+
temperature monitor with dual PWM fan speed controller. It can monitor its own
19+
temperature and one external diode-connected transistor or two external
20+
diode-connected transistors.
21+
22+
The following device attributes are implemented via sysfs:
23+
24+
Attribute R/W Contents
25+
----------------------------------------------------------------------------
26+
temp1_input R Temperature channel 1 input (0..150 C)
27+
temp2_input R Temperature channel 2 input (0..150 C)
28+
temp1_fault R Temperature channel 1 diode fault
29+
temp2_fault R Temperature channel 2 diode fault
30+
temp1_max RW Set THERM temperature for input 1
31+
(in C, see datasheet)
32+
temp2_max RW Set THERM temperature for input 2
33+
temp1_crit RW Set ALERT temperature for input 1
34+
temp2_crit RW Set ALERT temperature for input 2
35+
temp1_emergency RW Set OT temperature for input 1
36+
(in C, see datasheet)
37+
temp2_emergency RW Set OT temperature for input 2
38+
pwm1 RW Fan 1 target duty cycle (0..255)
39+
pwm2 RW Fan 2 target duty cycle (0..255)
40+
fan1_input R TACH1 fan tachometer input (in RPM)
41+
fan2_input R TACH2 fan tachometer input (in RPM)
42+
fan1_fault R Fan 1 fault
43+
fan2_fault R Fan 2 fault
44+
temp1_max_alarm R Alarm on THERM temperature on channel 1
45+
temp2_max_alarm R Alarm on THERM temperature on channel 2
46+
temp1_crit_alarm R Alarm on ALERT temperature on channel 1
47+
temp2_crit_alarm R Alarm on ALERT temperature on channel 2
48+
temp1_emergency_alarm R Alarm on OT temperature on channel 1
49+
temp2_emergency_alarm R Alarm on OT temperature on channel 2

‎drivers/hwmon/Kconfig‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,16 @@ config SENSORS_MAX1619
685685
This driver can also be built as a module. If so, the module
686686
will be called max1619.
687687

688+
config SENSORS_MAX6639
689+
tristate "Maxim MAX6639 sensor chip"
690+
depends on I2C && EXPERIMENTAL
691+
help
692+
If you say yes here you get support for the MAX6639
693+
sensor chips.
694+
695+
This driver can also be built as a module. If so, the module
696+
will be called max6639.
697+
688698
config SENSORS_MAX6650
689699
tristate "Maxim MAX6650 sensor chip"
690700
depends on I2C && EXPERIMENTAL

‎drivers/hwmon/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ obj-$(CONFIG_SENSORS_LTC4245) += ltc4245.o
8484
obj-$(CONFIG_SENSORS_LTC4261) += ltc4261.o
8585
obj-$(CONFIG_SENSORS_MAX1111) += max1111.o
8686
obj-$(CONFIG_SENSORS_MAX1619) += max1619.o
87+
obj-$(CONFIG_SENSORS_MAX6639) += max6639.o
8788
obj-$(CONFIG_SENSORS_MAX6650) += max6650.o
8889
obj-$(CONFIG_SENSORS_MC13783_ADC)+= mc13783-adc.o
8990
obj-$(CONFIG_SENSORS_PC87360) += pc87360.o

0 commit comments

Comments
 (0)