From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753516AbaCJN0U (ORCPT ); Mon, 10 Mar 2014 09:26:20 -0400 Received: from mail.active-venture.com ([67.228.131.205]:53526 "EHLO mail.active-venture.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752193AbaCJN0S (ORCPT ); Mon, 10 Mar 2014 09:26:18 -0400 X-Originating-IP: 108.223.40.66 Message-ID: <531DBD74.2090205@roeck-us.net> Date: Mon, 10 Mar 2014 06:26:12 -0700 From: Guenter Roeck User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Laszlo Papp CC: LKML , lm-sensors@lm-sensors.org Subject: Re: [lm-sensors] Tachometer speed returned rather than absolute fan speed? References: <20140307162524.6abd34be@endymion.delvare> <20140307163717.336873f5@endymion.delvare> <20140307181718.GA1027@roeck-us.net> <531BACD9.9050206@roeck-us.net> <531C2097.5020004@roeck-us.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/10/2014 02:59 AM, Laszlo Papp wrote: >> 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. > > We have both of them in place as per requirement for the chip as far > as I understand the datasheet. The circuit would not work properly > without it. >> sudo i2cdump -y -f 1 0x48 >> No size specified (using byte-data access) >> 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef >> 00: 00 00 0a 0a ff ff 00 00 00 00 00 00 01 01 00 00 ..??........??.. >> 10: 01 01 01 01 1f 1f 02 02 91 91 91 91 91 91 91 91 ???????????????? >> 20: 00 00 0a 0a ff ff 00 00 00 00 00 00 01 01 00 00 ..??........??.. > > /usr/sbin/i2cdump -y -f 1 0x48 > No size specified (using byte-data access) > 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef > 00: 00 00 3a 3a fc fc b4 b4 00 00 00 00 01 01 01 01 ..::????....???? > 10: 09 09 01 01 1c 1c 02 02 91 91 91 91 91 91 91 91 ???????????????? > 20: 00 00 3a 3a fc fc b4 b4 00 00 00 00 01 01 01 01 ..::????....???? > 30: 09 09 01 01 1c 1c 02 02 91 91 91 91 91 91 91 91 ???????????????? > 40: 00 00 3a 3a fc fc b4 b4 00 00 00 00 01 01 01 01 ..::????....???? > 50: 08 08 01 01 1c 1c 02 02 91 91 91 91 91 91 91 91 ???????????????? > 60: 00 00 3a 3a fc fc b4 b4 00 00 00 00 01 01 01 01 ..::????....???? > 70: 08 08 01 01 1c 1c 02 02 91 91 91 91 91 91 91 91 ???????????????? > 80: 00 00 3a 3a fc fc b4 b4 00 00 00 00 01 01 01 01 ..::????....???? > 90: 08 08 01 01 1c 1c 02 02 91 91 91 91 91 91 91 91 ???????????????? > a0: 00 00 3a 3a fc fc b4 b4 00 00 00 00 01 01 01 01 ..::????....???? > b0: 08 08 01 01 1c 1c 02 02 91 91 91 91 91 91 91 91 ???????????????? > c0: 00 00 3a 3a fc fc b4 b4 00 00 00 00 01 01 01 01 ..::????....???? > d0: 08 08 01 01 1c 1c 02 02 91 91 91 91 91 91 91 91 ???????????????? > e0: 00 00 3a 3a fc fc b4 b4 00 00 00 00 01 01 01 01 ..::????....???? > f0: 08 08 01 01 1c 1c 02 02 91 91 91 91 91 91 91 91 ???????????????? > >> groeck@desktop:~$ sensors max6651-i2c-1-48 >> max6651-i2c-1-48 >> Adapter: i2c-diolan-u2c at bus 003 device 002 >> fan1: 30 RPM (div = 4) >> fan2: 0 RPM >> fan3: 30 RPM >> fan4: 30 RPM > > sensors max6651-i2c-1-48 > max6651-i2c-1-48 > Adapter: DaVinci I2C adapter > fan1: 30 RPM (div = 4) > fan2: 30 RPM > fan3: 420 RPM > fan4: 30 RPM > >> Only fan2 (TACH1 chip input) has the resistor installed. > > We have it both on fan1 and fan4. > > If I use our scope for checking the tachometer, I see level zero on > the scope, but 1 when checking the open collector level, since that is > the purpose of the pull-up resistor. > With the pull-up installed, you should always see a high voltage on the scope or with a volt meter. The scope would not see or be able to know that the pin is OC if the pull-up resistor is there. If it is truly OC, it would be floating and might show low. If you can, I would suggest to manually add a 10k resistor against VCC to the open connector and see what happens. Another way to find out for sure might be to disconnect power and measure resistance between the tachometer pin and VCC. Guenter