img,pdc-wdt.yaml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/watchdog/img,pdc-wdt.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: ImgTec PowerDown Controller (PDC) Watchdog Timer (WDT)
  7. maintainers:
  8. - Shresth Prasad <shresthprasad7@gmail.com>
  9. allOf:
  10. - $ref: watchdog.yaml#
  11. properties:
  12. compatible:
  13. enum:
  14. - img,pdc-wdt
  15. reg:
  16. maxItems: 1
  17. clocks:
  18. items:
  19. - description: watchdog counter clock
  20. - description: register interface clock
  21. clock-names:
  22. items:
  23. - const: wdt
  24. - const: sys
  25. interrupts:
  26. maxItems: 1
  27. required:
  28. - compatible
  29. - reg
  30. - clocks
  31. - clock-names
  32. - interrupts
  33. unevaluatedProperties: false
  34. examples:
  35. - |
  36. #include <dt-bindings/interrupt-controller/irq.h>
  37. watchdog@18102100 {
  38. compatible = "img,pdc-wdt";
  39. reg = <0x18102100 0x100>;
  40. clocks = <&pdc_wdt_clk>, <&sys_clk>;
  41. clock-names = "wdt", "sys";
  42. interrupts = <0 52 IRQ_TYPE_LEVEL_HIGH>;
  43. };