dlg,da9062-watchdog.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/watchdog/dlg,da9062-watchdog.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Dialog Semiconductor DA906{1,2,3} Watchdog Timer
  7. maintainers:
  8. - Steve Twiss <stwiss.opensource@diasemi.com>
  9. allOf:
  10. - $ref: watchdog.yaml#
  11. properties:
  12. compatible:
  13. oneOf:
  14. - enum:
  15. - dlg,da9062-watchdog
  16. - dlg,da9063-watchdog
  17. - items:
  18. - const: dlg,da9061-watchdog
  19. - const: dlg,da9062-watchdog
  20. dlg,use-sw-pm:
  21. type: boolean
  22. description:
  23. Add this property to disable the watchdog during suspend.
  24. Only use this option if you can't use the watchdog automatic suspend
  25. function during a suspend (see register CONTROL_B).
  26. dlg,wdt-sd:
  27. $ref: /schemas/types.yaml#/definitions/uint32
  28. enum: [0, 1]
  29. description:
  30. Set what happens on watchdog timeout. If this bit is set the
  31. watchdog timeout triggers SHUTDOWN, if cleared the watchdog triggers
  32. POWERDOWN. Can be 0 or 1. Only use this option if you want to change the
  33. default chip's OTP setting for WATCHDOG_SD bit. If this property is NOT
  34. set the WATCHDOG_SD bit and on timeout watchdog behavior will match the
  35. chip's OTP settings.
  36. required:
  37. - compatible
  38. unevaluatedProperties: false
  39. examples:
  40. - |
  41. watchdog {
  42. compatible = "dlg,da9062-watchdog";
  43. dlg,use-sw-pm;
  44. dlg,wdt-sd = <1>;
  45. };