All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] [PATCH 2/2] sensors-detect: Add detection of MCP98244
@ 2013-01-29  4:40 Guenter Roeck
  2013-03-16 18:30 ` [lm-sensors] [PATCH 2/2] sensors-detect: Add detection of TMP431 and TMP432 Guenter Roeck
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Guenter Roeck @ 2013-01-29  4:40 UTC (permalink / raw)
  To: lm-sensors

MCP98244 is a JC42 temperature sensor.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
 CHANGES                    |    3 ++-
 prog/detect/sensors-detect |   13 ++++++++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/CHANGES b/CHANGES
index 465bd61..90e1e89 100644
--- a/CHANGES
+++ b/CHANGES
@@ -4,7 +4,8 @@ lm-sensors CHANGES file
 SVN HEAD
   sensors.conf.5: Mention "sensors -u" to get the raw feature names
   sensors: Clarify what option -u is good for
-  sensors-detect: Add detection of IT8752F
+  sensors-detect: Add detection of MCP98244
+                  Add detection of IT8752F
                   Add detection of AMD family 16h power sensors
                   Map IT8771E, IT8772E, IT8782F and IT8783F to it87
                   Use /sys/module instead of /proc/modules where available
diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect
index 59378c2..7db4812 100755
--- a/prog/detect/sensors-detect
+++ b/prog/detect/sensors-detect
@@ -1400,6 +1400,11 @@ use vars qw(@i2c_adapter_names);
 		i2c_addrs => [0x18..0x1f],
 		i2c_detect => sub { jedec_JC42_4_detect(@_, 7); },
 	}, {
+		name => "Microchip MCP98244",
+		driver => "jc42",
+		i2c_addrs => [0x18..0x1f],
+		i2c_detect => sub { jedec_JC42_4_detect(@_, 15); },
+	}, {
 		name => "Microchip MCP9843",
 		driver => "jc42",
 		i2c_addrs => [0x18..0x1f],
@@ -6058,7 +6063,7 @@ sub max6655_detect
 #                 4 = TS3000/TSE2002, 5 = MAX6604, 6 = MCP98242,
 #                 7 = MCP98243, 8 = MCP9843, 9 = CAT6095 / CAT34TS02,
 #                 10 = STTS424E, 11 = STTS2002, 12 = STTS3000
-#                 13 = MCP9804, 14 = AT30TS00
+#                 13 = MCP9804, 14 = AT30TS00, 15 = MCP98244
 # Registers used:
 #   0x00: Capabilities
 #   0x01: Configuration
@@ -6127,6 +6132,9 @@ sub jedec_JC42_4_detect
 	} elsif ($chip = 14) {
 		return unless $manid = 0x00;		# Atmel
 		return unless $devid = 0x82;		# AT30TS00
+	} elsif ($chip = 15) {
+		return unless $manid = 0x00;		# MCP
+		return unless $devid = 0x22;		# MCP98244
 	}
 
 	# Now, do it all again with words. Note that we get
@@ -6184,6 +6192,9 @@ sub jedec_JC42_4_detect
 	} elsif ($chip = 14) {
 		return unless $manid = 0x1f00;		# Atmel
 		return unless ($devid & 0xfeff) = 0x0082; # AT30TS00
+	} elsif ($chip = 15) {
+		return unless $manid = 0x5400;		# MCP
+		return unless ($devid & 0xfcff) = 0x0022; # MCP98244
 	}
 
 	return 5;
-- 
1.7.9.7


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

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

end of thread, other threads:[~2014-06-26 13:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-29  4:40 [lm-sensors] [PATCH 2/2] sensors-detect: Add detection of MCP98244 Guenter Roeck
2013-03-16 18:30 ` [lm-sensors] [PATCH 2/2] sensors-detect: Add detection of TMP431 and TMP432 Guenter Roeck
2013-03-17 13:12 ` Jean Delvare
2014-06-25 20:42 ` [lm-sensors] [PATCH 2/2] sensors-detect: Add detection of NCT7802Y Guenter Roeck
2014-06-25 20:45 ` Guenter Roeck
2014-06-26  9:40 ` Jean Delvare
2014-06-26 13:13 ` Guenter Roeck

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.