This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TPS6594-Q1: Linux Driver Initialization Procedure vs PMIC documentation

Part Number: TPS6594-Q1

Hello,

according to the PMIC documentation this is the required initialization procedure for the PMIC:

6.1 Initialization
Upon a successful power up, the BIST_PASS_INT and ENABLE_INT interrupts are set. Any other interrupts
indicate an issue but the automated recovery attempt was successful. The recommended procedure is to:
1. Interrogate the interrupts
2. Determine the course of action
3. Set the NSLEEP bits
4. Clear the interrupts

However in the driver, at least to my understanding, we have just this:

int tps6594_device_init(struct tps6594 *tps, bool enable_crc)
{
    ...
    
	/* Keep PMIC in ACTIVE state */
	ret = regmap_set_bits(tps->regmap, TPS6594_REG_FSM_NSLEEP_TRIGGERS,
			      TPS6594_BIT_NSLEEP1B | TPS6594_BIT_NSLEEP2B);
	if (ret)
		return dev_err_probe(dev, ret, "Failed to set PMIC state\n");

    ...

	return 0;
}

Can you confirm that the driver is fine?