1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/arm/l2c2x0.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: ARM L2 Cache Controller
10 - Rob Herring <robh@kernel.org>
13 ARM cores often have a separate L2C210/L2C220/L2C310 (also known as PL210/
14 PL220/PL310 and variants) based level 2 cache controller. All these various
15 implementations of the L2 cache controller have compatible programming
16 models (Note 1). Some of the properties that are just prefixed "cache-*" are
17 taken from section 3.7.3 of the Devicetree Specification which can be found
19 https://www.devicetree.org/specifications/
21 Note 1: The description in this document doesn't apply to integrated L2
22 cache controllers as found in e.g. Cortex-A15/A7/A57/A53. These
23 integrated L2 controllers are assumed to be all preconfigured by
24 early secure boot code. Thus no need to deal with their configuration
28 - $ref: /schemas/cache-controller.yaml#
36 # DEPRECATED by "brcm,bcm11351-a2-pl310-cache"
37 - bcm,bcm11351-a2-pl310-cache
38 # For Broadcom bcm11351 chipset where an
39 # offset needs to be added to the address before passing down to the L2
41 - brcm,bcm11351-a2-pl310-cache
42 # Marvell Controller designed to be
43 # compatible with the ARM one, with system cache mode (meaning
44 # maintenance operations on L1 are broadcasted to the L2 and L2
45 # performs the same operation).
46 - marvell,aurora-system-cache
47 # Marvell Controller designed to be
48 # compatible with the ARM one with outer cache mode.
49 - marvell,aurora-outer-cache
50 # Marvell Tauros3 cache controller, compatible
51 # with arm,pl310-cache controller.
52 - marvell,tauros3-cache
60 cache-block-size: true
67 description: Cycles of latency for Data RAM accesses. Specifies 3 cells of
68 read, write and setup latencies. Minimum valid values are 1. Controllers
69 without setup latency control should use a value of 0.
71 - $ref: /schemas/types.yaml#/definitions/uint32-array
79 description: Cycles of latency for Tag RAM accesses. Specifies 3 cells of
80 read, write and setup latencies. Controllers without setup latency control
81 should use 0. Controllers without separate read and write Tag RAM latency
82 values should only use the first cell.
84 - $ref: /schemas/types.yaml#/definitions/uint32-array
92 description: Cycles of latency for Dirty RAMs. This is a single cell.
94 - $ref: /schemas/types.yaml#/definitions/uint32
99 description: <start length> Starting address and length of window to
100 filter. Addresses in the filter window are directed to the M1 port. Other
101 addresses will go to the M0 port.
103 - $ref: /schemas/types.yaml#/definitions/uint32-array
109 description: indicates that the system is operating in an hardware
110 I/O coherent mode. Valid only when the arm,pl310-cache compatible
115 # Either a single combined interrupt or up to 9 individual interrupts
120 description: cache id part number to be used if it is not present
122 $ref: /schemas/types.yaml#/definitions/uint32
125 description: If present then L2 is forced to Write through mode
129 description: Override double linefill enable setting. Enable if
130 non-zero, disable if zero.
132 - $ref: /schemas/types.yaml#/definitions/uint32
135 arm,double-linefill-incr:
136 description: Override double linefill on INCR read. Enable
137 if non-zero, disable if zero.
139 - $ref: /schemas/types.yaml#/definitions/uint32
142 arm,double-linefill-wrap:
143 description: Override double linefill on WRAP read. Enable
144 if non-zero, disable if zero.
146 - $ref: /schemas/types.yaml#/definitions/uint32
150 description: Override prefetch drop enable setting. Enable if non-zero,
153 - $ref: /schemas/types.yaml#/definitions/uint32
157 description: Override prefetch offset value.
159 - $ref: /schemas/types.yaml#/definitions/uint32
160 - enum: [ 0, 1, 2, 3, 4, 5, 6, 7, 15, 23, 31 ]
163 description: The default behavior of the L220 or PL310 cache
164 controllers with respect to the shareable attribute is to transform "normal
165 memory non-cacheable transactions" into "cacheable no allocate" (for reads)
166 or "write through no write allocate" (for writes).
167 On systems where this may cause DMA buffer corruption, this property must
168 be specified to indicate that such transforms are precluded.
172 description: enable parity checking on the L2 cache (L220 or PL310).
176 description: disable parity checking on the L2 cache (L220 or PL310).
180 description: enable ECC protection on the L2 cache
183 arm,outer-sync-disable:
184 description: disable the outer sync operation on the L2 cache.
185 Some core tiles, especially ARM PB11MPCore have a faulty L220 cache that
186 will randomly hang unless outer sync operations are disabled.
191 Data prefetch. Value: <0> (forcibly disable), <1>
192 (forcibly enable), property absent (retain settings set by firmware)
194 - $ref: /schemas/types.yaml#/definitions/uint32
199 Instruction prefetch. Value: <0> (forcibly disable),
200 <1> (forcibly enable), property absent (retain settings set by
203 - $ref: /schemas/types.yaml#/definitions/uint32
206 arm,dynamic-clock-gating:
208 L2 dynamic clock gating. Value: <0> (forcibly
209 disable), <1> (forcibly enable), property absent (OS specific behavior,
210 preferably retain firmware settings)
212 - $ref: /schemas/types.yaml#/definitions/uint32
216 description: L2 standby mode enable. Value <0> (forcibly disable),
217 <1> (forcibly enable), property absent (OS specific behavior,
218 preferably retain firmware settings)
220 - $ref: /schemas/types.yaml#/definitions/uint32
223 arm,early-bresp-disable:
224 description: Disable the CA9 optimization Early BRESP (PL310)
227 arm,full-line-zero-disable:
228 description: Disable the CA9 optimization Full line of zero
237 additionalProperties: false
241 cache-controller@fff12000 {
242 compatible = "arm,pl310-cache";
243 reg = <0xfff12000 0x1000>;
244 arm,data-latency = <1 1 1>;
245 arm,tag-latency = <2 2 2>;
246 arm,filter-ranges = <0x80000000 0x8000000>;