thead,c900-aclint-mtimer.yaml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/timer/thead,c900-aclint-mtimer.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Sophgo CLINT Timer
  7. maintainers:
  8. - Inochi Amaoto <inochiama@outlook.com>
  9. properties:
  10. compatible:
  11. items:
  12. - enum:
  13. - sophgo,sg2042-aclint-mtimer
  14. - const: thead,c900-aclint-mtimer
  15. reg:
  16. items:
  17. - description: MTIMECMP Registers
  18. reg-names:
  19. items:
  20. - const: mtimecmp
  21. interrupts-extended:
  22. minItems: 1
  23. maxItems: 4095
  24. additionalProperties: false
  25. required:
  26. - compatible
  27. - reg
  28. - reg-names
  29. - interrupts-extended
  30. examples:
  31. - |
  32. timer@ac000000 {
  33. compatible = "sophgo,sg2042-aclint-mtimer", "thead,c900-aclint-mtimer";
  34. interrupts-extended = <&cpu1intc 7>,
  35. <&cpu2intc 7>,
  36. <&cpu3intc 7>,
  37. <&cpu4intc 7>;
  38. reg = <0xac000000 0x00010000>;
  39. reg-names = "mtimecmp";
  40. };
  41. ...