watchdog: bcm2835_wdt: consider system-power-controller property
authorStefan Wahren <stefan.wahren@i2se.com>
Sun, 6 Jun 2021 12:16:12 +0000 (14:16 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 22 Aug 2021 08:28:08 +0000 (10:28 +0200)
commita4f95810e3fbc15f077880aef8c787489ec4a8b7
treec253d409dac3d7257752559424bf8b0f582071fb
parent14244b7c04d6611388e9312059df11b9c39a4f6c
watchdog: bcm2835_wdt: consider system-power-controller property

Until now all Raspberry Pi boards used the power off function of the SoC.
But the Raspberry Pi 400 uses gpio-poweroff for the whole board which
possibly cannot register the poweroff handler because the it's
already registered by this watchdog driver. So consider the
system-power-controller property for registering, which is already
defined in soc/bcm/brcm,bcm2835-pm.txt .

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Nicolas Saenz Julienne <nsaenz@kernel.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/1622981777-5023-3-git-send-email-stefan.wahren@i2se.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/bcm2835_wdt.c