regulator: pca9450: Enable system reset on WDOG_B assertion
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Thu, 11 Feb 2021 10:55:30 +0000 (11:55 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 11 Feb 2021 13:11:35 +0000 (13:11 +0000)
commitf7684f5a048febd2a7bc98ee81d6dce52f7268b8
treebaf354b70f52108193ddb902f21375e2c246f823
parent8c67a11bae889f51fe5054364c3c789dfae3ad73
regulator: pca9450: Enable system reset on WDOG_B assertion

By default the PCA9450 doesn't handle the assertion of the WDOG_B
signal, but this is required to guarantee that things like software
resets triggered by the watchdog work reliably.

As we don't want to rely on the bootloader to enable this, we tell
the PMIC to issue a cold reset in case the WDOG_B signal is
asserted (WDOG_B_CFG = 10), just as the NXP U-Boot code does.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Link: https://lore.kernel.org/r/20210211105534.38972-3-frieder.schrempf@kontron.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pca9450-regulator.c
include/linux/regulator/pca9450.h