sifive,clint.yaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/timer/sifive,clint.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: SiFive Core Local Interruptor
  7. maintainers:
  8. - Palmer Dabbelt <palmer@dabbelt.com>
  9. - Anup Patel <anup.patel@wdc.com>
  10. description:
  11. SiFive (and other RISC-V) SOCs include an implementation of the SiFive
  12. Core Local Interruptor (CLINT) for M-mode timer and M-mode inter-processor
  13. interrupts. It directly connects to the timer and inter-processor interrupt
  14. lines of various HARTs (or CPUs) so RISC-V per-HART (or per-CPU) local
  15. interrupt controller is the parent interrupt controller for CLINT device.
  16. The clock frequency of CLINT is specified via "timebase-frequency" DT
  17. property of "/cpus" DT node. The "timebase-frequency" DT property is
  18. described in Documentation/devicetree/bindings/riscv/cpus.yaml
  19. T-Head C906/C910 CPU cores include an implementation of CLINT too, however
  20. their implementation lacks a memory-mapped MTIME register, thus not
  21. compatible with SiFive ones.
  22. properties:
  23. compatible:
  24. oneOf:
  25. - items:
  26. - enum:
  27. - canaan,k210-clint # Canaan Kendryte K210
  28. - sifive,fu540-c000-clint # SiFive FU540
  29. - starfive,jh7100-clint # StarFive JH7100
  30. - starfive,jh7110-clint # StarFive JH7110
  31. - starfive,jh8100-clint # StarFive JH8100
  32. - const: sifive,clint0 # SiFive CLINT v0 IP block
  33. - items:
  34. - enum:
  35. - allwinner,sun20i-d1-clint
  36. - sophgo,cv1800b-clint
  37. - sophgo,cv1812h-clint
  38. - sophgo,sg2002-clint
  39. - thead,th1520-clint
  40. - const: thead,c900-clint
  41. - items:
  42. - const: sifive,clint0
  43. - const: riscv,clint0
  44. deprecated: true
  45. description: For the QEMU virt machine only
  46. description:
  47. Should be "<vendor>,<chip>-clint", followed by "sifive,clint<version>"
  48. when compatible with a SiFive CLINT. Please refer to
  49. sifive-blocks-ip-versioning.txt for details regarding the latter.
  50. reg:
  51. maxItems: 1
  52. interrupts-extended:
  53. minItems: 1
  54. maxItems: 4095
  55. additionalProperties: false
  56. required:
  57. - compatible
  58. - reg
  59. - interrupts-extended
  60. examples:
  61. - |
  62. timer@2000000 {
  63. compatible = "sifive,fu540-c000-clint", "sifive,clint0";
  64. interrupts-extended = <&cpu1intc 3>, <&cpu1intc 7>,
  65. <&cpu2intc 3>, <&cpu2intc 7>,
  66. <&cpu3intc 3>, <&cpu3intc 7>,
  67. <&cpu4intc 3>, <&cpu4intc 7>;
  68. reg = <0x2000000 0x10000>;
  69. };
  70. ...