]> www.infradead.org Git - users/jedix/linux-maple.git/commit
regulator: pca9450: Add restart handler
authorPaul Geurts <paul.geurts@prodrive-technologies.com>
Mon, 5 May 2025 11:59:36 +0000 (13:59 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 12 May 2025 12:09:50 +0000 (21:09 +0900)
commit6157e62b07d9331cc1d4d9d525dab33d45b0e83c
tree841cb1188383bf9f5c538042556097708634cdd9
parentd5cc09847fa0df4034076f884de5957ec816dc52
regulator: pca9450: Add restart handler

When restarting a CPU powered by the PCA9450 power management IC, it
is beneficial to use the PCA9450 to power cycle the CPU and all its
connected peripherals to start up in a known state. The PCA9450 features
a cold start procedure initiated by an I2C command.

Add a restart handler so that the PCA9450 is used to restart the CPU.
The restart handler sends command 0x14 to the SW_RST register,
initiating a cold reset (Power recycle all regulators except LDO1, LDO2
and CLK_32K_OUT)

As the PCA9450 is a PMIC specific for the i.MX8M family CPU, the restart
handler priority is set just slightly higher than imx2_wdt and the PSCI
restart handler. This makes sure this restart handler takes precedence.

Signed-off-by: Paul Geurts <paul.geurts@prodrive-technologies.com>
Link: https://patch.msgid.link/20250505115936.1946891-1-paul.geurts@prodrive-technologies.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pca9450-regulator.c
include/linux/regulator/pca9450.h