Skip to contentSkip to conversation

hwmon: (lm63) Add support for LM96163

PATCH In review Guenter Roeck 2 participants 2 messages Jan 10, 2012

Subsystems (2)
lore
Share & tools
lore

Guenter Roeck

author maintainer
#0 lore raw

PATCH 2/5 hwmon: (lm63) Add support for LM96163

From: Guenter Roeck <[email protected]>

LM96163 is an enhanced version of LM63 with improved PWM resolution. Add chip detection code as well as support for improved PWM resolution if the chip is configured to use it.

---
 Documentation/hwmon/lm63 |    8 ++++++++
 drivers/hwmon/Kconfig    |    4 ++--
 drivers/hwmon/lm63.c     |   41 ++++++++++++++++++++++++++++++++++++-----
 3 files changed, 46 insertions(+), 7 deletions(-)
Documentation/hwmon/lm63 +8 -0
index b9843ea..337f7f4 100644
@@ -12,6 +12,11 @@ Supported chips:
     Addresses scanned: I2C 0x18 and 0x4e
     Datasheet: Publicly available at the National Semiconductor website
                http://www.national.com/pf/LM/LM64.html
+  * National Semiconductor LM96163
+    Prefix: 'lm96163'
+    Addresses scanned: I2C 0x4c
+    Datasheet: Publicly available at the National Semiconductor website
+	       http://www.national.com/pf/LM/LM96163.html
 
 Author: Jean Delvare <[email protected]>
 
@@ -62,3 +67,6 @@ values.
 
 The LM64 is effectively an LM63 with GPIO lines. The driver does not
 support these GPIO lines at present.
+
+The LM96163 is an enhanced version of LM63 with improved temperature accuracy
+and better PWM resolution.
drivers/hwmon/Kconfig +2 -2
index 91be41f..50954a4 100644
@@ -515,11 +515,11 @@ config SENSORS_LINEAGE
 	  will be called lineage-pem.
 
 config SENSORS_LM63
-	tristate "National Semiconductor LM63 and LM64"
+	tristate "National Semiconductor LM63 and compatibles"
 	depends on I2C
 	help
 	  If you say yes here you get support for the National
-	  Semiconductor LM63 and LM64 remote diode digital temperature
+	  Semiconductor LM63, LM64, and LM96163 remote diode digital temperature
 	  sensors with integrated fan control.  Such chips are found
 	  on the Tyan S4882 (Thunder K8QS Pro) motherboard, among
 	  others.
drivers/hwmon/lm63.c +36 -5

97 lines not on this page · raw message

Signature · 7 lines
1.7.5.4


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#1 lore raw
Quoted 6 lines · Guenter Roeck

From: Guenter Roeck <[email protected]>

LM96163 is an enhanced version of LM63 with improved PWM resolution. Add chip detection code as well as support for improved PWM resolution if the chip is configured to use it.

Quoted 8 lines
---
 Documentation/hwmon/lm63 |    8 ++++++++
 drivers/hwmon/Kconfig    |    4 ++--
 drivers/hwmon/lm63.c     |   41 ++++++++++++++++++++++++++++++++++++-----
 3 files changed, 46 insertions(+), 7 deletions(-)

(...)

I already have reviewed that one. You have a minor bug in your copy, BTW, which is fixed in mine:

drivers/hwmon/lm63.c static void lm63_init_client(struct i2c_client *client) · line 636

Quoted 2 lines
drivers/hwmon/lm63.c +2 -0
+			dev_warn(&client->dev,
+				 "Unsigned format for High and Crit setpoints enabled but not supported by driver");

Missing \n at the end of this string.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors