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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Mar 2021 08:04:14 +0000 (09:04 +0100)
commitcfbff8bd9efcb8e2584c7082431723f4864b30dd
tree4aac2269fb8bd140da420e044f650bfc527d6935
parent775691b94ce74e02297b9165c7df99c589374b2d
regulator: pca9450: Enable system reset on WDOG_B assertion

[ Upstream commit f7684f5a048febd2a7bc98ee81d6dce52f7268b8 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/pca9450-regulator.c
include/linux/regulator/pca9450.h