fsl-imx-wdt.yaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/watchdog/fsl-imx-wdt.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Freescale i.MX Watchdog Timer (WDT) Controller
  7. maintainers:
  8. - Shawn Guo <shawnguo@kernel.org>
  9. - Sascha Hauer <s.hauer@pengutronix.de>
  10. - Fabio Estevam <festevam@gmail.com>
  11. properties:
  12. compatible:
  13. oneOf:
  14. - const: fsl,imx21-wdt
  15. - items:
  16. - enum:
  17. - fsl,imx25-wdt
  18. - fsl,imx27-wdt
  19. - fsl,imx31-wdt
  20. - fsl,imx35-wdt
  21. - fsl,imx50-wdt
  22. - fsl,imx51-wdt
  23. - fsl,imx53-wdt
  24. - fsl,imx6q-wdt
  25. - fsl,imx6sl-wdt
  26. - fsl,imx6sll-wdt
  27. - fsl,imx6sx-wdt
  28. - fsl,imx6ul-wdt
  29. - fsl,imx7d-wdt
  30. - fsl,imx8mm-wdt
  31. - fsl,imx8mn-wdt
  32. - fsl,imx8mp-wdt
  33. - fsl,imx8mq-wdt
  34. - fsl,ls1012a-wdt
  35. - fsl,ls1043a-wdt
  36. - fsl,vf610-wdt
  37. - const: fsl,imx21-wdt
  38. reg:
  39. maxItems: 1
  40. interrupts:
  41. maxItems: 1
  42. clocks:
  43. maxItems: 1
  44. fsl,ext-reset-output:
  45. $ref: /schemas/types.yaml#/definitions/flag
  46. description: |
  47. If present, the watchdog device is configured to assert its
  48. external reset (WDOG_B) instead of issuing a software reset.
  49. fsl,suspend-in-wait:
  50. $ref: /schemas/types.yaml#/definitions/flag
  51. description: |
  52. If present, the watchdog device is suspended in WAIT mode
  53. (Suspend-to-Idle). Only supported on certain devices.
  54. required:
  55. - compatible
  56. - interrupts
  57. - reg
  58. allOf:
  59. - $ref: watchdog.yaml#
  60. - if:
  61. not:
  62. properties:
  63. compatible:
  64. contains:
  65. enum:
  66. - fsl,imx25-wdt
  67. - fsl,imx35-wdt
  68. - fsl,imx50-wdt
  69. - fsl,imx51-wdt
  70. - fsl,imx53-wdt
  71. - fsl,imx6q-wdt
  72. - fsl,imx6sl-wdt
  73. - fsl,imx6sll-wdt
  74. - fsl,imx6sx-wdt
  75. - fsl,imx6ul-wdt
  76. - fsl,imx7d-wdt
  77. - fsl,imx8mm-wdt
  78. - fsl,imx8mn-wdt
  79. - fsl,imx8mp-wdt
  80. - fsl,imx8mq-wdt
  81. - fsl,vf610-wdt
  82. then:
  83. properties:
  84. fsl,suspend-in-wait: false
  85. unevaluatedProperties: false
  86. examples:
  87. - |
  88. #include <dt-bindings/interrupt-controller/arm-gic.h>
  89. #include <dt-bindings/clock/imx6qdl-clock.h>
  90. watchdog@20bc000 {
  91. compatible = "fsl,imx21-wdt";
  92. reg = <0x020bc000 0x4000>;
  93. interrupts = <0 80 IRQ_TYPE_LEVEL_HIGH>;
  94. clocks = <&clks IMX6QDL_CLK_IPG>;
  95. };
  96. ...