I am using a MC34VR500 PMIC in my current QorIQ based HW. The interface layer is I2C. Does anyone know how to read or write registers to this part? PMIC I2C MC34VR500 #QorIQls1024A
NXP SDK for i.mx contains drivers for PMIC using. See attached file.
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
A little bit more info: It seems that i2c_c2k.c bundled in barebox does not issue a restart condition needed for PMIC to place the contents of a register. However, upon issuing a restart the bus hangs after the first clock cycle (rather than 9) with SCL and SDA being held low. According to Register Manual:
"NOTE: To restart transmission as soon as possible, set the STP bit to 1 to clear the bus
error and the STA bit to 1 to re-start transmission at the same time: transmission
will then re-start as soon as the bus becomes available."