dm: i2c: Add functions to read and write a register