Reboot command

Hi guys,

I ported your sequence to a u-boot driver and noticed that, although it works reliably, turning off the board within 16seconds after this sequence is not possible since the board would restart. Weirdly, I did not have this issue when launching the sequence from the u-boot shell: by adding a few sleeps between the register writes in my u-boot driver, it finally worked. It seems the behavior I’m facing is described in the thread shared before (Power Management ICs (PMICs) | Dialog) and I don’t quite understand why it does not happen all the time.

Anyway, as the “sleeps” solution did not suit me, I digged the datasheet and found a shorter sequence that does not give rise to the issue:

i2c dev 0;
i2c mw 0x58 0x13 0x4; // Set the WAKE_UP bit to CONTROL_F
i2c mw 0x58 0xe 0x68; // Powerdown

It works reliably for me, if you have a chance to test this, any feedback is welcome.

1 Like