gpio-wdt.txt 1.1 KB

1234567891011121314151617181920212223242526272829
  1. * GPIO-controlled Watchdog
  2. Required Properties:
  3. - compatible: Should contain "linux,wdt-gpio".
  4. - gpios: From common gpio binding; gpio connection to WDT reset pin.
  5. - hw_algo: The algorithm used by the driver. Should be one of the
  6. following values:
  7. - toggle: Either a high-to-low or a low-to-high transition clears
  8. the WDT counter. The watchdog timer is disabled when GPIO is
  9. left floating or connected to a three-state buffer.
  10. - level: Low or high level starts counting WDT timeout,
  11. the opposite level disables the WDT. Active level is determined
  12. by the GPIO flags.
  13. - hw_margin_ms: Maximum time to reset watchdog circuit (milliseconds).
  14. Optional Properties:
  15. - always-running: If the watchdog timer cannot be disabled, add this flag to
  16. have the driver keep toggling the signal without a client. It will only cease
  17. to toggle the signal when the device is open and the timeout elapsed.
  18. Example:
  19. watchdog: watchdog {
  20. /* ADM706 */
  21. compatible = "linux,wdt-gpio";
  22. gpios = <&gpio3 9 GPIO_ACTIVE_LOW>;
  23. hw_algo = "toggle";
  24. hw_margin_ms = <1600>;
  25. };