l2cc.txt 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. * ARM L2 Cache Controller
  2. ARM cores often have a separate level 2 cache controller. There are various
  3. implementations of the L2 cache controller with compatible programming models.
  4. Some of the properties that are just prefixed "cache-*" are taken from section
  5. 3.7.3 of the ePAPR v1.1 specification which can be found at:
  6. https://www.power.org/wp-content/uploads/2012/06/Power_ePAPR_APPROVED_v1.1.pdf
  7. The ARM L2 cache representation in the device tree should be done as follows:
  8. Required properties:
  9. - compatible : should be one of:
  10. "arm,pl310-cache"
  11. "arm,l220-cache"
  12. "arm,l210-cache"
  13. "bcm,bcm11351-a2-pl310-cache": DEPRECATED by "brcm,bcm11351-a2-pl310-cache"
  14. "brcm,bcm11351-a2-pl310-cache": For Broadcom bcm11351 chipset where an
  15. offset needs to be added to the address before passing down to the L2
  16. cache controller
  17. "marvell,aurora-system-cache": Marvell Controller designed to be
  18. compatible with the ARM one, with system cache mode (meaning
  19. maintenance operations on L1 are broadcasted to the L2 and L2
  20. performs the same operation).
  21. "marvell,aurora-outer-cache": Marvell Controller designed to be
  22. compatible with the ARM one with outer cache mode.
  23. "marvell,tauros3-cache": Marvell Tauros3 cache controller, compatible
  24. with arm,pl310-cache controller.
  25. - cache-unified : Specifies the cache is a unified cache.
  26. - cache-level : Should be set to 2 for a level 2 cache.
  27. - reg : Physical base address and size of cache controller's memory mapped
  28. registers.
  29. Optional properties:
  30. - arm,data-latency : Cycles of latency for Data RAM accesses. Specifies 3 cells of
  31. read, write and setup latencies. Minimum valid values are 1. Controllers
  32. without setup latency control should use a value of 0.
  33. - arm,tag-latency : Cycles of latency for Tag RAM accesses. Specifies 3 cells of
  34. read, write and setup latencies. Controllers without setup latency control
  35. should use 0. Controllers without separate read and write Tag RAM latency
  36. values should only use the first cell.
  37. - arm,dirty-latency : Cycles of latency for Dirty RAMs. This is a single cell.
  38. - arm,filter-ranges : <start length> Starting address and length of window to
  39. filter. Addresses in the filter window are directed to the M1 port. Other
  40. addresses will go to the M0 port.
  41. - arm,io-coherent : indicates that the system is operating in an hardware
  42. I/O coherent mode. Valid only when the arm,pl310-cache compatible
  43. string is used.
  44. - interrupts : 1 combined interrupt.
  45. - cache-size : specifies the size in bytes of the cache
  46. - cache-sets : specifies the number of associativity sets of the cache
  47. - cache-block-size : specifies the size in bytes of a cache block
  48. - cache-line-size : specifies the size in bytes of a line in the cache,
  49. if this is not specified, the line size is assumed to be equal to the
  50. cache block size
  51. - cache-id-part: cache id part number to be used if it is not present
  52. on hardware
  53. - wt-override: If present then L2 is forced to Write through mode
  54. Example:
  55. L2: cache-controller {
  56. compatible = "arm,pl310-cache";
  57. reg = <0xfff12000 0x1000>;
  58. arm,data-latency = <1 1 1>;
  59. arm,tag-latency = <2 2 2>;
  60. arm,filter-ranges = <0x80000000 0x8000000>;
  61. cache-unified;
  62. cache-level = <2>;
  63. interrupts = <45>;
  64. };