From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH] sensors-detect: Add support for NCT6775F
Date: Wed, 07 Jul 2010 11:40:57 +0000 [thread overview]
Message-ID: <20100707134057.13e0848e@hyperion.delvare> (raw)
In-Reply-To: <20100706222437.GA31051@ericsson.com>
Hi Guenter,
On Tue, 6 Jul 2010 15:24:37 -0700, Guenter Roeck wrote:
> The following patch adds support for SE97 to sensors-detect.
> It also displays the new chip names for W83677HG-I (NCT677xF).
>
> ---
> Index: prog/detect/sensors-detect
> =================================> --- prog/detect/sensors-detect (revision 5850)
> +++ prog/detect/sensors-detect (working copy)
> @@ -1190,6 +1190,11 @@ use vars qw(@i2c_adapter_names);
> i2c_addrs => [0x18..0x1f],
> i2c_detect => sub { jedec_JC42_4_detect(@_, 0); },
> }, {
> + name => "NXP SE97/SE97B",
> + driver => "to-be-written",
> + i2c_addrs => [0x18..0x1f],
> + i2c_detect => sub { jedec_JC42_4_detect(@_, 1); },
> + }, {
> name => "Smart Battery",
> driver => "sbs", # ACPI driver, not sure if it always works
> i2c_addrs => [0x0b],
> @@ -1730,7 +1735,7 @@ use constant FEAT_SMBUS => (1 << 7);
> logdev => 0x0b,
> features => FEAT_IN | FEAT_FAN | FEAT_TEMP,
> }, {
> - name => "Nuvoton W83677HG-I Super IO Sensors",
> + name => "Nuvoton W83677HG-I (NCT6771F/NCT6772F/NCT6775F) Super IO Sensors",
> driver => "to-be-written", # Probably w83627ehf
> devid => 0xB470,
> devid_mask => 0xFFF0,
> @@ -5309,7 +5314,7 @@ sub max6655_detect
> return 6;
> }
>
> -# Chip to detect: 0 = STTS424
> +# Chip to detect: 0 = STTS424, 1 = SE97/SE97B
> # Registers used:
> # 0x00: Capabilities
> # 0x01: Configuration
> @@ -5332,9 +5337,13 @@ sub jedec_JC42_4_detect
> # Check for manufacturer and device ID
> $manid = i2c_smbus_read_byte_data($file, 0x06);
> $devid = i2c_smbus_read_byte_data($file, 0x07);
> +
> if ($chip = 0) {
> return unless $manid = 0x10; # STMicrolectronics
> return unless $devid = 0x00; # STTS424
> + } elsif ($chip = 1) {
> + return unless $manid = 0x11; # NXP
> + return unless $devid = 0xa2; # SE97
> }
>
> # Now, do it all again with words. Note that we get
> @@ -5342,7 +5351,7 @@ sub jedec_JC42_4_detect
>
> # Check for unused bits
> $reg = i2c_smbus_read_word_data($file, 0x00);
> - return if $reg < 0 || $reg & 0xc0ff;
> + return if $reg < 0 || $reg & 0x00ff;
>
> $manid = i2c_smbus_read_word_data($file, 0x06);
> $devid = i2c_smbus_read_word_data($file, 0x07);
> @@ -5350,6 +5359,9 @@ sub jedec_JC42_4_detect
> if ($chip = 0) {
> return unless $manid = 0x4a10; # STMicrolectronics
> return unless ($devid & 0xfeff) = 0x0000; # STTS424
> + } elsif ($chip = 1) {
> + return unless $manid = 0x3111; # NXP
> + return unless ($devid & 0xfcff) = 0x00a2; # SE97
> }
>
> return 5;
> Index: CHANGES
> =================================> --- CHANGES (revision 5850)
> +++ CHANGES (working copy)
> @@ -18,6 +18,8 @@ SVN HEAD
> Fix Maxim MAX6690 support
> Fix handling of duplicate detections
> Add support for STMicroelectronics STTS424
> + Add support for NXP SE97 / SE97B
> + Add reference to NCT6771F/NCT6772F/NCT6775F
>
> 3.1.2 (2010-02-02)
> libsensors: Support upcoming sysfs path to i2c adapters
Looks all sane, thanks for doing this. Shall I commit it, or should I
create a developer account and let you commit it? You already have an
account for the wiki, letting you commit to the repository is only one
configuration line away. So it's as you prefer.
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2010-07-07 11:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-06 22:24 [lm-sensors] [PATCH] sensors-detect: Add support for NCT6775F and Guenter Roeck
2010-07-07 11:40 ` Jean Delvare [this message]
2010-07-07 15:53 ` [lm-sensors] [PATCH] sensors-detect: Add support for NCT6775F Jean Delvare
2010-07-07 16:03 ` Guenter Roeck
2010-07-07 19:32 ` Jean Delvare
2010-07-08 20:15 ` [lm-sensors] [PATCH] sensors-detect: Add support for several JC42.4 Guenter Roeck
2010-07-09 9:15 ` [lm-sensors] [PATCH] sensors-detect: Add support for several Jean Delvare
2010-09-08 15:35 ` [lm-sensors] [PATCH] sensors-detect: Add support for max6695/96 Guenter Roeck
2010-09-08 19:06 ` Jean Delvare
2010-09-08 19:39 ` Guenter Roeck
2011-06-26 20:38 ` [lm-sensors] [PATCH] sensors-detect: Add support for NXP/Philips 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=20100707134057.13e0848e@hyperion.delvare \
--to=khali@linux-fr.org \
--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.