loongson,ls1x-pwmtimer.yaml 986 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/timer/loongson,ls1x-pwmtimer.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Loongson-1 PWM timer
  7. maintainers:
  8. - Keguang Zhang <keguang.zhang@gmail.com>
  9. description:
  10. Loongson-1 PWM timer can be used for system clock source
  11. and clock event timers.
  12. properties:
  13. compatible:
  14. const: loongson,ls1b-pwmtimer
  15. reg:
  16. maxItems: 1
  17. clocks:
  18. maxItems: 1
  19. interrupts:
  20. maxItems: 1
  21. required:
  22. - compatible
  23. - reg
  24. - clocks
  25. - interrupts
  26. additionalProperties: false
  27. examples:
  28. - |
  29. #include <dt-bindings/clock/loongson,ls1x-clk.h>
  30. #include <dt-bindings/interrupt-controller/irq.h>
  31. clocksource: timer@1fe5c030 {
  32. compatible = "loongson,ls1b-pwmtimer";
  33. reg = <0x1fe5c030 0x10>;
  34. clocks = <&clkc LS1X_CLKID_APB>;
  35. interrupt-parent = <&intc0>;
  36. interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
  37. };