This demo use I2C to read SGTL5000 ID. Build and copy i2c_test from "\Examples\i2c". It will print ID A011:
# ./i2c_test SGTL5000 CHIP_ID:A011