mediatek,mtk-wdt.yaml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/watchdog/mediatek,mtk-wdt.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: MediaTek SoCs Watchdog timer
  7. maintainers:
  8. - Matthias Brugger <matthias.bgg@gmail.com>
  9. description:
  10. The watchdog supports a pre-timeout interrupt that fires
  11. timeout-sec/2 before the expiry.
  12. allOf:
  13. - $ref: watchdog.yaml#
  14. properties:
  15. compatible:
  16. oneOf:
  17. - enum:
  18. - mediatek,mt2712-wdt
  19. - mediatek,mt6589-wdt
  20. - mediatek,mt6735-wdt
  21. - mediatek,mt6795-wdt
  22. - mediatek,mt7986-wdt
  23. - mediatek,mt7988-wdt
  24. - mediatek,mt8183-wdt
  25. - mediatek,mt8186-wdt
  26. - mediatek,mt8188-wdt
  27. - mediatek,mt8192-wdt
  28. - mediatek,mt8195-wdt
  29. - items:
  30. - enum:
  31. - mediatek,mt2701-wdt
  32. - mediatek,mt6582-wdt
  33. - mediatek,mt6797-wdt
  34. - mediatek,mt7622-wdt
  35. - mediatek,mt7623-wdt
  36. - mediatek,mt7629-wdt
  37. - mediatek,mt8173-wdt
  38. - mediatek,mt8365-wdt
  39. - mediatek,mt8516-wdt
  40. - const: mediatek,mt6589-wdt
  41. reg:
  42. maxItems: 1
  43. interrupts:
  44. items:
  45. - description: Watchdog pre-timeout (bark) interrupt
  46. mediatek,disable-extrst:
  47. description: Disable sending output reset signal
  48. type: boolean
  49. mediatek,reset-by-toprgu:
  50. description: The Top Reset Generation Unit (TOPRGU) generates reset signals
  51. and distributes them to each IP. If present, the watchdog timer will be
  52. reset by TOPRGU once system resets.
  53. type: boolean
  54. '#reset-cells':
  55. const: 1
  56. required:
  57. - compatible
  58. - reg
  59. unevaluatedProperties: false
  60. examples:
  61. - |
  62. #include <dt-bindings/interrupt-controller/arm-gic.h>
  63. soc {
  64. #address-cells = <2>;
  65. #size-cells = <2>;
  66. watchdog: watchdog@10007000 {
  67. compatible = "mediatek,mt8183-wdt";
  68. reg = <0 0x10007000 0 0x100>;
  69. interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_LOW>;
  70. mediatek,disable-extrst;
  71. timeout-sec = <10>;
  72. #reset-cells = <1>;
  73. };
  74. };