From: Jean Delvare Date: Tue, 13 Oct 2009 07:20:53 +0000 Subject: Re: [lm-sensors] "Dummy" sensor driver? Message-Id: <20091013092053.1f53eb82@hyperion.delvare> MIME-Version: 1 Content-Type: multipart/mixed; boundary="MP_/6mWum7H8CX/A0U30EyGaGBb" List-Id: References: In-Reply-To: To: lm-sensors@vger.kernel.org --MP_/6mWum7H8CX/A0U30EyGaGBb Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Good morning Ian, On Mon, 12 Oct 2009 16:43:25 -0500, Ian Pilcher wrote: > On 10/12/2009 03:52 PM, Jean Delvare wrote: > > For example this works very well with the lm90 driver. If you want > > dumps from lm90-compatible chips, just let me know and I'll send them > > to you. This should also works reasonably well with most National > > Semiconductor and Analog Device chips. Just Winbond chips don't work > > well because they use banks and i2c-stub doesn't have support for that. > > Please do send them. My desktop system has a Winbond chip, so a dump > from it presumably wouldn't do any good. Please find attached: * A dump of an ADM1025 chip, to be used with the adm1025 hwmon driver. Emulate at I2C address 0x2c, 0x2d or 0x2e. * A dump of an ADM1032 chip, to be used with the lm90 hwmon driver. Emulate at I2C address 0x4c. * A dump of an EMC6D102 chip, to be used with the lm85 hwmon driver. Emulate at I2C address 0x2c, 0x2d or 0x2e. I have dumps of many other chips if you need to test a specific case. -- Jean Delvare http://khali.linux-fr.org/wishlist.html --MP_/6mWum7H8CX/A0U30EyGaGBb Content-Type: text/plain; name=adm1025.dump Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=adm1025.dump After modprobe i2c-dev No size specified (using byte-data access) WARNING! This program can confuse your I2C bus, cause data loss and worse! I will probe file /dev/i2c-0, address 0x2d, mode byte You have five seconds to reconsider and press CTRL-C! 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 00: 5b 5b 5b 5b 5b 5b 5b 5b 5b 5b 5b 5b 5b 5b 5b 5b [[[[[[[[[[[[[[[[ 10: 5b 5b 5b 5b 5b 00 5b 5b 5b 5b 5b 5b 5b 5b 5b 00 [[[[[.[[[[[[[[[. 20: c0 7d c6 c1 c2 c6 23 21 5b 5b 5b d3 ad 84 78 d3 ?}????#![[[???x? 30: ad d3 ad d3 ad d3 ad 3c 0a 2d 0a 5b 5b 5b 41 29 ???????