# Kernel driver ltc4286

_Peios Kernel / Hardware and drivers / Hardware monitoring_

> Supported chips:

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

<!-- SPDX-License-Identifier: GPL-2.0-or-later -->

Supported chips:

> - Analog Devices LTC4286
>
>   Prefix: 'ltc4286'
>
>   Addresses scanned: -
>
>   Datasheet: [https://www.analog.com/media/en/technical-documentation/data-sheets/ltc4286.pdf](<https://www.analog.com/media/en/technical-documentation/data-sheets/ltc4286.pdf>)
>
> - Analog Devices LTC4287
>
>   Prefix: 'ltc4287'
>
>   Addresses scanned: -
>
>   Datasheet: [https://www.analog.com/media/en/technical-documentation/data-sheets/ltc4287.pdf](<https://www.analog.com/media/en/technical-documentation/data-sheets/ltc4287.pdf>)

Author: Delphine CC Chiu &lt;[Delphine_CC_Chiu@Wiwynn.com](<mailto:Delphine_CC_Chiu@Wiwynn.com>)&gt;

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

## Description

This driver supports hardware monitoring for Analog Devices LTC4286 and LTC4287 Hot-Swap Controller and Digital Power Monitors.

LTC4286 and LTC4287 are hot-swap controllers that allow a circuit board to be removed from or inserted into a live backplane. They also feature current and voltage readback via an integrated 12 bit analog-to-digital converter (ADC), accessed using a PMBus interface.

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 value in micro-ohms can be set via device tree at compile-time. Please refer to the Documentation/devicetree/bindings/hwmon/lltc,ltc4286.yaml for bindings if the device tree is used.

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

## Platform data support

The driver supports standard PMBus driver platform data. Please see [Documentation/hwmon/pmbus.rst](/kernel/hardware/hwmon/pmbus.md) for details.

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

## Sysfs entries

The following attributes are supported. Limits are read-write, history reset attributes are write-only, all other attributes are read-only.


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


in1_label

</td>
<td>


"vin"

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


in1_input

</td>
<td>


Measured voltage.

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


in1_alarm

</td>
<td>


Input voltage alarm.

</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>


in2_label

</td>
<td>


"vout1"

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


in2_input

</td>
<td>


Measured voltage.

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


in2_alarm

</td>
<td>


Output voltage alarm.

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


in2_min

</td>
<td>


Minimum output voltage.

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


in2_max

</td>
<td>


Maximum output voltage.

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


curr1_label

</td>
<td>


"iout1"

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


curr1_input

</td>
<td>


Measured current.

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


curr1_alarm

</td>
<td>


Output current alarm.

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


curr1_max

</td>
<td>


Maximum current.

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


power1_label

</td>
<td>


"pin"

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


power1_input

</td>
<td>


Input power.

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


power1_alarm

</td>
<td>


Input power alarm.

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


power1_max

</td>
<td>


Maximum poewr.

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


temp1_input

</td>
<td>


Chip temperature.

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


temp1_min

</td>
<td>


Minimum chip temperature.

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


temp1_max

</td>
<td>


Maximum chip temperature.

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


temp1_crit

</td>
<td>


Critical chip temperature.

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


temp1_alarm

</td>
<td>


Chip temperature alarm.

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