From: Guenter Roeck <linux@roeck-us.net>
To: Laszlo Papp <lpapp@kde.org>
Cc: LKML <linux-kernel@vger.kernel.org>, lm-sensors@lm-sensors.org
Subject: Re: [lm-sensors] Tachometer speed returned rather than absolute fan speed?
Date: Sat, 08 Mar 2014 15:50:49 -0800 [thread overview]
Message-ID: <531BACD9.9050206@roeck-us.net> (raw)
In-Reply-To: <20140307181718.GA1027@roeck-us.net>
On 03/07/2014 10:17 AM, Guenter Roeck wrote:
> On Fri, Mar 07, 2014 at 03:47:08PM +0000, Laszlo Papp wrote:
>> On Fri, Mar 7, 2014 at 3:37 PM, Jean Delvare <jdelvare@suse.de> wrote:
>>>>> I'm quite confused. While I admit that the term "tachometer speed" is
>>>>> awkward, the max6650 driver is reporting fan speeds in RPM as every
>>>>> other hwmon driver. So I really have no idea what you think is wrong.
>>>>> What did you think "tachometer speed" was, if not the fan speed? Does
>>>>> the max6650 driver not return correct fan speeds for you?
>>
>> That is some strange behavior. If I do "echo 1 > pwm1_enable; echo 0 >
>> pwm1; cat fan1_input", I still see 30 for the connected fan, whereas I
>> can see it stopped. Is this an expected behavior? I would expect zero
>> as a user.
>>
> I seem to recall that I had seen that as well, with no fan connected.
> Maybe the tachometer registers always read at least '1'. I would think
> it is wrong, but we'll have to understand the chip a bit better
> to be able to provide a fix. Unless you already have a fix ready,
> of course. I'll try to re-test tonight if I find the time.
>
The reason is (most likely) that your fan input does not have a pull-up
resistor. Per datasheet, the fan inputs need a 10kOhm pull-up resistor.
I confirmed this with my test board - with the pull-up resistor,
inputs read 0, Without pull-up, the reported value is 1, which
translates to 30 RPM.
You might also need the 10 uF capacitor on the FB pin.
Guenter
next prev parent reply other threads:[~2014-03-08 23:52 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-07 14:48 Tachometer speed returned rather than absolute fan speed? Laszlo Papp
2014-03-07 15:08 ` Laszlo Papp
2014-03-07 15:25 ` Jean Delvare
2014-03-07 15:31 ` Laszlo Papp
2014-03-07 15:37 ` Jean Delvare
2014-03-07 15:47 ` Laszlo Papp
2014-03-07 18:17 ` Guenter Roeck
2014-03-08 23:50 ` Guenter Roeck [this message]
2014-03-09 6:36 ` [lm-sensors] " Laszlo Papp
2014-03-09 8:04 ` Guenter Roeck
2014-03-09 12:44 ` Laszlo Papp
2014-03-10 9:59 ` Laszlo Papp
2014-03-10 13:26 ` Guenter Roeck
2014-03-10 13:50 ` Laszlo Papp
2014-03-10 15:11 ` Guenter Roeck
2014-03-10 18:00 ` Laszlo Papp
2014-04-08 9:19 ` Pavel Machek
2014-03-10 7:11 ` George Spelvin
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=531BACD9.9050206@roeck-us.net \
--to=linux@roeck-us.net \
--cc=linux-kernel@vger.kernel.org \
--cc=lm-sensors@lm-sensors.org \
--cc=lpapp@kde.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox