All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <guenter.roeck@ericsson.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH] sensors-detect: Add code to detect LM95245
Date: Sun, 10 Jul 2011 15:57:10 +0000	[thread overview]
Message-ID: <20110710155710.GA12703@ericsson.com> (raw)
In-Reply-To: <20110406072137.GB23562@ericsson.com>

On Sun, Jul 10, 2011 at 11:46:40AM -0400, Jean Delvare wrote:
> Hi Guenter,
> 
> On Fri, 8 Jul 2011 09:25:45 -0700, Guenter Roeck wrote:
> > Index: prog/detect/sensors-detect
> > =================================> > --- prog/detect/sensors-detect	(revision 5983)
> > +++ prog/detect/sensors-detect	(working copy)
> > @@ -1008,6 +1008,11 @@
> >  		i2c_addrs => [0x2b, 0x19, 0x2a],
> >  		i2c_detect => sub { lm95231_detect(@_, 1); },
> >  	}, {
> > +		name => "National Semiconductor LM95245",
> > +		driver => "lm95245",
> > +		i2c_addrs => [0x2b, 0x19, 0x2a],
> 
> The datasheet I have lists the following 5 addresses instead: 0x18,
> 0x19, 0x29, 0x4C and 0x4D, and the lm95245 driver agrees.
> 
> > +		i2c_detect => sub { lm95231_detect(@_, 2); },
> > +	}, {
> >  		name => "National Semiconductor LM63",
> >  		driver => "lm63",
> >  		i2c_addrs => [0x4c],
> > @@ -4540,7 +4545,7 @@
> >  	return 5;
> >  }
> >  
> > -# Chip to detect: 0 = LM95231, 1 = LM95241
> > +# Chip to detect: 0 = LM95231, 1 = LM95241, 2 = LM95245
> >  # Registers used:
> >  #   0x02: Status (3 unused bits)
> >  #   0x03: Configuration (3 unused bits)
> > @@ -4557,6 +4562,7 @@
> >  	return if $mid != 0x01;				# National Semiconductor
> >  	return if $chip = 0 && $cid != 0xa1;		# LM95231
> >  	return if $chip = 1 && $cid != 0xa4;		# LM95241
> > +	return if $chip = 2 && $cid != 0xb3;		# LM95245
> >  
> >  	return if i2c_smbus_read_byte_data($file, 0x02) & 0x70;
> >  	return if i2c_smbus_read_byte_data($file, 0x03) & 0x89;
> 
> These checks for unused bits were OK for the LM95231/LM95241 but not
> for the LM95245.
> 
Sigh. Must have been late.

Guenter

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

  parent reply	other threads:[~2011-07-10 15:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-06  7:21 [lm-sensors] [PATCH] sensors-detect: Add code to detect ADT7461A / Guenter Roeck
2011-04-06  8:08 ` [lm-sensors] [PATCH] sensors-detect: Add code to detect Jean Delvare
2011-07-08 16:25 ` [lm-sensors] [PATCH] sensors-detect: Add code to detect LM95245 Guenter Roeck
2011-07-10 15:46 ` Jean Delvare
2011-07-10 15:57 ` Guenter Roeck [this message]
2014-12-04 19:14 ` [lm-sensors] [PATCH] sensors-detect: Add code to detect TMP435 Guenter Roeck
2014-12-04 21:57 ` Guenter Roeck
2014-12-05  9:37 ` Jean Delvare
2014-12-05  9:43 ` Jean Delvare
2014-12-05 14:16 ` Guenter Roeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110710155710.GA12703@ericsson.com \
    --to=guenter.roeck@ericsson.com \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.