Un-Initializing I2C/TWI at runtime on nrf5340 with NCS SDK 1.9.1

Hello,

I am in the process of optimizing current consumption before we start production.. most things are where they should be. I would like to explore shutting down I2C/TWI when not needed and enable it only when needed.. I use device_get_binding and do I2C transactions and things work fine.. How do I disable/uninit the same I2C and disconnect the GPIO pins to save whatever little power I could ? is there a Zephyr API for it ? I tried looking around but couldn't find anything obvious.. I did some nrf driver APIs but wasn't sure. can you please recommend the best way to dynamically enable and disable I2C ?

Let's just say every uA counts and hence i do not want to ignore whatever little i can save.. in other words, keeping i2c enabled is not something i would like to do unless you tell me there is no other way

Related