From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932795AbaLDRcd (ORCPT ); Thu, 4 Dec 2014 12:32:33 -0500 Received: from cantor2.suse.de ([195.135.220.15]:58484 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932182AbaLDRcc (ORCPT ); Thu, 4 Dec 2014 12:32:32 -0500 Date: Thu, 4 Dec 2014 18:32:28 +0100 From: Jean Delvare To: Bartosz Golaszewski Cc: Guenter Roeck , Patrick Titiano , LKML , Benoit Cousson , LM Sensors Subject: Re: [lm-sensors] [PATCH 1/2] hwmon: tmp401: add support for TI TMP435 Message-ID: <20141204183228.0b8cbbe3@endymion.delvare> In-Reply-To: References: <1417687048-21455-1-git-send-email-bgolaszewski@baylibre.com> <1417687048-21455-2-git-send-email-bgolaszewski@baylibre.com> <54806D6C.7060009@roeck-us.net> Organization: SUSE Linux X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.23; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 4 Dec 2014 15:33:47 +0100, Bartosz Golaszewski wrote: > 2014-12-04 15:19 GMT+01:00 Guenter Roeck : > > The datasheet claims otherwise (0x31, specifically). > > Is this based on real chip information ? > > Can you send me the output from i2cdump for the chip ? > > > > This is what I'm reading: > > # i2cdump -y 1 0x4c > 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: 1a 1b 00 00 05 55 00 55 00 00 05 55 00 55 00 0d ??..?U.U..?U.U.? > 10: 70 00 00 00 00 90 00 00 00 55 1c XX XX XX XX 00 p....?...U?XXXX. > 20: 55 0a 70 XX XX 0f XX XX XX XX XX XX XX XX XX XX U?pXX?XXXXXXXXXX > 30: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX > 40: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX > 50: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX > 60: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX > 70: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX > 80: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX > 90: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX > a0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX > b0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX > c0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX > d0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX > e0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX > f0: XX XX XX XX XX XX XX XX XX XX XX XX 00 35 55 35 XXXXXXXXXXXX.5U5 > > # i2cget -y 1 0x4c 0xff b > 0x35 That makes sense for a chip named TMP435. Looks like TI forgot to update the value when copying the datasheet from TMP431 to TMP435. Thanks for the dump, by the way :) -- Jean Delvare SUSE L3 Support