All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <j.w.r.degoede@hhs.nl>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] Supporting ADT7481 temperature sensor
Date: Mon, 12 Jan 2009 18:49:04 +0000	[thread overview]
Message-ID: <496B90A0.3070801@hhs.nl> (raw)
In-Reply-To: <FF6D174B07759740B0259F914CE6D7D305339414@LONMLVEM04.e2k.ad.ge.com>

Crossley, Malcolm (GE EntSol, Intelligent Platforms) wrote:
> Hello,
> 
> I am tasked with writing linux kernel support for the ADT7481 sensor. 
> This sensor is a dual remote, single local, sensor with an extended
> temperature 
> range capability on the remote sensors. 
> 
> Most of the register layout of the device is compliant with the LM90
> driver but unfortunately the official manufacturer ID and device ID
> registers are not in 
> a LM90 compliant location. 
> 
> The LM90 driver supports the ADT7481 extended temperature range
> registers through it's
> ADT7461 support. 
> 
> The ADT7481 does have register values at 0xfe and 0xff but they are not
> documented in 
> the datasheet.
> 
> Here is an i2cdump output:
>      0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
> 00: 67 6b 00 24 08 9a 13 a9 13 24 08 9a 13 a9 13 00    gk.$?????$?????.
> 10: 40 00 00 00 00 00 00 00 00 a4 00 00 00 00 00 00    @........?......
> 20: 98 05 07 00 00 00 00 00 00 00 00 00 00 00 00 00    ???.............
> 30: 6d ae 13 c0 00 00 00 00 00 a9 00 00 00 81 41 02    m???.....?...?A?
> 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
> 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
> 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
> 70: 08 00 00 c0 00 00 00 00 00 00 00 00 00 00 00 00    ?..?............
> 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
> 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
> a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
> b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
> c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
> d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
> e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
> f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 41 62    ..............Ab
> 
> The official manufacturer ID register is at 0x3e and the official device
> ID register is at
> 0x3d.
> 
> My question is whether it would be better to?
> 1. Modify the lm90 driver, using undocumented registers for detection
> and adding second 
>    remote channel support
> Or 
> 2. Write a new driver from scratch but borrow code from the existing
> LM90 driver
> 
> I would like to get this driver included into the kernel.
> 

I think one would be the best, if the changes are not to invasive (which they 
probably are not).

Regards,

Hans

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

  reply	other threads:[~2009-01-12 18:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-12 12:18 [lm-sensors] Supporting ADT7481 temperature sensor 
2009-01-12 18:49 ` Hans de Goede [this message]
2009-01-14 10:29 ` Jean Delvare
2009-01-14 11:50 ` 
2009-01-14 14:55 ` Jean Delvare
2012-10-12 10:30 ` Jia Hongtao-B38951
2012-10-12 13:18 ` Tabi Timur-B04825
2012-10-12 15:58 ` Jean Delvare
2012-10-15  2:21 ` Jia Hongtao-B38951
2012-10-15  2:22 ` Jia Hongtao-B38951
2013-08-30 12:04 ` Mercier Ivan
2013-08-30 16:21 ` Guenter Roeck
2013-08-31 12:56 ` Jean Delvare
2013-08-31 13:51 ` Guenter Roeck
2013-09-03 11:00 ` Mercier Ivan
2013-09-10  7:26 ` Jean Delvare

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=496B90A0.3070801@hhs.nl \
    --to=j.w.r.degoede@hhs.nl \
    --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.