hwmon: Add support for MAX31785 intelligent fan controller
Subsystems (2)
PATCH 1/1 hwmon: Add support for MAX31785 intelligent fan controller
From: Timothy Pearson <[email protected]>
Add a basic driver for the MAX31785, focusing on the fan control features but ignoring the temperature and voltage monitoring features of the device.
This driver supports all fan control modes and tachometer / PWM readback where applicable.
Signed-off-by Timothy Pearson <[email protected]>
Signed-off-by Joel Stanley <[email protected]>
--- Documentation/hwmon/max31785 | 36 +++ drivers/hwmon/Kconfig | 10 + drivers/hwmon/Makefile | 1 + drivers/hwmon/max31785.c | 714 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 761 insertions(+) create mode 100644 Documentation/hwmon/max31785 create mode 100644 drivers/hwmon/max31785.c
Documentation/hwmon/max31785 new file +36 -0
@@ -0,0 +1,36 @@ +Kernel driver max31785 +====================== + +Supported chips: + * Maxim MAX31785 + Prefix: 'max31785' + Addresses scanned: 0x52 0x53 0x54 0x55 + Datasheet: http://pdfserv.maximintegrated.com/en/ds/MAX31785.pdf + +Author: Timothy Pearson <[email protected]> + + +Description +----------- + +This driver implements support for the Maxim MAX31785 chip. + +The MAX31785 controls the speeds of up to six fans using six independent +PWM outputs. The desired fan speeds (or PWM duty cycles) are written +through the I2C interface. The outputs drive "4-wire" fans directly, +or can be used to modulate the fan's power terminals using an external +pass transistor. + +Tachometer inputs monitor fan tachometer logic outputs for precise (+/-1%) +monitoring and control of fan RPM as well as detection of fan failure. + + +Sysfs entries +------------- + +fan[1-6]_input RO fan tachometer speed in RPM +fan[1-6]_fault RO fan experienced fault +fan[1-6]_pulses RW tachometer pulses per fan revolution +fan[1-6]_target RW desired fan speed in RPM +pwm[1-6]_enable RW pwm mode, 0=disabled, 1=pwm, 2=rpm, 3=automatic +pwm[1-6] RW fan target duty cycle (0-255)
drivers/hwmon/Kconfig +10 -0
@@ -886,6 +886,16 @@ config SENSORS_MAX6697 This driver can also be built as a module. If so, the module will be called max6697. +config SENSORS_MAX31785 + tristate "Maxim MAX31785 sensor chip" + depends on I2C + help + If you say yes here you get support for 6-Channel PWM-Output + Fan RPM Controller. + + This driver can also be built as a module. If so, the module + will be called max31785. + config SENSORS_MAX31790 tristate "Maxim MAX31790 sensor chip" depends on I2C
drivers/hwmon/Makefile +1 -0
@@ -119,6 +119,7 @@ obj-$(CONFIG_SENSORS_MAX6639) += max6639.o obj-$(CONFIG_SENSORS_MAX6642) += max6642.o obj-$(CONFIG_SENSORS_MAX6650) += max6650.o obj-$(CONFIG_SENSORS_MAX6697) += max6697.o +obj-$(CONFIG_SENSORS_MAX31785) += max31785.o obj-$(CONFIG_SENSORS_MAX31790) += max31790.o obj-$(CONFIG_SENSORS_MC13783_ADC)+= mc13783-adc.o obj-$(CONFIG_SENSORS_MCP3021) += mcp3021.o
drivers/hwmon/max31785.c new file +714 -0
714 lines not on this page · raw message
Signature · 1 line
1.8.3.1