ARM L2 Cache Controller
Schema identifier ($id): "http://devicetree.org/schemas/cache/l2c2x0.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
ARM cores often have a separate L2C210/L2C220/L2C310 (also known as PL210/ PL220/PL310 and variants) based level 2 cache controller. All these various implementations of the L2 cache controller have compatible programming models (Note 1). Some of the properties that are just prefixed "cache-*" are taken from section 3.7.3 of the Devicetree Specification which can be found at: https://www.devicetree.org/specifications/
Note 1: The description in this document doesn't apply to integrated L2
cache controllers as found in e.g. Cortex-A15/A7/A57/A53. These
integrated L2 controllers are assumed to be all preconfigured by
early secure boot code. Thus no need to deal with their configuration
in the kernel at all.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/cache-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"arm,pl310-cache","arm,l220-cache","arm,l210-cache","bcm,bcm11351-a2-pl310-cache","brcm,bcm11351-a2-pl310-cache","marvell,aurora-system-cache","marvell,aurora-outer-cache"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"marvell,tauros3-cache"Item 2
Exact value (
const):"arm,pl310-cache"
cache-level — not listed as required here #
Exact value (const): 2
cache-unified — required here #
true — No constraints added by this property rule.
cache-size — not listed as required here #
true — No constraints added by this property rule.
cache-sets — not listed as required here #
true — No constraints added by this property rule.
cache-block-size — not listed as required here #
true — No constraints added by this property rule.
cache-line-size — not listed as required here #
true — No constraints added by this property rule.
reg — required here #
Maximum number of items (maxItems): 1
arm,data-latency — not listed as required here #
Cycles of latency for Data RAM accesses. Specifies 3 cells of read, write and setup latencies. Minimum valid values are 1. Controllers without setup latency control should use a value of 0.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
Array item rules (items) #
Minimum value (
minimum):0Maximum value (
maximum):8
arm,tag-latency — not listed as required here #
Cycles of latency for Tag RAM accesses. Specifies 3 cells of read, write and setup latencies. Controllers without setup latency control should use 0. Controllers without separate read and write Tag RAM latency values should only use the first cell.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
Array item rules (items) #
Minimum value (
minimum):0Maximum value (
maximum):8
arm,dirty-latency — not listed as required here #
Cycles of latency for Dirty RAMs. This is a single cell.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Maximum value (maximum): 8
arm,filter-ranges — not listed as required here #
<start length> Starting address and length of window to filter. Addresses in the filter window are directed to the M1 port. Other addresses will go to the M0 port.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
arm,io-coherent — not listed as required here #
indicates that the system is operating in an hardware I/O coherent mode. Valid only when the arm,pl310-cache compatible string is used.
Value type (type): "boolean"
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 9
cache-id-part — not listed as required here #
cache id part number to be used if it is not present on hardware
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
wt-override — not listed as required here #
If present then L2 is forced to Write through mode
Value type (type): "boolean"
arm,double-linefill — not listed as required here #
Override double linefill enable setting. Enable if non-zero, disable if zero.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
arm,double-linefill-incr — not listed as required here #
Override double linefill on INCR read. Enable if non-zero, disable if zero.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
arm,double-linefill-wrap — not listed as required here #
Override double linefill on WRAP read. Enable if non-zero, disable if zero.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
arm,prefetch-drop — not listed as required here #
Override prefetch drop enable setting. Enable if non-zero, disable if zero.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
arm,prefetch-offset — not listed as required here #
Override prefetch offset value.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7, 15, 23, 31
arm,shared-override — not listed as required here #
The default behavior of the L220 or PL310 cache controllers with respect to the shareable attribute is to transform "normal memory non-cacheable transactions" into "cacheable no allocate" (for reads) or "write through no write allocate" (for writes). On systems where this may cause DMA buffer corruption, this property must be specified to indicate that such transforms are precluded.
Value type (type): "boolean"
arm,parity-enable — not listed as required here #
enable parity checking on the L2 cache (L220 or PL310).
Value type (type): "boolean"
arm,parity-disable — not listed as required here #
disable parity checking on the L2 cache (L220 or PL310).
Value type (type): "boolean"
marvell,ecc-enable — not listed as required here #
enable ECC protection on the L2 cache
Value type (type): "boolean"
arm,outer-sync-disable — not listed as required here #
disable the outer sync operation on the L2 cache. Some core tiles, especially ARM PB11MPCore have a faulty L220 cache that will randomly hang unless outer sync operations are disabled.
Value type (type): "boolean"
prefetch-data — not listed as required here #
Data prefetch. Value: <0> (forcibly disable), <1> (forcibly enable), property absent (retain settings set by firmware)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
prefetch-instr — not listed as required here #
Instruction prefetch. Value: <0> (forcibly disable), <1> (forcibly enable), property absent (retain settings set by firmware)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
arm,dynamic-clock-gating — not listed as required here #
L2 dynamic clock gating. Value: <0> (forcibly disable), <1> (forcibly enable), property absent (OS specific behavior, preferably retain firmware settings)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
arm,standby-mode — not listed as required here #
L2 standby mode enable. Value <0> (forcibly disable), <1> (forcibly enable), property absent (OS specific behavior, preferably retain firmware settings)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
arm,early-bresp-disable — not listed as required here #
Disable the CA9 optimization Early BRESP (PL310)
Value type (type): "boolean"
arm,full-line-zero-disable — not listed as required here #
Disable the CA9 optimization Full line of zero write (PL310)
Value type (type): "boolean"
Required in this object (required): "compatible", "cache-unified", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
cache-controller@fff12000 {
compatible = "arm,pl310-cache";
reg = <0xfff12000 0x1000>;
arm,data-latency = <1 1 1>;
arm,tag-latency = <2 2 2>;
arm,filter-ranges = <0x80000000 0x8000000>;
cache-unified;
cache-level = <2>;
interrupts = <45>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 37: DEPRECATED by "brcm,bcm11351-a2-pl310-cache"
Line 39: For Broadcom bcm11351 chipset where an
Line 40: offset needs to be added to the address before passing down to the L2
Line 41: cache controller
Line 43: Marvell Controller designed to be
Line 44: compatible with the ARM one, with system cache mode (meaning
Line 45: maintenance operations on L1 are broadcasted to the L2 and L2
Line 46: performs the same operation).
Line 48: Marvell Controller designed to be
Line 49: compatible with the ARM one with outer cache mode.
Line 52: Marvell Tauros3 cache controller, compatible
Line 53: with arm,pl310-cache controller.
Line 113: Either a single combined interrupt or up to 9 individual interrupts