SLVUCI5 april 2023 AM6526 , AM6528 , AM6548 , TPS6594-Q1
The C and D triggers, defined by the NSLEEPx bits or pins, trigger the TO_RETENTION sequence. This sequence disables all power rails and GPIOs that are not supplying the retention rails, as described in Figure 3-1.
The following PMIC PFSM instructions are executed automatically in the beginning of the power sequence to configure the PMIC:
// Set LPM_EN, Clear NRSTOUT_SOC and NRSTOUT
REG_WRITE_MASK_IMM ADDR=0x81 DATA=0x04 MASK=0xF8
// Set SPMI_LP_EN and FORCE_EN_DRV_LOW
REG_WRITE_MASK_IMM ADDR=0x82 DATA=0x18 MASK=0xE7
16ms after the GPIO3 is deasserted, Figure 6-12,the PMIC executes the following instructions:
// Set LPM_EN, Clear CLKMON_EN and AMUXOUT_EN
REG_WRITE_MASK_IMM ADDR=0x81 DATA=0x04 MASK=0xE3
// Make GPIO9 an input with pulldown enabled
REG_WRITE_MASK_IMM ADDR=0x39 DATA=0x18 MASK=0x00
// Make GPIO10 an input with pulldown enabled
REG_WRITE_MASK_IMM ADDR=0x3A DATA=0x08 MASK=0x00
An additional delay is applied at the end of the sequence based upon the
contents of the register (PFSM_DELAY_REG_2).