atmel,sama5d4-wdt.yaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/watchdog/atmel,sama5d4-wdt.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Atmel SAMA5D4 Watchdog Timer (WDT) Controller
  7. maintainers:
  8. - Eugen Hristev <eugen.hristev@microchip.com>
  9. allOf:
  10. - $ref: watchdog.yaml#
  11. properties:
  12. compatible:
  13. oneOf:
  14. - enum:
  15. - atmel,sama5d4-wdt
  16. - microchip,sam9x60-wdt
  17. - microchip,sama7g5-wdt
  18. - items:
  19. - const: microchip,sam9x7-wdt
  20. - const: microchip,sam9x60-wdt
  21. reg:
  22. maxItems: 1
  23. interrupts:
  24. maxItems: 1
  25. atmel,watchdog-type:
  26. $ref: /schemas/types.yaml#/definitions/string
  27. description: should be hardware or software.
  28. oneOf:
  29. - description:
  30. Enable watchdog fault reset. A watchdog fault triggers
  31. watchdog reset.
  32. const: hardware
  33. - description:
  34. Enable watchdog fault interrupt. A watchdog fault asserts
  35. watchdog interrupt.
  36. const: software
  37. default: hardware
  38. atmel,idle-halt:
  39. $ref: /schemas/types.yaml#/definitions/flag
  40. description: |
  41. present if you want to stop the watchdog when the CPU is in idle state.
  42. CAUTION: This property should be used with care, it actually makes the
  43. watchdog not counting when the CPU is in idle state, therefore the
  44. watchdog reset time depends on mean CPU usage and will not reset at all
  45. if the CPU stop working while it is in idle state, which is probably
  46. not what you want.
  47. atmel,dbg-halt:
  48. $ref: /schemas/types.yaml#/definitions/flag
  49. description: |
  50. present if you want to stop the watchdog when the CPU is in debug state.
  51. required:
  52. - compatible
  53. - reg
  54. unevaluatedProperties: false
  55. examples:
  56. - |
  57. #include <dt-bindings/interrupt-controller/irq.h>
  58. watchdog@fc068640 {
  59. compatible = "atmel,sama5d4-wdt";
  60. reg = <0xfc068640 0x10>;
  61. interrupts = <4 IRQ_TYPE_LEVEL_HIGH 5>;
  62. timeout-sec = <10>;
  63. atmel,watchdog-type = "hardware";
  64. atmel,dbg-halt;
  65. atmel,idle-halt;
  66. };
  67. ...