mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
cd228e7b65
Add support for MPS Hot-Swap controller mp5920. This driver exposes telemetry and limit value readings and writings. Signed-off-by: Alex Vdovydchenko <xzeol@yahoo.com> Reviewed-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20240702115252.981416-3-xzeol@yahoo.com [groeck: Use min_t() to limit length of displayed model string] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
92 lines
1.3 KiB
ReStructuredText
92 lines
1.3 KiB
ReStructuredText
.. SPDX-License-Identifier: GPL-2.0
|
|
|
|
Kernel driver mp5920
|
|
====================
|
|
|
|
Supported chips:
|
|
|
|
* MPS MP5920
|
|
|
|
Prefix: 'mp5920'
|
|
|
|
* Datasheet
|
|
|
|
Publicly available at the MPS website : https://www.monolithicpower.com/en/mp5920.html
|
|
|
|
Authors:
|
|
|
|
Tony Ao <tony_ao@wiwynn.com>
|
|
Alex Vdovydchenko <xzeol@yahoo.com>
|
|
|
|
Description
|
|
-----------
|
|
|
|
This driver implements support for Monolithic Power Systems, Inc. (MPS)
|
|
MP5920 Hot-Swap Controller.
|
|
|
|
Device compliant with:
|
|
|
|
- PMBus rev 1.3 interface.
|
|
|
|
Device supports direct and linear format for reading input voltage,
|
|
output voltage, output current, input power and temperature.
|
|
|
|
The driver exports the following attributes via the 'sysfs' files
|
|
for input voltage:
|
|
|
|
**in1_input**
|
|
|
|
**in1_label**
|
|
|
|
**in1_rated_max**
|
|
|
|
**in1_rated_min**
|
|
|
|
**in1_crit**
|
|
|
|
**in1_alarm**
|
|
|
|
The driver provides the following attributes for output voltage:
|
|
|
|
**in2_input**
|
|
|
|
**in2_label**
|
|
|
|
**in2_rated_max**
|
|
|
|
**in2_rated_min**
|
|
|
|
**in2_alarm**
|
|
|
|
The driver provides the following attributes for output current:
|
|
|
|
**curr1_input**
|
|
|
|
**curr1_label**
|
|
|
|
**curr1_crit**
|
|
|
|
**curr1_alarm**
|
|
|
|
**curr1_rated_max**
|
|
|
|
The driver provides the following attributes for input power:
|
|
|
|
**power1_input**
|
|
|
|
**power1_label**
|
|
|
|
**power1_max**
|
|
|
|
**power1_rated_max**
|
|
|
|
The driver provides the following attributes for temperature:
|
|
|
|
**temp1_input**
|
|
|
|
**temp1_max**
|
|
|
|
**temp1_crit**
|
|
|
|
**temp1_alarm**
|