Re: [PATCH 2/2] regulator: pca9450: Make i2c-reset a warm reset optionally

From: Mark Brown

Date: Fri Dec 04 2026 - 10:50:04 EST


> When resetting via i2c-reset pin, the pca9450 does a cold reset by default
> ("Power recycle all regulators except LDO1, LDO2 and CLK_32K_OUT"). Add
> support for doing Warm Reset ("Toggle POR_B for 20 ms") instead if needed.

> + if (of_property_read_bool(i2c->dev.of_node, "nxp,i2c-warm-reset"))
> + pca9450->sw_reset_cmd = SW_RST_WARM_COMMAND;
> + else
> + pca9450->sw_reset_cmd = SW_RST_COMMAND;
> +

This is selecting based on a DT property but we have
/sys/kernel/reboot/mode which shows up in sys_off_data as mode which is
intended to allow the user to choose a warm or cold reboot at runtime.
We should pay attention to that instead of adding a DT property, if we
have something in DT it should be specifying a default or flagging an
issue that some of the modes don't work and shouldn't be tried.

--
Mark Brown <broonie@xxxxxxxxxx>