rockchip,rk-timer.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/timer/rockchip,rk-timer.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Rockchip Timer
  7. maintainers:
  8. - Daniel Lezcano <daniel.lezcano@linaro.org>
  9. properties:
  10. compatible:
  11. oneOf:
  12. - const: rockchip,rk3288-timer
  13. - const: rockchip,rk3399-timer
  14. - items:
  15. - enum:
  16. - rockchip,rv1108-timer
  17. - rockchip,rv1126-timer
  18. - rockchip,rk3036-timer
  19. - rockchip,rk3128-timer
  20. - rockchip,rk3188-timer
  21. - rockchip,rk3228-timer
  22. - rockchip,rk3229-timer
  23. - rockchip,rk3368-timer
  24. - rockchip,rk3576-timer
  25. - rockchip,rk3588-timer
  26. - rockchip,px30-timer
  27. - const: rockchip,rk3288-timer
  28. reg:
  29. maxItems: 1
  30. interrupts:
  31. maxItems: 1
  32. clocks:
  33. minItems: 2
  34. maxItems: 2
  35. clock-names:
  36. items:
  37. - const: pclk
  38. - const: timer
  39. required:
  40. - compatible
  41. - reg
  42. - interrupts
  43. - clocks
  44. - clock-names
  45. additionalProperties: false
  46. examples:
  47. - |
  48. #include <dt-bindings/interrupt-controller/arm-gic.h>
  49. #include <dt-bindings/clock/rk3288-cru.h>
  50. timer: timer@ff810000 {
  51. compatible = "rockchip,rk3288-timer";
  52. reg = <0xff810000 0x20>;
  53. interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
  54. clocks = <&cru PCLK_TIMER>, <&xin24m>;
  55. clock-names = "pclk", "timer";
  56. };