Commit 799fc602 authored by Michael Thalmeier's avatar Michael Thalmeier Committed by Guenter Roeck

hwmon: (lm75) Add support for the NXP LM75B

It is basically a faster lm75 with improved (11 bit) resolution.
Signed-off-by: default avatarMichael Thalmeier <michael.thalmeier@hale.at>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 3434f378
...@@ -53,6 +53,11 @@ Supported chips: ...@@ -53,6 +53,11 @@ Supported chips:
http://www.ti.com/product/tmp75 http://www.ti.com/product/tmp75
http://www.ti.com/product/tmp175 http://www.ti.com/product/tmp175
http://www.ti.com/product/tmp275 http://www.ti.com/product/tmp275
* NXP LM75B
Prefix: 'lm75b'
Addresses scanned: none
Datasheet: Publicly available at the NXP website
http://www.nxp.com/documents/data_sheet/LM75B.pdf
Author: Frodo Looijaard <frodol@dds.nl> Author: Frodo Looijaard <frodol@dds.nl>
......
...@@ -44,6 +44,7 @@ enum lm75_type { /* keep sorted in alphabetical order */ ...@@ -44,6 +44,7 @@ enum lm75_type { /* keep sorted in alphabetical order */
g751, g751,
lm75, lm75,
lm75a, lm75a,
lm75b,
max6625, max6625,
max6626, max6626,
mcp980x, mcp980x,
...@@ -233,6 +234,10 @@ lm75_probe(struct i2c_client *client, const struct i2c_device_id *id) ...@@ -233,6 +234,10 @@ lm75_probe(struct i2c_client *client, const struct i2c_device_id *id)
data->resolution = 9; data->resolution = 9;
data->sample_time = HZ / 2; data->sample_time = HZ / 2;
break; break;
case lm75b:
data->resolution = 11;
data->sample_time = HZ / 4;
break;
case max6625: case max6625:
data->resolution = 9; data->resolution = 9;
data->sample_time = HZ / 4; data->sample_time = HZ / 4;
...@@ -322,6 +327,7 @@ static const struct i2c_device_id lm75_ids[] = { ...@@ -322,6 +327,7 @@ static const struct i2c_device_id lm75_ids[] = {
{ "g751", g751, }, { "g751", g751, },
{ "lm75", lm75, }, { "lm75", lm75, },
{ "lm75a", lm75a, }, { "lm75a", lm75a, },
{ "lm75b", lm75b, },
{ "max6625", max6625, }, { "max6625", max6625, },
{ "max6626", max6626, }, { "max6626", max6626, },
{ "mcp980x", mcp980x, }, { "mcp980x", mcp980x, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment