From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Cole Subject: i2cset question Date: Fri, 17 Apr 2009 10:33:38 -0400 Message-ID: <49E89342.1010807@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-i2c@vger.kernel.org Hey all, I found the i2c-tools and lm-sensors packages today...great stuff! I had a question about using i2cset properly. I'm trying to set the value of a digital potentiometer (maxim 5434L) over the i2cbus, and I can tell by using i2cdump that it's setting the register value properly...but I keep getting "Warning - readback failed" after i use i2cset. Here's the output of what I'm trying to do: ccole@test:~$ sudo modprobe scx200_acb ccole@test:~$ sudo modprobe i2c-dev ccole@test:~$ sudo su - root@test:~# i2cdetect -l i2c-0 smbus CS5536 ACB0 SMBus adapter root@test:~# i2cdetect 0 WARNING! This program can confuse your I2C bus, cause data loss and worse! I will probe file /dev/i2c-0. I will probe address range 0x03-0x77. Continue? [Y/n] y 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- root@test:~# i2cdump 0 0x50 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 0x50, mode byte Continue? [Y/n] y 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 00: 80 08 07 0d 0b 01 40 00 04 60 70 00 82 08 00 01 ??????@.?`p.??.? 10: 0e 04 0c 01 02 20 c0 75 70 00 00 48 30 48 2a 80 ????? ?up..H0H*? 20: 80 80 45 45 00 00 00 00 00 3c 48 30 2d 55 00 01 ??EE.....