All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] lm-sensors chip support
@ 2009-05-25 15:17 Rob Bloom
  2009-05-25 15:58 ` Jonathan Cameron
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Rob Bloom @ 2009-05-25 15:17 UTC (permalink / raw)
  To: lm-sensors

Hi,

I'm in a project which is looking at using lm-sensors to monitor the
following chips on various circuit boards:

- ADM1032ARMZ (temp sensor)
- MAX6639 (temp sensor)
- POWR1014A (power monitor)
- SA56004EDP (temp sensor)

I cross-checked these against the lm-sensors list of supported chips
(http://www.lm-sensors.org/wiki/Devices) and find that only the 1st one
is supported.  

Do you know if there are any plans to develop support for the latter 3
in the list?  Or, are any of these compatible with another chip that is
supported?  

If there are no plans and no compatibilities, is there documentation you
can point me to that describes a framework for adding a driver to be
supported by lm-sensors.  I'd like to consider this if this is not
difficult.  

As I understand it, there is no chip-specific code in lm-sensors; to add
support, one must add driver code into the kernel itself (ie. no code is
added to the lm-sensors domain).  Is this correct?  Is there an example
of a driver that was supported recently that I can use as an
example/framework?

Thanks for your help,
...Rob



Legal Disclaimer:
The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message

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

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

* Re: [lm-sensors] lm-sensors chip support
  2009-05-25 15:17 [lm-sensors] lm-sensors chip support Rob Bloom
@ 2009-05-25 15:58 ` Jonathan Cameron
  2009-05-25 16:09 ` Mark Brown
  2009-05-26  9:09 ` Hans de Goede
  2 siblings, 0 replies; 4+ messages in thread
From: Jonathan Cameron @ 2009-05-25 15:58 UTC (permalink / raw)
  To: lm-sensors

Hi,

There are many more knowledgeable people on this list, but in the
meantime...
> I'm in a project which is looking at using lm-sensors to monitor the
> following chips on various circuit boards:
> 
> - ADM1032ARMZ (temp sensor)
> - MAX6639 (temp sensor)
Not a clue on this one but looks like a pretty standard hwmon chip.
> - POWR1014A (power monitor)
That one does a whole lot more than would conventionally be supported by
hwmon.  I'd guess you would want a multifunction device driver, with hwmon
and pmic drivers hanging off it.  I'm not quite sure how to handle this
one as, whilst designed to control supply voltages etc, at first glance
it looks to simply be a dac (alongside all the hwmon style bits).  If you
do want to support these elements I'd suggest a post to lkml to get opinions
of the voltage and mfd users / maintainers.  In the meantime I've copied
in Liam and Mark who may want to express an opinion on this.

> - SA56004EDP (temp sensor)
I haven't checked this thoroughly but the data sheet refers to certain
variants being address and pin compatible with the lm86 which is supported
by the lm90 driver.  I'd suggest getting the data sheets for both and doing
a comparison.  This one or the max6639 would probably be the best ones
to try writing drivers for.
 
> I cross-checked these against the lm-sensors list of supported chips
> (http://www.lm-sensors.org/wiki/Devices) and find that only the 1st one
> is supported.  
> 
> Do you know if there are any plans to develop support for the latter 3
> in the list?  Or, are any of these compatible with another chip that is
> supported?  
> 
> If there are no plans and no compatibilities, is there documentation you
> can point me to that describes a framework for adding a driver to be
> supported by lm-sensors.  I'd like to consider this if this is not
> difficult.  
> 
> As I understand it, there is no chip-specific code in lm-sensors; to add
> support, one must add driver code into the kernel itself (ie. no code is
> added to the lm-sensors domain).  Is this correct?  Is there an example
> of a driver that was supported recently that I can use as an
> example/framework?
Basically browse the various drivers supported by the kernel until you find
something close to what you are working on.  If it's close enough then try
to add the support to the current driver.  If not try and replicate the way
an existing driver is set up.

As for guidance, there is a lot of relevant documentation in Documentation
directory of the kernel.

Have fun ;)

Jonathan

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

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

* Re: [lm-sensors] lm-sensors chip support
  2009-05-25 15:17 [lm-sensors] lm-sensors chip support Rob Bloom
  2009-05-25 15:58 ` Jonathan Cameron
@ 2009-05-25 16:09 ` Mark Brown
  2009-05-26  9:09 ` Hans de Goede
  2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2009-05-25 16:09 UTC (permalink / raw)
  To: lm-sensors

On Mon, May 25, 2009 at 03:58:36PM +0000, Jonathan Cameron wrote:

> > - POWR1014A (power monitor)

> That one does a whole lot more than would conventionally be supported by
> hwmon.  I'd guess you would want a multifunction device driver, with hwmon
> and pmic drivers hanging off it.  I'm not quite sure how to handle this
> one as, whilst designed to control supply voltages etc, at first glance
> it looks to simply be a dac (alongside all the hwmon style bits).  If you
> do want to support these elements I'd suggest a post to lkml to get opinions
> of the voltage and mfd users / maintainers.  In the meantime I've copied
> in Liam and Mark who may want to express an opinion on this.

Given that it looks like almost everything on the chip to do with power
control is handled by a CPLD it's probably not going to have any
regulator stuff that can go in a generic driver - it seems the intention
is more to sequence initial power up than for runtime power management.

Otherwise it looks like the control interface is fairly standard hwmon
stuff with some GPIOs as well.

> 
> > - SA56004EDP (temp sensor)
> I haven't checked this thoroughly but the data sheet refers to certain
> variants being address and pin compatible with the lm86 which is supported
> by the lm90 driver.  I'd suggest getting the data sheets for both and doing
> a comparison.  This one or the max6639 would probably be the best ones
> to try writing drivers for.
>  
> > I cross-checked these against the lm-sensors list of supported chips
> > (http://www.lm-sensors.org/wiki/Devices) and find that only the 1st one
> > is supported.  
> > 
> > Do you know if there are any plans to develop support for the latter 3
> > in the list?  Or, are any of these compatible with another chip that is
> > supported?  
> > 
> > If there are no plans and no compatibilities, is there documentation you
> > can point me to that describes a framework for adding a driver to be
> > supported by lm-sensors.  I'd like to consider this if this is not
> > difficult.  
> > 
> > As I understand it, there is no chip-specific code in lm-sensors; to add
> > support, one must add driver code into the kernel itself (ie. no code is
> > added to the lm-sensors domain).  Is this correct?  Is there an example
> > of a driver that was supported recently that I can use as an
> > example/framework?
> Basically browse the various drivers supported by the kernel until you find
> something close to what you are working on.  If it's close enough then try
> to add the support to the current driver.  If not try and replicate the way
> an existing driver is set up.
> 
> As for guidance, there is a lot of relevant documentation in Documentation
> directory of the kernel.
> 
> Have fun ;)
> 
> Jonathan

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

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

* Re: [lm-sensors] lm-sensors chip support
  2009-05-25 15:17 [lm-sensors] lm-sensors chip support Rob Bloom
  2009-05-25 15:58 ` Jonathan Cameron
  2009-05-25 16:09 ` Mark Brown
@ 2009-05-26  9:09 ` Hans de Goede
  2 siblings, 0 replies; 4+ messages in thread
From: Hans de Goede @ 2009-05-26  9:09 UTC (permalink / raw)
  To: lm-sensors

On 05/25/2009 05:17 PM, Rob Bloom wrote:
> Hi,
>
> I'm in a project which is looking at using lm-sensors to monitor the
> following chips on various circuit boards:
>
> - ADM1032ARMZ (temp sensor)
> - MAX6639 (temp sensor)
> - POWR1014A (power monitor)
> - SA56004EDP (temp sensor)
>
> I cross-checked these against the lm-sensors list of supported chips
> (http://www.lm-sensors.org/wiki/Devices) and find that only the 1st one
> is supported.
>
> Do you know if there are any plans to develop support for the latter 3
> in the list?

If it is not listed on the wiki then usually no drivers are being
developed for it.

> If there are no plans and no compatibilities, is there documentation you
> can point me to that describes a framework for adding a driver to be
> supported by lm-sensors.  I'd like to consider this if this is not
> difficult.
>

Writing new hwmon drivers usually is pretty straight forward. I would start
with the 2 temp drivers which generally speaking are easy. What you can do
is get an i2c-tiny-usb:
http://www.harbaum.org/till/i2c_tiny_usb/

Which is a small pcb with a ųC on it which plugs into usb on one side and
talks i2c on the other, get a few samples and connect those to the i2c bus,
and then start writing your driver.

A good example of a simple temp only hwmon driver for an i2c temp monitor
IC is the new driver for TI tmp401 / tmp411 IC's which you can find here:
http://www.kernel.org/pub/linux/kernel/people/jdelvare/linux-2.6/jdelvare-hwmon/

> As I understand it, there is no chip-specific code in lm-sensors; to add
> support, one must add driver code into the kernel itself (ie. no code is
> added to the lm-sensors domain).  Is this correct?

Correct.

> Is there an example
> of a driver that was supported recently that I can use as an
> example/framework?
>

See above. Don't hesitate to ask any more questions if you have any I'm
always happy to help get people up to speed with hwmon driver development.

Regards,

Hans

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

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

end of thread, other threads:[~2009-05-26  9:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-25 15:17 [lm-sensors] lm-sensors chip support Rob Bloom
2009-05-25 15:58 ` Jonathan Cameron
2009-05-25 16:09 ` Mark Brown
2009-05-26  9:09 ` Hans de Goede

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.