alphascale,asm9260-wdt.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/watchdog/alphascale,asm9260-wdt.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Alphascale asm9260 Watchdog timer
  7. maintainers:
  8. - Oleksij Rempel <linux@rempel-privat.de>
  9. allOf:
  10. - $ref: watchdog.yaml#
  11. properties:
  12. compatible:
  13. const: alphascale,asm9260-wdt
  14. reg:
  15. maxItems: 1
  16. clocks:
  17. items:
  18. - description: source clock, used for tick counter
  19. - description: ahb gate
  20. clock-names:
  21. items:
  22. - const: mod
  23. - const: ahb
  24. interrupts:
  25. maxItems: 1
  26. resets:
  27. maxItems: 1
  28. reset-names:
  29. items:
  30. - const: wdt_rst
  31. alphascale,mode:
  32. description: |
  33. Specifies the reset mode of operation. If set to sw, then reset is handled
  34. via interrupt request, if set to debug, then it does nothing and logs.
  35. $ref: /schemas/types.yaml#/definitions/string
  36. enum: [hw, sw, debug]
  37. default: hw
  38. required:
  39. - compatible
  40. - reg
  41. - clocks
  42. - clock-names
  43. - interrupts
  44. unevaluatedProperties: false
  45. examples:
  46. - |
  47. #include <dt-bindings/clock/alphascale,asm9260.h>
  48. watchdog0: watchdog@80048000 {
  49. compatible = "alphascale,asm9260-wdt";
  50. reg = <0x80048000 0x10>;
  51. clocks = <&acc CLKID_SYS_WDT>, <&acc CLKID_AHB_WDT>;
  52. clock-names = "mod", "ahb";
  53. interrupts = <55>;
  54. timeout-sec = <30>;
  55. alphascale,mode = "hw";
  56. };