All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] [PATCH] Document existing support for SMSC EMC2300 fan
@ 2011-05-10 14:21 Steve Glendinning
  2011-05-10 14:58 ` [lm-sensors] [PATCH] Document existing support for SMSC EMC2300 Jean Delvare
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Steve Glendinning @ 2011-05-10 14:21 UTC (permalink / raw)
  To: lm-sensors

The recently added support for EMC6D103S also supports EMC2300.
These two devices report exactly the same revision/stepping
register, so it's not possible to tell them apart.

EMC2300 doesn't have all the voltage inputs that EMC6D103S has,
so reports in0, in3 and in4 all as zero.

Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
---
 Documentation/hwmon/lm85 |   10 +++++++++-
 drivers/hwmon/lm85.c     |    2 ++
 2 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/Documentation/hwmon/lm85 b/Documentation/hwmon/lm85
index 7c49fea..04cc342 100644
--- a/Documentation/hwmon/lm85
+++ b/Documentation/hwmon/lm85
@@ -34,6 +34,10 @@ Supported chips:
     Prefix: 'emc6d103s'
     Addresses scanned: I2C 0x2c, 0x2d, 0x2e
     Datasheet: http://www.smsc.com/main/catalog/emc6d103s.html
+  * SMSC EMC2300
+    Prefix: 'emc6d103s'
+    Addresses scanned: I2C 0x2c, 0x2d, 0x2e
+    Datasheet: http://www.smsc.com/media/Downloads_Public/Data_Sheets/2300.pdf
 
 Authors:
         Philip Pokorny <ppokorny@penguincomputing.com>,
@@ -47,7 +51,7 @@ Description
 
 This driver implements support for the National Semiconductor LM85 and
 compatible chips including the Analog Devices ADM1027, ADT7463, ADT7468 and
-SMSC EMC6D10x chips family.
+SMSC EMC6D10x and EMC2300 chips family.
 
 The LM85 uses the 2-wire interface compatible with the SMBUS 2.0
 specification. Using an analog to digital converter it measures three (3)
@@ -136,6 +140,10 @@ of voltage and temperature channels.
 SMSC EMC6D103S is similar to EMC6D103, but does not support pwm#_auto_pwm_minctl
 and temp#_auto_temp_off.
 
+SMSC EMC2300 is similar to EMC6D103S, with fewer voltage inputs.
+Unfortunately it is not possible to distinguish between these two on a register
+level so EMC2300's voltage inputs in0, in3 and in4 will read zero.
+
 Hardware Configurations
 -----------------------
 
diff --git a/drivers/hwmon/lm85.c b/drivers/hwmon/lm85.c
index da72dc1..4b89b70 100644
--- a/drivers/hwmon/lm85.c
+++ b/drivers/hwmon/lm85.c
@@ -1260,6 +1260,8 @@ static int lm85_detect(struct i2c_client *client, struct i2c_board_info *info)
 			type_name = "emc6d103";
 			break;
 		case LM85_VERSTEP_EMC6D103S:
+			/* Note: this also matches EMC2300, we can't tell
+			 * the difference between the two */
 			type_name = "emc6d103s";
 			break;
 		}
-- 
1.7.4.1


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-05-13 12:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-10 14:21 [lm-sensors] [PATCH] Document existing support for SMSC EMC2300 fan Steve Glendinning
2011-05-10 14:58 ` [lm-sensors] [PATCH] Document existing support for SMSC EMC2300 Jean Delvare
2011-05-10 15:50 ` Guenter Roeck
2011-05-11 18:53 ` Steve.Glendinning
2011-05-12  8:26 ` Steve.Glendinning
2011-05-12  9:34 ` Jean Delvare
2011-05-12 13:58 ` Guenter Roeck
2011-05-13 12:59 ` Steve.Glendinning

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.