Thanks for your time and consideration.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
i2cdetect -l
i2c-0 unknown OMAP I2C adapter N/A
i2c-1 unknown OMAP I2C adapter N/A
For reading status register of TPS65217. device is at 0x25 and status register is 0x0a on I2C0
i2cget [-f] [-y] i2cbus chip-address [data-address [mode]]
sudo i2cdet -f 0 0c24 0x0a
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will read from device file /dev/i2c-0, chip address 0x24, data address
0x0a, using read byte data.
Continue?
[Y/n]
0x88
To set battery charging voltage to 4.2V
i2cset [-f] [-y] [-m mask] [-r] i2cbus chip-address data-address [value] ... [mode]
sudo i2cset -f -m 0x30 0 0x24 0x05 0x20
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will write to device file /dev/i2c-0, chip address 0x24, data address
0x05, data 0x20 (masked), mode byte.
Continue? [Y/n]
Old value 0x80, write mask 0x30: Will write 0xa0 to register 0x05
Continue? [Y/n]
Thanks a lot
> i2cdetect -l
> on Beaglebone Black it will give you:
i2c-0 unknown OMAP I2C adapter N/A
i2c-1 unknown OMAP I2C adapter N/A