# Kernel driver max31785

_Peios Kernel / Hardware and drivers / Hardware monitoring_

> Supported chips:

<a id="rst-kernel-driver-max31785"></a>

Supported chips:

> - Maxim MAX31785, MAX31785A
>
>   Prefix: 'max31785' or 'max31785a'
>
>   Addresses scanned: -
>
>   Datasheet: [https://www.analog.com/media/en/technical-documentation/data-sheets/max31785.pdf](<https://www.analog.com/media/en/technical-documentation/data-sheets/max31785.pdf>)

Author: Andrew Jeffery &lt;[andrew@aj.id.au](<mailto:andrew@aj.id.au>)&gt;

<a id="rst-description"></a>

## Description

The Maxim MAX31785 is a PMBus device providing closed-loop, multi-channel fan management with temperature and remote voltage sensing. Various fan control features are provided, including PWM frequency control, temperature hysteresis, dual tachometer measurements, and fan health monitoring.

For dual-rotor configurations the MAX31785A exposes the second rotor tachometer readings in attributes fan\[5-8\]\_input. By contrast the MAX31785 only exposes the slowest rotor measurement, and does so in the fan\[1-4\]\_input attributes.

<a id="rst-usage-notes"></a>

## Usage Notes

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

<a id="rst-sysfs-attributes"></a>

## Sysfs attributes


<table>
<tbody>
<tr>
<td>


fan\[1-4\]\_alarm

</td>
<td>


Fan alarm.

</td>
</tr>
<tr>
<td>


fan\[1-4\]\_fault

</td>
<td>


Fan fault.

</td>
</tr>
<tr>
<td>


fan\[1-8\]\_input

</td>
<td>


Fan RPM. On the MAX31785A, inputs 5-8 correspond to the second rotor of fans 1-4

</td>
</tr>
<tr>
<td>


fan\[1-4\]\_target

</td>
<td>


Fan input target

</td>
</tr>
<tr>
<td>


in\[1-6\]\_crit

</td>
<td>


Critical maximum output voltage

</td>
</tr>
<tr>
<td>


in\[1-6\]\_crit_alarm

</td>
<td>


Output voltage critical high alarm

</td>
</tr>
<tr>
<td>


in\[1-6\]\_input

</td>
<td>


Measured output voltage

</td>
</tr>
<tr>
<td>


in\[1-6\]\_label

</td>
<td>


"vout\[18-23\]"

</td>
</tr>
<tr>
<td>


in\[1-6\]\_lcrit

</td>
<td>


Critical minimum output voltage

</td>
</tr>
<tr>
<td>


in\[1-6\]\_lcrit_alarm

</td>
<td>


Output voltage critical low alarm

</td>
</tr>
<tr>
<td>


in\[1-6\]\_max

</td>
<td>


Maximum output voltage

</td>
</tr>
<tr>
<td>


in\[1-6\]\_max_alarm

</td>
<td>


Output voltage high alarm

</td>
</tr>
<tr>
<td>


in\[1-6\]\_min

</td>
<td>


Minimum output voltage

</td>
</tr>
<tr>
<td>


in\[1-6\]\_min_alarm

</td>
<td>


Output voltage low alarm

</td>
</tr>
<tr>
<td>


pwm\[1-4\]

</td>
<td>


Fan target duty cycle (0..255)

</td>
</tr>
<tr>
<td>


pwm\[1-4\]\_enable

</td>
<td>


0: Full-speed 1: Manual PWM control 2: Automatic PWM (tach-feedback RPM fan-control) 3: Automatic closed-loop (temp-feedback fan-control)

</td>
</tr>
<tr>
<td>


temp\[1-11\]\_crit

</td>
<td>


Critical high temperature

</td>
</tr>
<tr>
<td>


temp\[1-11\]\_crit_alarm

</td>
<td>


Chip temperature critical high alarm

</td>
</tr>
<tr>
<td>


temp\[1-11\]\_input

</td>
<td>


Measured temperature

</td>
</tr>
<tr>
<td>


temp\[1-11\]\_max

</td>
<td>


Maximum temperature

</td>
</tr>
<tr>
<td>


temp\[1-11\]\_max_alarm

</td>
<td>


Chip temperature high alarm

</td>
</tr>
</tbody>
</table>
