Rasmus Villemoes | 0866760 | 2021-08-19 11:57:04 +0200 | [diff] [blame] | 1 | GPIO watchdog timer |
| 2 | |
| 3 | Describes a simple watchdog timer which is reset by toggling a gpio. |
| 4 | |
| 5 | Required properties: |
| 6 | |
| 7 | - compatible: Must be "linux,wdt-gpio". |
Paul Doelle | 709f037 | 2022-07-04 09:00:25 +0000 | [diff] [blame] | 8 | - gpios: From common gpio binding; gpio connection to WDT reset pin. |
| 9 | - hw_algo: The algorithm used by the driver. Should be one of the |
| 10 | following values: |
| 11 | - toggle: Toggle from high-to-low or low-to-high when resetting the watchdog. |
| 12 | - level: Maintain a constant high/low level, and trigger a short pulse when |
| 13 | resetting the watchdog. Active level is determined by the GPIO flags. |
Rasmus Villemoes | 0866760 | 2021-08-19 11:57:04 +0200 | [diff] [blame] | 14 | - always-running: Boolean property indicating that the watchdog cannot |
| 15 | be disabled. At present, U-Boot only supports this kind of GPIO |
| 16 | watchdog. |
| 17 | |
| 18 | Example: |
| 19 | |
| 20 | gpio-wdt { |
| 21 | gpios = <&gpio0 1 0>; |
| 22 | compatible = "linux,wdt-gpio"; |
Paul Doelle | 709f037 | 2022-07-04 09:00:25 +0000 | [diff] [blame] | 23 | hw_algo = "toggle"; |
Rasmus Villemoes | 0866760 | 2021-08-19 11:57:04 +0200 | [diff] [blame] | 24 | always-running; |
| 25 | }; |