diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-10-17 09:09:54 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-10-27 11:13:29 +0200 |
commit | 21dda946e7aa86246bf7ca22fb1a1609407c4bb9 (patch) | |
tree | f0d9175cf0387e7972b92927dbfcd30cd0d2ca54 /Documentation | |
parent | 1c32f4eb396c20af8031df10b3239b32d3b64005 (diff) | |
download | barebox-21dda946e7aa86246bf7ca22fb1a1609407c4bb9.tar.gz barebox-21dda946e7aa86246bf7ca22fb1a1609407c4bb9.tar.xz |
restart: do restart-priority OF parsing in restart_handler_register
The restart-priority OF property is parsed for a number of MFDs, but
there is no reason really not to parse it for every restart handler that
has a device tree node like we already do for watchdogs.
Add a new struct restart_handler::of_node field and look into it if
populated. With this of_get_restart_priority, is no longer used, so drop it.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20221017071000.1458292-3-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/power/restart.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/power/restart.rst b/Documentation/devicetree/bindings/power/restart.rst new file mode 100644 index 0000000000..8c866f6e0d --- /dev/null +++ b/Documentation/devicetree/bindings/power/restart.rst @@ -0,0 +1,10 @@ +System Restart Controllers +========================== + +In addition to upstream bindings, following properties are understood: + +Optional properties: + +- ``restart-priority`` : Overrides the priority set by the driver. Normally, + the device with the biggest reach should reset the system. + See :ref:`_system_reset` for more information. |