Re: Max6650 not working / no sysfs entries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Aike,

1* Don't drop the list from Cc.
2* Don't top-post.

That being said...

On Fri, 15 Mar 2013 13:32:21 +0100, Aike Kristian Terjung wrote:
> thank you for your reply.  I tried what you suggested:
> 
> echo max6650 0x90 > /sys/bus/i2c/devices/i2c-0/new_device
> 
> what i get is: 
> 
> bash: echo: Schreibfehler: Das Argument ist ungültig.
> 
> dmesg: 
> 
> 2c i2c-0: Invalid 7-bit I2C address 0x90
> 
> why is the address 7-bit width? It seems common to me that i2c-devices have 8 bit addresses? I could change the address to 0011 111 to make it 7 bit compatible, but this solution  seems strange to me. 

No, I2C addresses can be either 7-bit or 10-bit, never 8-bit.

One common mistake encouraged by some datasheets is to refer to "read
address" and "write address" for a chip as 8-bit values. What really
goes on the wire is a 7-bit address followed by a direction bit. So if
you think your chip uses address 0x90 then odds are that it actually
uses 0x90 >> 1 == 0x48.

As a matter of fact, the first possible address listed by the MAX6650
datasheet is 0x48. And all possible addresses are shown as 7-bit values.

-- 
Jean Delvare
http://khali.linux-fr.org/wishlist.html

_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux