ahh.... something really weird going on with the flying squirrel i2c addressing. i'm running i2cdetect and it's showing up 0x34 for the AXP209 I2C address instead of 0x68, and so on. i _thought_ i got the address for the I2C EEPROM right, from the datasheet (0xA2) - but it seems that it's been shifted by one bit (0x51) as well.
help! i have no idea what's going on here!
l.
On Wed, Oct 9, 2013 at 1:22 PM, luke.leighton luke.leighton@gmail.com wrote:
ahh.... something really weird going on with the flying squirrel i2c addressing. i'm running i2cdetect and it's showing up 0x34 for the AXP209 I2C address instead of 0x68, and so on. i _thought_ i got the address for the I2C EEPROM right, from the datasheet (0xA2) - but it seems that it's been shifted by one bit (0x51) as well.
help! i have no idea what's going on here!
ahh... that's interesting... i2cdetect 0 shows 0x34 for the on-board AXP209 and that's literally the only device on the I2C bus. actually it shows UU instead of 34.
so the issue's not *specifically* related to the flying squirrel. hmmm...
does anyone else have debian (or any other OS) up and running, where they can do a scan of the I2C bus, or otherwise show some kernel log messages of communication with the AXP209?
i need to track down whether this is a hardware or software problem and the more info the better.
l.
u-boot... sun7i# i2c md 0x68 0 0x10 Error reading the chip. sun7i# i2c md 0x34 0 0x10 0000: fb 10 00 41 00 00 00 00 00 00 00 00 00 00 00 0e ...A............ sun7i#
... moo??
On Wed, Oct 9, 2013 at 2:10 PM, luke.leighton luke.leighton@gmail.com wrote:
u-boot... sun7i# i2c md 0x68 0 0x10 Error reading the chip. sun7i# i2c md 0x34 0 0x10 0000: fb 10 00 41 00 00 00 00 00 00 00 00 00 00 00 0e ...A............ sun7i#
... moo??
http://lists.denx.de/pipermail/u-boot/2012-November/140778.html
+int axp209_write(enum axp209_reg reg, u8 val) +{
- return i2c_write(0x34, reg, 1, &val, 1);
+}
ahhhhh :)
whew. panic over. it's at the correct address. wheeewww :)
Hello,
On Wed, 9 Oct 2013 14:05:04 +0100 "luke.leighton" luke.leighton@gmail.com wrote:
On Wed, Oct 9, 2013 at 1:22 PM, luke.leighton luke.leighton@gmail.com wrote:
ahh.... something really weird going on with the flying squirrel i2c addressing. i'm running i2cdetect and it's showing up 0x34 for the AXP209 I2C address instead of 0x68, and so on. i _thought_ i got the address for the I2C EEPROM right, from the datasheet (0xA2) - but it seems that it's been shifted by one bit (0x51) as well.
help! i have no idea what's going on here!
ahh... that's interesting... i2cdetect 0 shows 0x34 for the on-board AXP209 and that's literally the only device on the I2C bus. actually it shows UU instead of 34.
so the issue's not *specifically* related to the flying squirrel. hmmm...
I don't know why nobody replies, I guess because it's around the biggest FAQ for I2C bus, so everyone probably thinks that everyone else knows about it and then it must be something else. So, canonically, I2C address is 7 bit, followed by R/W bit (Wikipedia won't let me lie on that). Well, it's natural itch to cramp those entities together in a byte and treat *that* as an address (with such compound address thus being different for write (x) and read (x+1) operations). And there're two schools of vendors who cramp stuff together and who don't. It's like big-endian and little-endian!
Indeed, looking at AXP209 Chinese datasheet, in "Electrical Characteristics" (sic!) table it says that "typical" "electric characteristic" of address is 0x68. They fail to specify Min and Max though in that table, which is 0x68 and 0x69 respectively. They mention 0x69 elsewhere though.
Randomly choosing Western vendor, http://www.atmel.com/images/doc0336.pdf also does include R/W bit in the address (Fig 1, p.11), so it's hard to blame someone specifically...
arm-netbook@lists.phcomp.co.uk