From 745887a8285b607ea8d060f23d150d81ac8127d6 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Thu, 7 May 2015 19:07:53 +0200 Subject: [PATCH] linux: backport support for thermal sensor lm75b It's included in generic lm75 driver. --- ...n-lm75-Add-support-for-the-NXP-LM75B.patch | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 target/linux/generic/patches-3.10/999-10-hwmon-lm75-Add-support-for-the-NXP-LM75B.patch diff --git a/target/linux/generic/patches-3.10/999-10-hwmon-lm75-Add-support-for-the-NXP-LM75B.patch b/target/linux/generic/patches-3.10/999-10-hwmon-lm75-Add-support-for-the-NXP-LM75B.patch new file mode 100644 index 0000000..fc21011 --- /dev/null +++ b/target/linux/generic/patches-3.10/999-10-hwmon-lm75-Add-support-for-the-NXP-LM75B.patch @@ -0,0 +1,64 @@ +From 799fc6021430243592ea8390aa4865713a12fd5f Mon Sep 17 00:00:00 2001 +From: Michael Thalmeier +Date: Tue, 18 Nov 2014 17:08:04 +0100 +Subject: [PATCH] hwmon: (lm75) Add support for the NXP LM75B + +It is basically a faster lm75 with improved (11 bit) resolution. + +Signed-off-by: Michael Thalmeier +Signed-off-by: Guenter Roeck +--- + Documentation/hwmon/lm75 | 5 +++++ + drivers/hwmon/lm75.c | 6 ++++++ + 2 files changed, 11 insertions(+) + +diff --git a/Documentation/hwmon/lm75 b/Documentation/hwmon/lm75 +index c6a5ff1..67691a0a 100644 +--- a/Documentation/hwmon/lm75 ++++ b/Documentation/hwmon/lm75 +@@ -53,6 +53,11 @@ Supported chips: + http://www.ti.com/product/tmp75 + http://www.ti.com/product/tmp175 + 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 + +diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c +index d16dbb33a..f58439b 100644 +--- a/drivers/hwmon/lm75.c ++++ b/drivers/hwmon/lm75.c +@@ -44,6 +44,7 @@ enum lm75_type { /* keep sorted in alphabetical order */ + g751, + lm75, + lm75a, ++ lm75b, + max6625, + max6626, + mcp980x, +@@ -233,6 +234,10 @@ lm75_probe(struct i2c_client *client, const struct i2c_device_id *id) + data->resolution = 9; + data->sample_time = HZ / 2; + break; ++ case lm75b: ++ data->resolution = 11; ++ data->sample_time = HZ / 4; ++ break; + case max6625: + data->resolution = 9; + data->sample_time = HZ / 4; +@@ -322,6 +327,7 @@ static const struct i2c_device_id lm75_ids[] = { + { "g751", g751, }, + { "lm75", lm75, }, + { "lm75a", lm75a, }, ++ { "lm75b", lm75b, }, + { "max6625", max6625, }, + { "max6626", max6626, }, + { "mcp980x", mcp980x, }, +-- +2.3.5 +