Howto read I2C on MPC5200 Lite

John Rigby jrigby at freescale.com
Thu Mar 8 08:17:25 EST 2007


I use i2c-tools which once lived at http://secure.netroedge.com/~lm78/
it is to be a subset of lm_sensors www.lm-sensors.org.

You can get a copy of i2c-tools from:
http://www.bitshrine.org/gpp/i2c_tools-2jun05.tar.gz
and a patch
http://www.bitshrine.org/gpp/i2c-tools-device.patch

Once you compile it and have created the device nodes
you should be able to scan with i2cdetect <busnum>.

On a stock lite5200b the only thing that shows up is a serial
eeprom at address 0x50.

You can then use i2cdump <busnum> <addr> to dump the device
and i2cset <busnum> <addr> <offset> <value> to write to it.



More information about the Linuxppc-embedded mailing list