ingenic,sysost.yaml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/timer/ingenic,sysost.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: SYSOST in Ingenic XBurst family SoCs
  7. maintainers:
  8. - 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
  9. description:
  10. The SYSOST in an Ingenic SoC provides one 64bit timer for clocksource
  11. and one or more 32bit timers for clockevent.
  12. properties:
  13. "#clock-cells":
  14. const: 1
  15. compatible:
  16. enum:
  17. - ingenic,x1000-ost
  18. - ingenic,x2000-ost
  19. reg:
  20. maxItems: 1
  21. clocks:
  22. maxItems: 1
  23. clock-names:
  24. const: ost
  25. interrupts:
  26. maxItems: 1
  27. required:
  28. - "#clock-cells"
  29. - compatible
  30. - reg
  31. - clocks
  32. - clock-names
  33. - interrupts
  34. additionalProperties: false
  35. examples:
  36. - |
  37. #include <dt-bindings/clock/ingenic,x1000-cgu.h>
  38. ost: timer@12000000 {
  39. compatible = "ingenic,x1000-ost";
  40. reg = <0x12000000 0x3c>;
  41. #clock-cells = <1>;
  42. clocks = <&cgu X1000_CLK_OST>;
  43. clock-names = "ost";
  44. interrupt-parent = <&cpuintc>;
  45. interrupts = <3>;
  46. };
  47. ...