Hi,
I'm trying to switch the configuration of the PMIC from level sensitive to edge sensitive dynamically in UBoot.
I tried to follow this process to change the configuration: https://community.nxp.com/t5/Other-NXP-Products/How-to-enter-the-OFF-state-of-the-MMPF0100-PMIC/m-p/...
As indicated in the App_Note AN4536, VDDOTP is connected to GND, and PWRON is connected to VSNVS.
=> i2c dev 0
Setting bus to 0
=> i2c mw 0x08 0x7F 0x01 #Extended Page 1
=> i2c mw 0x08 0xE4 0x80 #Entering TBB mode
=> i2c mw 0x08 0xE0 0x11 #PWRON_CFG1=1
=> i2c mw 0x08 0xE1 0x11 #PWRON_CFG2=1
=> i2c mw 0x08 0xE2 0x11#PWRON_CFG3=1
=> i2c mw 0x08 0x7F 0x00 #Functional Page 0
=> i2c mw 0x08 0x23 0x08 #SW1ABMODE=0
=> i2c mw 0x08 0x31 0x08 #SW1CMODE=0
=> i2c mw 0x08 0x38 0x08 #SW2MODE=0
=> i2c mw 0x08 0x3F 0x08 #SW3AMODE=0
=> i2c mw 0x08 0x46 0x08 #SW3BMODE=0
=> i2c mw 0x08 0x4D 0x08 #SW4MODE=0
=> i2c mw 0x08 0x1B 0x12 #PWRONRSTEN=1, RESTARTEN=0
But pressing the button connected to PWRON resets the PMIC right away and doesn't turn off the device while hold more than 4 sec.
Any idea of what went wrong? Is there a script to execute at bring up to change the PWRON_CFG?
Best,
Vincent
Hello Vincent,
I hope this response finds you well.
Your configuration seems correct. As mentioned on the post, the device must be in TBB mode before writing to the registers.
Could you please confirm that the device is in such mode? I mean, could you confirm that VDDOTP = 0 V, PWRON = HIGH, LICELL = 3.0 V (Optional) and VIN = VDDIO = 3.3 V?
Could you please share your schematic?
Regards,
David