All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] How values are populated in sysfs enteries in LM73 sensor
@ 2014-03-03 18:58 Romanic Dean
  2014-03-03 21:33 ` Jean Delvare
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Romanic Dean @ 2014-03-03 18:58 UTC (permalink / raw)
  To: lm-sensors

Hi all

I am going through LM73 sensor implementation and wanted to know
how different entries in sysfs is populated .

I can see max and min temp. values are hard coded in code itself

 #define LM73_TEMP_MIN           (-256000 / 250)
#define LM73_TEMP_MAX           (255750 / 250)

But what about the current temp. values ,how it is populated?

Is it read from EEPROM and then populated into sysfs entry temp_input1?

Can anyone let me know these values are populated and what is role of
EEPROM here?

Thanks,
Romanic
_______________________________________________
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] How values are populated in sysfs enteries in LM73 sensor
  2014-03-03 18:58 [lm-sensors] How values are populated in sysfs enteries in LM73 sensor Romanic Dean
@ 2014-03-03 21:33 ` Jean Delvare
  2014-03-04  4:36 ` Romanic Dean
  2014-03-04  5:15 ` Guenter Roeck
  2 siblings, 0 replies; 4+ messages in thread
From: Jean Delvare @ 2014-03-03 21:33 UTC (permalink / raw)
  To: lm-sensors

On Mon, 3 Mar 2014 10:58:21 -0800, Romanic Dean wrote:
> Hi all
> 
> I am going through LM73 sensor implementation and wanted to know
> how different entries in sysfs is populated .
> 
> I can see max and min temp. values are hard coded in code itself
> 
>  #define LM73_TEMP_MIN           (-256000 / 250)
> #define LM73_TEMP_MAX           (255750 / 250)
> 
> But what about the current temp. values ,how it is populated?
> 
> Is it read from EEPROM and then populated into sysfs entry temp_input1?
> 
> Can anyone let me know these values are populated and what is role of
> EEPROM here?

What makes you think there is any EEPROM involved?

You keep asking vague questions, we can't really help you.

The datasheet is available:
http://www.ti.com/product/LM73

The source code is available:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/hwmon/lm73.c

The driver documentation is available:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/hwmon/lm73

The sysfs interface documentation is available:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/hwmon/sysfs-interface

A brief introduction to user-space tools is available:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/hwmon/userspace-tools

So please read all of these. If you still have question, feel free to
ask, but in a clear way so that we can understand.

-- 
Jean Delvare
SUSE L3 Support

_______________________________________________
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] How values are populated in sysfs enteries in LM73 sensor
  2014-03-03 18:58 [lm-sensors] How values are populated in sysfs enteries in LM73 sensor Romanic Dean
  2014-03-03 21:33 ` Jean Delvare
@ 2014-03-04  4:36 ` Romanic Dean
  2014-03-04  5:15 ` Guenter Roeck
  2 siblings, 0 replies; 4+ messages in thread
From: Romanic Dean @ 2014-03-04  4:36 UTC (permalink / raw)
  To: lm-sensors

Thanks Jean but doubt is because of this data sheet

http://www.st.com/st-web-ui/static/active/jp/resource/technical/document/application_note/CD00079564.pdf<https://legacy.aricent.com/OWA/redir.aspx?CçrMQdCIsEe5h1I8xjn4nfrwpkv6CtFIOVJ_ZzqMu_GSLT6DEkWx_bxJe_XdhaG5aieI22_WnSo.&URL=http%3a%2f%2fwww.st.com%2fst-web-ui%2fstatic%2factive%2fjp%2fresource%2ftechnical%2fdocument%2fapplication_note%2fCD00079564.pdf>


Where sensor application senses and log the temp. into EEPROM.

Thanks



On Mon, Mar 3, 2014 at 1:33 PM, Jean Delvare <jdelvare@suse.de> wrote:

> On Mon, 3 Mar 2014 10:58:21 -0800, Romanic Dean wrote:
> > Hi all
> >
> > I am going through LM73 sensor implementation and wanted to know
> > how different entries in sysfs is populated .
> >
> > I can see max and min temp. values are hard coded in code itself
> >
> >  #define LM73_TEMP_MIN           (-256000 / 250)
> > #define LM73_TEMP_MAX           (255750 / 250)
> >
> > But what about the current temp. values ,how it is populated?
> >
> > Is it read from EEPROM and then populated into sysfs entry temp_input1?
> >
> > Can anyone let me know these values are populated and what is role of
> > EEPROM here?
>
> What makes you think there is any EEPROM involved?
>
> You keep asking vague questions, we can't really help you.
>
> The datasheet is available:
> http://www.ti.com/product/LM73
>
> The source code is available:
>
> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/hwmon/lm73.c
>
> The driver documentation is available:
>
> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/hwmon/lm73
>
> The sysfs interface documentation is available:
>
> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/hwmon/sysfs-interface
>
> A brief introduction to user-space tools is available:
>
> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/hwmon/userspace-tools
>
> So please read all of these. If you still have question, feel free to
> ask, but in a clear way so that we can understand.
>
> --
> Jean Delvare
> SUSE L3 Support
>
_______________________________________________
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] How values are populated in sysfs enteries in LM73 sensor
  2014-03-03 18:58 [lm-sensors] How values are populated in sysfs enteries in LM73 sensor Romanic Dean
  2014-03-03 21:33 ` Jean Delvare
  2014-03-04  4:36 ` Romanic Dean
@ 2014-03-04  5:15 ` Guenter Roeck
  2 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2014-03-04  5:15 UTC (permalink / raw)
  To: lm-sensors

On 03/03/2014 08:36 PM, Romanic Dean wrote:
> Thanks Jean but doubt is because of this data sheet
>
Please don't top-post.

> http://www.st.com/st-web-ui/static/active/jp/resource/technical/document/application_note/CD00079564.pdf<https://legacy.aricent.com/OWA/redir.aspx?CçrMQdCIsEe5h1I8xjn4nfrwpkv6CtFIOVJ_ZzqMu_GSLT6DEkWx_bxJe_XdhaG5aieI22_WnSo.&URL=http%3a%2f%2fwww.st.com%2fst-web-ui%2fstatic%2factive%2fjp%2fresource%2ftechnical%2fdocument%2fapplication_note%2fCD00079564.pdf>
>
Cool link. Points to something behind a firewall afaics.
Jean, the initial link works.

>
> Where sensor application senses and log the temp. into EEPROM.
>
The AN describes how to use a microcontroller (not running Linux)
to access a temperature sensor (not LM73) and store the retrieved
data in an EEPROM.

What does that have to do with the LM73 driver in Linux ?

Guenter

> Thanks
>
>
>
> On Mon, Mar 3, 2014 at 1:33 PM, Jean Delvare <jdelvare@suse.de> wrote:
>
>> On Mon, 3 Mar 2014 10:58:21 -0800, Romanic Dean wrote:
>>> Hi all
>>>
>>> I am going through LM73 sensor implementation and wanted to know
>>> how different entries in sysfs is populated .
>>>
>>> I can see max and min temp. values are hard coded in code itself
>>>
>>>   #define LM73_TEMP_MIN           (-256000 / 250)
>>> #define LM73_TEMP_MAX           (255750 / 250)
>>>
>>> But what about the current temp. values ,how it is populated?
>>>
>>> Is it read from EEPROM and then populated into sysfs entry temp_input1?
>>>
>>> Can anyone let me know these values are populated and what is role of
>>> EEPROM here?
>>
>> What makes you think there is any EEPROM involved?
>>
>> You keep asking vague questions, we can't really help you.
>>
>> The datasheet is available:
>> http://www.ti.com/product/LM73
>>
>> The source code is available:
>>
>> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/hwmon/lm73.c
>>
>> The driver documentation is available:
>>
>> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/hwmon/lm73
>>
>> The sysfs interface documentation is available:
>>
>> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/hwmon/sysfs-interface
>>
>> A brief introduction to user-space tools is available:
>>
>> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/hwmon/userspace-tools
>>
>> So please read all of these. If you still have question, feel free to
>> ask, but in a clear way so that we can understand.
>>
>> --
>> Jean Delvare
>> SUSE L3 Support
>>
> _______________________________________________
> lm-sensors mailing list
> lm-sensors@lm-sensors.org
> http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
>
>


_______________________________________________
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:[~2014-03-04  5:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-03 18:58 [lm-sensors] How values are populated in sysfs enteries in LM73 sensor Romanic Dean
2014-03-03 21:33 ` Jean Delvare
2014-03-04  4:36 ` Romanic Dean
2014-03-04  5:15 ` 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.