From: Frank Myhr <fmyhr@fhmtech.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] Looking for IT8720 datasheet.
Date: Fri, 03 Oct 2008 17:14:31 +0000 [thread overview]
Message-ID: <48E652F7.7030605@fhmtech.com> (raw)
In-Reply-To: <79c9d4530810020825r79de9817g6933f6cab1d414c1@mail.gmail.com>
Jean-Marc Spaggiari wrote:
>>> Regarding pwm4 and pwm5, I'm not really sure how to do
>> Simplest and probably best to just ignore/don't worry about pwm4 and
>> pwm5 for now. Letting the user select pwm4 and pwm5 control will require
>> new sysfs attributes, there is currently no standard for these.
>> Something like:
>> pwm[4|5]_control
>> which could take values [1|2|3]
>> But I haven't yet successfully used pwm control on fans 4 and 5 on my
>> boards, not yet sure it's possible, so it's probably premature to
>> consider new sysfs interfaces for potentially useless features.
To clear up some confusion (please see file sysfs-interface):
fan1_input thru fan5_input are measured fan rpms
pwm1 thru pwm5 are driving fan voltage pulse-width-modulation duty
cycles in range 0-255. (Some boards convert pwm to linearized dc voltage).
> When I force has_fan to 5 fans, I get:
>
> fan1: 3000 RPM (min = 0 RPM)
> fan2: 0 RPM (min = 0 RPM)
> fan3: 5973 RPM (min = 0 RPM)
> fan4: -1 RPM (min = -1 RPM)
> fan5: -1 RPM (min = -1 RPM)
>
> So can I just help him to read to pwm 4 and 5 correctly?
The -1 values you're reporting for fan4 and fan5 come from
#define FAN16_FROM_REG(val) ((val)=0?-1:(val)=0xffff?0:1350000/((val)*2))
In other words, the 8720 reports "0", the above macro converts that to
-1. (I'm not entirely clear why this is done.)
> Regarding the resistors. should I publish the values? Or it's useless?
I think it would help at least other users of your board. Perhaps add it
to Documentation/hwmon/it87 ?
-Frank
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2008-10-03 17:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-02 15:25 [lm-sensors] Looking for IT8720 datasheet Jean-Marc Spaggiari
2008-10-02 15:39 ` Jean Delvare
2008-10-02 16:28 ` Jean-Marc Spaggiari
2008-10-02 16:41 ` Jean Delvare
2008-10-02 18:48 ` Frank Myhr
2008-10-03 13:23 ` Jean-Marc Spaggiari
2008-10-03 15:51 ` Frank Myhr
2008-10-03 16:32 ` Jean-Marc Spaggiari
2008-10-03 17:14 ` Frank Myhr [this message]
2008-10-03 20:29 ` Frank Myhr
2008-10-07 20:12 ` Jean Delvare
2008-10-07 20:16 ` 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=48E652F7.7030605@fhmtech.com \
--to=fmyhr@fhmtech.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.