l2c2x0.yaml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/cache/l2c2x0.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: ARM L2 Cache Controller
  7. maintainers:
  8. - Rob Herring <robh@kernel.org>
  9. description: |+
  10. ARM cores often have a separate L2C210/L2C220/L2C310 (also known as PL210/
  11. PL220/PL310 and variants) based level 2 cache controller. All these various
  12. implementations of the L2 cache controller have compatible programming
  13. models (Note 1). Some of the properties that are just prefixed "cache-*" are
  14. taken from section 3.7.3 of the Devicetree Specification which can be found
  15. at:
  16. https://www.devicetree.org/specifications/
  17. Note 1: The description in this document doesn't apply to integrated L2
  18. cache controllers as found in e.g. Cortex-A15/A7/A57/A53. These
  19. integrated L2 controllers are assumed to be all preconfigured by
  20. early secure boot code. Thus no need to deal with their configuration
  21. in the kernel at all.
  22. allOf:
  23. - $ref: /schemas/cache-controller.yaml#
  24. properties:
  25. compatible:
  26. oneOf:
  27. - enum:
  28. - arm,pl310-cache
  29. - arm,l220-cache
  30. - arm,l210-cache
  31. # DEPRECATED by "brcm,bcm11351-a2-pl310-cache"
  32. - bcm,bcm11351-a2-pl310-cache
  33. # For Broadcom bcm11351 chipset where an
  34. # offset needs to be added to the address before passing down to the L2
  35. # cache controller
  36. - brcm,bcm11351-a2-pl310-cache
  37. # Marvell Controller designed to be
  38. # compatible with the ARM one, with system cache mode (meaning
  39. # maintenance operations on L1 are broadcasted to the L2 and L2
  40. # performs the same operation).
  41. - marvell,aurora-system-cache
  42. # Marvell Controller designed to be
  43. # compatible with the ARM one with outer cache mode.
  44. - marvell,aurora-outer-cache
  45. - items:
  46. # Marvell Tauros3 cache controller, compatible
  47. # with arm,pl310-cache controller.
  48. - const: marvell,tauros3-cache
  49. - const: arm,pl310-cache
  50. cache-level:
  51. const: 2
  52. cache-unified: true
  53. cache-size: true
  54. cache-sets: true
  55. cache-block-size: true
  56. cache-line-size: true
  57. reg:
  58. maxItems: 1
  59. arm,data-latency:
  60. description: Cycles of latency for Data RAM accesses. Specifies 3 cells of
  61. read, write and setup latencies. Minimum valid values are 1. Controllers
  62. without setup latency control should use a value of 0.
  63. $ref: /schemas/types.yaml#/definitions/uint32-array
  64. minItems: 2
  65. maxItems: 3
  66. items:
  67. minimum: 0
  68. maximum: 8
  69. arm,tag-latency:
  70. description: Cycles of latency for Tag RAM accesses. Specifies 3 cells of
  71. read, write and setup latencies. Controllers without setup latency control
  72. should use 0. Controllers without separate read and write Tag RAM latency
  73. values should only use the first cell.
  74. $ref: /schemas/types.yaml#/definitions/uint32-array
  75. minItems: 1
  76. maxItems: 3
  77. items:
  78. minimum: 0
  79. maximum: 8
  80. arm,dirty-latency:
  81. description: Cycles of latency for Dirty RAMs. This is a single cell.
  82. $ref: /schemas/types.yaml#/definitions/uint32
  83. minimum: 1
  84. maximum: 8
  85. arm,filter-ranges:
  86. description: <start length> Starting address and length of window to
  87. filter. Addresses in the filter window are directed to the M1 port. Other
  88. addresses will go to the M0 port.
  89. $ref: /schemas/types.yaml#/definitions/uint32-array
  90. items:
  91. minItems: 2
  92. maxItems: 2
  93. arm,io-coherent:
  94. description: indicates that the system is operating in an hardware
  95. I/O coherent mode. Valid only when the arm,pl310-cache compatible
  96. string is used.
  97. type: boolean
  98. interrupts:
  99. # Either a single combined interrupt or up to 9 individual interrupts
  100. minItems: 1
  101. maxItems: 9
  102. cache-id-part:
  103. description: cache id part number to be used if it is not present
  104. on hardware
  105. $ref: /schemas/types.yaml#/definitions/uint32
  106. wt-override:
  107. description: If present then L2 is forced to Write through mode
  108. type: boolean
  109. arm,double-linefill:
  110. description: Override double linefill enable setting. Enable if
  111. non-zero, disable if zero.
  112. $ref: /schemas/types.yaml#/definitions/uint32
  113. enum: [0, 1]
  114. arm,double-linefill-incr:
  115. description: Override double linefill on INCR read. Enable
  116. if non-zero, disable if zero.
  117. $ref: /schemas/types.yaml#/definitions/uint32
  118. enum: [0, 1]
  119. arm,double-linefill-wrap:
  120. description: Override double linefill on WRAP read. Enable
  121. if non-zero, disable if zero.
  122. $ref: /schemas/types.yaml#/definitions/uint32
  123. enum: [0, 1]
  124. arm,prefetch-drop:
  125. description: Override prefetch drop enable setting. Enable if non-zero,
  126. disable if zero.
  127. $ref: /schemas/types.yaml#/definitions/uint32
  128. enum: [0, 1]
  129. arm,prefetch-offset:
  130. description: Override prefetch offset value.
  131. $ref: /schemas/types.yaml#/definitions/uint32
  132. enum: [0, 1, 2, 3, 4, 5, 6, 7, 15, 23, 31]
  133. arm,shared-override:
  134. description: The default behavior of the L220 or PL310 cache
  135. controllers with respect to the shareable attribute is to transform "normal
  136. memory non-cacheable transactions" into "cacheable no allocate" (for reads)
  137. or "write through no write allocate" (for writes).
  138. On systems where this may cause DMA buffer corruption, this property must
  139. be specified to indicate that such transforms are precluded.
  140. type: boolean
  141. arm,parity-enable:
  142. description: enable parity checking on the L2 cache (L220 or PL310).
  143. type: boolean
  144. arm,parity-disable:
  145. description: disable parity checking on the L2 cache (L220 or PL310).
  146. type: boolean
  147. marvell,ecc-enable:
  148. description: enable ECC protection on the L2 cache
  149. type: boolean
  150. arm,outer-sync-disable:
  151. description: disable the outer sync operation on the L2 cache.
  152. Some core tiles, especially ARM PB11MPCore have a faulty L220 cache that
  153. will randomly hang unless outer sync operations are disabled.
  154. type: boolean
  155. prefetch-data:
  156. description: |
  157. Data prefetch. Value: <0> (forcibly disable), <1>
  158. (forcibly enable), property absent (retain settings set by firmware)
  159. $ref: /schemas/types.yaml#/definitions/uint32
  160. enum: [0, 1]
  161. prefetch-instr:
  162. description: |
  163. Instruction prefetch. Value: <0> (forcibly disable),
  164. <1> (forcibly enable), property absent (retain settings set by
  165. firmware)
  166. $ref: /schemas/types.yaml#/definitions/uint32
  167. enum: [0, 1]
  168. arm,dynamic-clock-gating:
  169. description: |
  170. L2 dynamic clock gating. Value: <0> (forcibly
  171. disable), <1> (forcibly enable), property absent (OS specific behavior,
  172. preferably retain firmware settings)
  173. $ref: /schemas/types.yaml#/definitions/uint32
  174. enum: [0, 1]
  175. arm,standby-mode:
  176. description: L2 standby mode enable. Value <0> (forcibly disable),
  177. <1> (forcibly enable), property absent (OS specific behavior,
  178. preferably retain firmware settings)
  179. $ref: /schemas/types.yaml#/definitions/uint32
  180. enum: [0, 1]
  181. arm,early-bresp-disable:
  182. description: Disable the CA9 optimization Early BRESP (PL310)
  183. type: boolean
  184. arm,full-line-zero-disable:
  185. description: Disable the CA9 optimization Full line of zero
  186. write (PL310)
  187. type: boolean
  188. required:
  189. - compatible
  190. - cache-unified
  191. - reg
  192. additionalProperties: false
  193. examples:
  194. - |
  195. cache-controller@fff12000 {
  196. compatible = "arm,pl310-cache";
  197. reg = <0xfff12000 0x1000>;
  198. arm,data-latency = <1 1 1>;
  199. arm,tag-latency = <2 2 2>;
  200. arm,filter-ranges = <0x80000000 0x8000000>;
  201. cache-unified;
  202. cache-level = <2>;
  203. interrupts = <45>;
  204. };
  205. ...