loongson,ls1x-wdt.yaml 762 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/watchdog/loongson,ls1x-wdt.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Loongson-1 Watchdog Timer
  7. maintainers:
  8. - Keguang Zhang <keguang.zhang@gmail.com>
  9. allOf:
  10. - $ref: watchdog.yaml#
  11. properties:
  12. compatible:
  13. enum:
  14. - loongson,ls1b-wdt
  15. - loongson,ls1c-wdt
  16. reg:
  17. maxItems: 1
  18. clocks:
  19. maxItems: 1
  20. required:
  21. - compatible
  22. - reg
  23. - clocks
  24. unevaluatedProperties: false
  25. examples:
  26. - |
  27. #include <dt-bindings/clock/loongson,ls1x-clk.h>
  28. watchdog: watchdog@1fe5c060 {
  29. compatible = "loongson,ls1b-wdt";
  30. reg = <0x1fe5c060 0xc>;
  31. clocks = <&clkc LS1X_CLKID_APB>;
  32. };