hwmon: (pmbus/lm25066) Drop support for LM25063
LM25063 was never released. Drop support for it. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Родитель
b9ccff233e
Коммит
666c14906b
|
@ -8,11 +8,6 @@ Supported chips:
|
||||||
Datasheets:
|
Datasheets:
|
||||||
http://www.ti.com/lit/gpn/lm25056
|
http://www.ti.com/lit/gpn/lm25056
|
||||||
http://www.ti.com/lit/gpn/lm25056a
|
http://www.ti.com/lit/gpn/lm25056a
|
||||||
* TI LM25063
|
|
||||||
Prefix: 'lm25063'
|
|
||||||
Addresses scanned: -
|
|
||||||
Datasheet:
|
|
||||||
To be announced
|
|
||||||
* National Semiconductor LM25066
|
* National Semiconductor LM25066
|
||||||
Prefix: 'lm25066'
|
Prefix: 'lm25066'
|
||||||
Addresses scanned: -
|
Addresses scanned: -
|
||||||
|
@ -42,7 +37,7 @@ Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
This driver supports hardware monitoring for National Semiconductor / TI LM25056,
|
This driver supports hardware monitoring for National Semiconductor / TI LM25056,
|
||||||
LM25063, LM25066, LM5064, and LM5066/LM5066I Power Management, Monitoring,
|
LM25066, LM5064, and LM5066/LM5066I Power Management, Monitoring,
|
||||||
Control, and Protection ICs.
|
Control, and Protection ICs.
|
||||||
|
|
||||||
The driver is a client driver to the core PMBus driver. Please see
|
The driver is a client driver to the core PMBus driver. Please see
|
||||||
|
@ -74,12 +69,8 @@ in1_input Measured input voltage.
|
||||||
in1_average Average measured input voltage.
|
in1_average Average measured input voltage.
|
||||||
in1_min Minimum input voltage.
|
in1_min Minimum input voltage.
|
||||||
in1_max Maximum input voltage.
|
in1_max Maximum input voltage.
|
||||||
in1_crit Critical high input voltage (LM25063 only).
|
|
||||||
in1_lcrit Critical low input voltage (LM25063 only).
|
|
||||||
in1_min_alarm Input voltage low alarm.
|
in1_min_alarm Input voltage low alarm.
|
||||||
in1_max_alarm Input voltage high alarm.
|
in1_max_alarm Input voltage high alarm.
|
||||||
in1_lcrit_alarm Input voltage critical low alarm (LM25063 only).
|
|
||||||
in1_crit_alarm Input voltage critical high alarm. (LM25063 only).
|
|
||||||
|
|
||||||
in2_label "vmon"
|
in2_label "vmon"
|
||||||
in2_input Measured voltage on VAUX pin
|
in2_input Measured voltage on VAUX pin
|
||||||
|
@ -94,16 +85,12 @@ in3_input Measured output voltage.
|
||||||
in3_average Average measured output voltage.
|
in3_average Average measured output voltage.
|
||||||
in3_min Minimum output voltage.
|
in3_min Minimum output voltage.
|
||||||
in3_min_alarm Output voltage low alarm.
|
in3_min_alarm Output voltage low alarm.
|
||||||
in3_highest Historical minimum output voltage (LM25063 only).
|
|
||||||
in3_lowest Historical maximum output voltage (LM25063 only).
|
|
||||||
|
|
||||||
curr1_label "iin"
|
curr1_label "iin"
|
||||||
curr1_input Measured input current.
|
curr1_input Measured input current.
|
||||||
curr1_average Average measured input current.
|
curr1_average Average measured input current.
|
||||||
curr1_max Maximum input current.
|
curr1_max Maximum input current.
|
||||||
curr1_crit Critical input current (LM25063 only).
|
|
||||||
curr1_max_alarm Input current high alarm.
|
curr1_max_alarm Input current high alarm.
|
||||||
curr1_crit_alarm Input current critical high alarm (LM25063 only).
|
|
||||||
|
|
||||||
power1_label "pin"
|
power1_label "pin"
|
||||||
power1_input Measured input power.
|
power1_input Measured input power.
|
||||||
|
@ -113,11 +100,6 @@ power1_alarm Input power alarm
|
||||||
power1_input_highest Historical maximum power.
|
power1_input_highest Historical maximum power.
|
||||||
power1_reset_history Write any value to reset maximum power history.
|
power1_reset_history Write any value to reset maximum power history.
|
||||||
|
|
||||||
power2_label "pout". LM25063 only.
|
|
||||||
power2_input Measured output power.
|
|
||||||
power2_max Maximum output power limit.
|
|
||||||
power2_crit Critical output power limit.
|
|
||||||
|
|
||||||
temp1_input Measured temperature.
|
temp1_input Measured temperature.
|
||||||
temp1_max Maximum temperature.
|
temp1_max Maximum temperature.
|
||||||
temp1_crit Critical high temperature.
|
temp1_crit Critical high temperature.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Hardware monitoring driver for LM25056 / LM25063 / LM25066 / LM5064 / LM5066
|
* Hardware monitoring driver for LM25056 / LM25066 / LM5064 / LM5066
|
||||||
*
|
*
|
||||||
* Copyright (c) 2011 Ericsson AB.
|
* Copyright (c) 2011 Ericsson AB.
|
||||||
* Copyright (c) 2013 Guenter Roeck
|
* Copyright (c) 2013 Guenter Roeck
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
#include <linux/i2c.h>
|
#include <linux/i2c.h>
|
||||||
#include "pmbus.h"
|
#include "pmbus.h"
|
||||||
|
|
||||||
enum chips { lm25056, lm25063, lm25066, lm5064, lm5066, lm5066i };
|
enum chips { lm25056, lm25066, lm5064, lm5066, lm5066i };
|
||||||
|
|
||||||
#define LM25066_READ_VAUX 0xd0
|
#define LM25066_READ_VAUX 0xd0
|
||||||
#define LM25066_MFR_READ_IIN 0xd1
|
#define LM25066_MFR_READ_IIN 0xd1
|
||||||
|
@ -53,11 +53,6 @@ enum chips { lm25056, lm25063, lm25066, lm5064, lm5066, lm5066i };
|
||||||
#define LM25056_MFR_STS_VAUX_OV_WARN BIT(1)
|
#define LM25056_MFR_STS_VAUX_OV_WARN BIT(1)
|
||||||
#define LM25056_MFR_STS_VAUX_UV_WARN BIT(0)
|
#define LM25056_MFR_STS_VAUX_UV_WARN BIT(0)
|
||||||
|
|
||||||
/* LM25063 only */
|
|
||||||
|
|
||||||
#define LM25063_READ_VOUT_MAX 0xe5
|
|
||||||
#define LM25063_READ_VOUT_MIN 0xe6
|
|
||||||
|
|
||||||
struct __coeff {
|
struct __coeff {
|
||||||
short m, b, R;
|
short m, b, R;
|
||||||
};
|
};
|
||||||
|
@ -122,36 +117,6 @@ static struct __coeff lm25066_coeff[6][PSC_NUM_CLASSES + 2] = {
|
||||||
.m = 16,
|
.m = 16,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
[lm25063] = {
|
|
||||||
[PSC_VOLTAGE_IN] = {
|
|
||||||
.m = 16000,
|
|
||||||
.R = -2,
|
|
||||||
},
|
|
||||||
[PSC_VOLTAGE_OUT] = {
|
|
||||||
.m = 16000,
|
|
||||||
.R = -2,
|
|
||||||
},
|
|
||||||
[PSC_CURRENT_IN] = {
|
|
||||||
.m = 10000,
|
|
||||||
.R = -2,
|
|
||||||
},
|
|
||||||
[PSC_CURRENT_IN_L] = {
|
|
||||||
.m = 10000,
|
|
||||||
.R = -2,
|
|
||||||
},
|
|
||||||
[PSC_POWER] = {
|
|
||||||
.m = 5000,
|
|
||||||
.R = -3,
|
|
||||||
},
|
|
||||||
[PSC_POWER_L] = {
|
|
||||||
.m = 5000,
|
|
||||||
.R = -3,
|
|
||||||
},
|
|
||||||
[PSC_TEMPERATURE] = {
|
|
||||||
.m = 15596,
|
|
||||||
.R = -3,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
[lm5064] = {
|
[lm5064] = {
|
||||||
[PSC_VOLTAGE_IN] = {
|
[PSC_VOLTAGE_IN] = {
|
||||||
.m = 4611,
|
.m = 4611,
|
||||||
|
@ -272,10 +237,6 @@ static int lm25066_read_word_data(struct i2c_client *client, int page, int reg)
|
||||||
/* VIN: 6.14 mV VAUX: 293 uV LSB */
|
/* VIN: 6.14 mV VAUX: 293 uV LSB */
|
||||||
ret = DIV_ROUND_CLOSEST(ret * 293, 6140);
|
ret = DIV_ROUND_CLOSEST(ret * 293, 6140);
|
||||||
break;
|
break;
|
||||||
case lm25063:
|
|
||||||
/* VIN: 6.25 mV VAUX: 200.0 uV LSB */
|
|
||||||
ret = DIV_ROUND_CLOSEST(ret * 20, 625);
|
|
||||||
break;
|
|
||||||
case lm25066:
|
case lm25066:
|
||||||
/* VIN: 4.54 mV VAUX: 283.2 uV LSB */
|
/* VIN: 4.54 mV VAUX: 283.2 uV LSB */
|
||||||
ret = DIV_ROUND_CLOSEST(ret * 2832, 45400);
|
ret = DIV_ROUND_CLOSEST(ret * 2832, 45400);
|
||||||
|
@ -330,24 +291,6 @@ static int lm25066_read_word_data(struct i2c_client *client, int page, int reg)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int lm25063_read_word_data(struct i2c_client *client, int page, int reg)
|
|
||||||
{
|
|
||||||
int ret;
|
|
||||||
|
|
||||||
switch (reg) {
|
|
||||||
case PMBUS_VIRT_READ_VOUT_MAX:
|
|
||||||
ret = pmbus_read_word_data(client, 0, LM25063_READ_VOUT_MAX);
|
|
||||||
break;
|
|
||||||
case PMBUS_VIRT_READ_VOUT_MIN:
|
|
||||||
ret = pmbus_read_word_data(client, 0, LM25063_READ_VOUT_MIN);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
ret = lm25066_read_word_data(client, page, reg);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int lm25056_read_word_data(struct i2c_client *client, int page, int reg)
|
static int lm25056_read_word_data(struct i2c_client *client, int page, int reg)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -502,11 +445,6 @@ static int lm25066_probe(struct i2c_client *client,
|
||||||
info->read_word_data = lm25056_read_word_data;
|
info->read_word_data = lm25056_read_word_data;
|
||||||
info->read_byte_data = lm25056_read_byte_data;
|
info->read_byte_data = lm25056_read_byte_data;
|
||||||
data->rlimit = 0x0fff;
|
data->rlimit = 0x0fff;
|
||||||
} else if (data->id == lm25063) {
|
|
||||||
info->func[0] |= PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT
|
|
||||||
| PMBUS_HAVE_POUT;
|
|
||||||
info->read_word_data = lm25063_read_word_data;
|
|
||||||
data->rlimit = 0xffff;
|
|
||||||
} else {
|
} else {
|
||||||
info->func[0] |= PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT;
|
info->func[0] |= PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT;
|
||||||
info->read_word_data = lm25066_read_word_data;
|
info->read_word_data = lm25066_read_word_data;
|
||||||
|
@ -543,7 +481,6 @@ static int lm25066_probe(struct i2c_client *client,
|
||||||
|
|
||||||
static const struct i2c_device_id lm25066_id[] = {
|
static const struct i2c_device_id lm25066_id[] = {
|
||||||
{"lm25056", lm25056},
|
{"lm25056", lm25056},
|
||||||
{"lm25063", lm25063},
|
|
||||||
{"lm25066", lm25066},
|
{"lm25066", lm25066},
|
||||||
{"lm5064", lm5064},
|
{"lm5064", lm5064},
|
||||||
{"lm5066", lm5066},
|
{"lm5066", lm5066},
|
||||||
|
|
Загрузка…
Ссылка в новой задаче