i2c: move OF helpers into the core