# Kernel driver lm25066

_Peios Kernel / Hardware and drivers / Hardware monitoring_

> Supported chips:

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

Supported chips:

> - TI LM25056
>
>   Prefix: 'lm25056'
>
>   Addresses scanned: -
>
>   Datasheets:
>
>   > [https://www.ti.com/lit/gpn/lm25056](<https://www.ti.com/lit/gpn/lm25056>)
>   >
>   > [https://www.ti.com/lit/gpn/lm25056a](<https://www.ti.com/lit/gpn/lm25056a>)
>
> - National Semiconductor LM25066
>
>   Prefix: 'lm25066'
>
>   Addresses scanned: -
>
>   Datasheets:
>
>   > [http://www.national.com/pf/LM/LM25066.html](<http://www.national.com/pf/LM/LM25066.html>)
>   >
>   > [http://www.national.com/pf/LM/LM25066A.html](<http://www.national.com/pf/LM/LM25066A.html>)
>
> - National Semiconductor LM5064
>
>   Prefix: 'lm5064'
>
>   Addresses scanned: -
>
>   Datasheet:
>
>   > [http://www.national.com/pf/LM/LM5064.html](<http://www.national.com/pf/LM/LM5064.html>)
>
> - National Semiconductor LM5066
>
>   Prefix: 'lm5066'
>
>   Addresses scanned: -
>
>   Datasheet:
>
>   > [http://www.national.com/pf/LM/LM5066.html](<http://www.national.com/pf/LM/LM5066.html>)
>
> - Texas Instruments LM5066I
>
>   Prefix: 'lm5066i'
>
>   Addresses scanned: -
>
>   > Datasheet:
>
>   [https://www.ti.com/product/LM5066I](<https://www.ti.com/product/LM5066I>)

Author: Guenter Roeck &lt;[linux@roeck-us.net](<mailto:linux@roeck-us.net>)&gt;

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

## Description

This driver supports hardware monitoring for National Semiconductor / TI LM25056, LM25066, LM5064, and LM5066/LM5066I Power Management, Monitoring, Control, and Protection ICs.

The driver is a client driver to the core PMBus driver. Please see [Documentation/hwmon/pmbus.rst](/kernel/hardware/hwmon/pmbus.md) for details on PMBus client drivers.

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

## Usage Notes

This driver does not auto-detect devices. You will have to instantiate the devices explicitly. Please see [Documentation/i2c/instantiating-devices.rst](/kernel/hardware/i2c/instantiating-devices.md) for details.

The shunt (sense) resistor value can be configured by a device tree property; see Documentation/devicetree/bindings/hwmon/pmbus/ti,lm25066.yaml for details.

<a id="rst-platform-data-support"></a>

## Platform data support

The driver supports standard PMBus driver platform data.

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

## Sysfs entries

The following attributes are supported. Limits are read-write; all other attributes are read-only.


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


in1_label

</td>
<td>


"vin"

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


in1_input

</td>
<td>


Measured input voltage.

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


in1_average

</td>
<td>


Average measured input voltage.

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


in1_min

</td>
<td>


Minimum input voltage.

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


in1_max

</td>
<td>


Maximum input voltage.

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


in1_min_alarm

</td>
<td>


Input voltage low alarm.

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


in1_max_alarm

</td>
<td>


Input voltage high alarm.

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


in2_label

</td>
<td>


"vmon"

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


in2_input

</td>
<td>


Measured voltage on VAUX pin

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


in2_min

</td>
<td>


Minimum VAUX voltage (LM25056 only).

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


in2_max

</td>
<td>


Maximum VAUX voltage (LM25056 only).

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


in2_min_alarm

</td>
<td>


VAUX voltage low alarm (LM25056 only).

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


in2_max_alarm

</td>
<td>


VAUX voltage high alarm (LM25056 only).

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


in3_label

</td>
<td>


"vout1" Not supported on LM25056.

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


in3_input

</td>
<td>


Measured output voltage.

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


in3_average

</td>
<td>


Average measured output voltage.

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


in3_min

</td>
<td>


Minimum output voltage.

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


in3_min_alarm

</td>
<td>


Output voltage low alarm.

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


curr1_label

</td>
<td>


"iin"

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


curr1_input

</td>
<td>


Measured input current.

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


curr1_average

</td>
<td>


Average measured input current.

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


curr1_max

</td>
<td>


Maximum input current.

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


curr1_max_alarm

</td>
<td>


Input current high alarm.

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


power1_label

</td>
<td>


"pin"

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


power1_input

</td>
<td>


Measured input power.

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


power1_average

</td>
<td>


Average measured input power.

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


power1_max

</td>
<td>


Maximum input power limit.

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


power1_alarm

</td>
<td>


Input power alarm

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


power1_input_highest

</td>
<td>


Historical maximum power.

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


power1_reset_history

</td>
<td>


Write any value to reset maximum power history.

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


temp1_input

</td>
<td>


Measured temperature.

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


temp1_max

</td>
<td>


Maximum temperature.

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


temp1_crit

</td>
<td>


Critical high temperature.

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


temp1_max_alarm

</td>
<td>


Chip temperature high alarm.

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


temp1_crit_alarm

</td>
<td>


Chip temperature critical high alarm.

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