snps,dw-wdt.yaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/watchdog/snps,dw-wdt.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Synopsys Designware Watchdog Timer
  7. maintainers:
  8. - Jamie Iles <jamie@jamieiles.com>
  9. allOf:
  10. - $ref: watchdog.yaml#
  11. properties:
  12. compatible:
  13. oneOf:
  14. - const: snps,dw-wdt
  15. - items:
  16. - enum:
  17. - rockchip,px30-wdt
  18. - rockchip,rk3066-wdt
  19. - rockchip,rk3128-wdt
  20. - rockchip,rk3188-wdt
  21. - rockchip,rk3228-wdt
  22. - rockchip,rk3288-wdt
  23. - rockchip,rk3308-wdt
  24. - rockchip,rk3328-wdt
  25. - rockchip,rk3368-wdt
  26. - rockchip,rk3399-wdt
  27. - rockchip,rk3568-wdt
  28. - rockchip,rk3576-wdt
  29. - rockchip,rk3588-wdt
  30. - rockchip,rv1108-wdt
  31. - const: snps,dw-wdt
  32. reg:
  33. maxItems: 1
  34. interrupts:
  35. description: DW Watchdog pre-timeout interrupt
  36. maxItems: 1
  37. clocks:
  38. minItems: 1
  39. items:
  40. - description: Watchdog timer reference clock
  41. - description: APB3 interface clock
  42. clock-names:
  43. minItems: 1
  44. items:
  45. - const: tclk
  46. - const: pclk
  47. resets:
  48. description: Phandle to the DW Watchdog reset lane
  49. maxItems: 1
  50. snps,watchdog-tops:
  51. $ref: /schemas/types.yaml#/definitions/uint32-array
  52. description: |
  53. DW APB Watchdog custom timer intervals - Timeout Period ranges (TOPs).
  54. Each TOP is a number loaded into the watchdog counter at the moment of
  55. the timer restart. The counter decrementing happens each tick of the
  56. reference clock. Therefore the TOPs array is equivalent to an array of
  57. the timer expiration intervals supported by the DW APB Watchdog. Note
  58. DW APB Watchdog IP-core might be synthesized with fixed TOP values,
  59. in which case this property is unnecessary with default TOPs utilized.
  60. default: [0x0001000 0x0002000 0x0004000 0x0008000
  61. 0x0010000 0x0020000 0x0040000 0x0080000
  62. 0x0100000 0x0200000 0x0400000 0x0800000
  63. 0x1000000 0x2000000 0x4000000 0x8000000]
  64. minItems: 16
  65. maxItems: 16
  66. required:
  67. - compatible
  68. - reg
  69. - clocks
  70. unevaluatedProperties: false
  71. examples:
  72. - |
  73. watchdog@ffd02000 {
  74. compatible = "snps,dw-wdt";
  75. reg = <0xffd02000 0x1000>;
  76. interrupts = <0 171 4>;
  77. clocks = <&per_base_clk>;
  78. resets = <&wdt_rst>;
  79. };
  80. - |
  81. watchdog@ffd02000 {
  82. compatible = "snps,dw-wdt";
  83. reg = <0xffd02000 0x1000>;
  84. interrupts = <0 171 4>;
  85. clocks = <&per_base_clk>;
  86. clock-names = "tclk";
  87. snps,watchdog-tops = <0x000000FF 0x000001FF 0x000003FF
  88. 0x000007FF 0x0000FFFF 0x0001FFFF
  89. 0x0003FFFF 0x0007FFFF 0x000FFFFF
  90. 0x001FFFFF 0x003FFFFF 0x007FFFFF
  91. 0x00FFFFFF 0x01FFFFFF 0x03FFFFFF
  92. 0x07FFFFFF>;
  93. };
  94. ...