Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Peios Kernel

Cache bindings

Single-page view · as markdown

Andestech AX45MP L2 Cache Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Cache bindings

Schema identifier ($id): "http://devicetree.org/schemas/cache/andestech,ax45mp-cache.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>"

A level-2 cache (L2C) is used to improve the system performance by providing a large amount of cache line entries and reasonable access delays. The L2C is shared between cores, and a non-inclusive non-exclusive policy is used.

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Allowed values (enum): "andestech,ax45mp-cache"

Required in this object (required): "compatible"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "andestech,qilai-ax45mp-cache", "renesas,r9a07g043f-ax45mp-cache"

Item 2

Exact value (const): "andestech,ax45mp-cache"

Item 3

Exact value (const): "cache"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

cache-line-size — required here #

Exact value (const): 64

cache-level — required here #

Exact value (const): 2

cache-sets — required here #

Allowed values (enum): 1024, 2048

cache-size — required here #

Allowed values (enum): 131072, 262144, 524288, 1048576, 2097152

cache-unified — required here #

true — No constraints added by this property rule.

next-level-cache — not listed as required here #

true — No constraints added by this property rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts", "cache-line-size", "cache-level", "cache-sets", "cache-size", "cache-unified"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "andestech,qilai-ax45mp-cache"

When the condition matches (then) #

Properties and child nodes (properties)

cache-sets — not listed as required here

Exact value (const): 2048

cache-size — not listed as required here

Exact value (const): 2097152

When the condition does not match (else) #

Properties and child nodes (properties)

cache-sets — not listed as required here

Exact value (const): 1024

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

cache-controller@13400000 {
    compatible = "renesas,r9a07g043f-ax45mp-cache", "andestech,ax45mp-cache",
                 "cache";
    reg = <0x13400000 0x100000>;
    interrupts = <508 IRQ_TYPE_LEVEL_HIGH>;
    cache-line-size = <64>;
    cache-level = <2>;
    cache-sets = <1024>;
    cache-size = <262144>;
    cache-unified;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 2: Copyright (C) 2023 Renesas Electronics Corp.

Baikal-T1 L2-cache Control Block

Peios Kernel / Hardware and drivers / Device-tree binding reference / Cache bindings

Schema identifier ($id): "http://devicetree.org/schemas/cache/baikal,bt1-l2-ctl.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Serge Semin <fancer.lancer@gmail.com>"

By means of the System Controller Baikal-T1 SoC exposes a few settings to tune the MIPS P5600 CM2 L2 cache performance up. In particular it's possible to change the Tag, Data and Way-select RAM access latencies. Baikal-T1 L2-cache controller block is responsible for the tuning. Its DT node is supposed to be a child of the system controller.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "baikal,bt1-l2-ctl"

reg — not listed as required here #

Maximum number of items (maxItems): 1

baikal,l2-ws-latency — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Cycles of latency for Way-select RAM accesses

Default value (default): 0

Minimum value (minimum): 0

Maximum value (maximum): 3

baikal,l2-tag-latency — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Cycles of latency for Tag RAM accesses

Default value (default): 0

Minimum value (minimum): 0

Maximum value (maximum): 3

baikal,l2-data-latency — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Cycles of latency for Data RAM accesses

Default value (default): 1

Minimum value (minimum): 0

Maximum value (maximum): 3

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible"

Examples (examples) #

l2@1f04d028 {
  compatible = "baikal,bt1-l2-ctl";
  reg = <0x1f04d028 0x004>;

  baikal,l2-ws-latency = <1>;
  baikal,l2-tag-latency = <1>;
  baikal,l2-data-latency = <2>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 2: Copyright (C) 2020 BAIKAL ELECTRONICS, JSC

ARM L2 Cache Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Cache bindings

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): 0

Maximum 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): 0

Maximum 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

Allowed values (enum): 0, 1

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

Allowed values (enum): 0, 1

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

Allowed values (enum): 0, 1

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

Allowed values (enum): 0, 1

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

Allowed values (enum): 0, 1

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

Allowed values (enum): 0, 1

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

Allowed values (enum): 0, 1

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

Allowed values (enum): 0, 1

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

Marvell Feroceon/Kirkwood Cache

Peios Kernel / Hardware and drivers / Device-tree binding reference / Cache bindings

Schema identifier ($id): "http://devicetree.org/schemas/cache/marvell,kirkwood-cache.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Gregory Clement <gregory.clement@bootlin.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "marvell,feroceon-cache", "marvell,kirkwood-cache"

reg — not listed as required here #

Maximum number of items (maxItems): 1

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "marvell,kirkwood-cache"

When the condition matches (then) #

Required in this object (required): "reg"

When the condition does not match (else) #

Properties and child nodes (properties)

reg — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

l2-cache@20128 {
    compatible = "marvell,kirkwood-cache";
    reg = <0x20128 0x4>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Marvell Tauros2 Cache

Peios Kernel / Hardware and drivers / Device-tree binding reference / Cache bindings

Schema identifier ($id): "http://devicetree.org/schemas/cache/marvell,tauros2-cache.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Gregory Clement <gregory.clement@bootlin.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "marvell,tauros2-cache"

marvell,tauros2-cache-features — required here #

Specify the features supported for the tauros2 cache. The features include:

  - CACHE_TAUROS2_PREFETCH_ON (1 << 0)
  - CACHE_TAUROS2_LINEFILL_BURST8 (1 << 1)

The definition can be found at arch/arm/include/asm/hardware/cache-tauros2.h

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Maximum value (maximum): 3

Required in this object (required): "compatible", "marvell,tauros2-cache-features"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

l2-cache {
    compatible = "marvell,tauros2-cache";
    marvell,tauros2-cache-features = <0x3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Last Level Cache Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Cache bindings

Schema identifier ($id): "http://devicetree.org/schemas/cache/qcom,llcc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>"

LLCC (Last Level Cache Controller) provides last level of cache memory in SoC, that can be shared by multiple clients. Clients here are different cores in the SoC, the idea is to minimize the local caches at the clients and migrate to common pool of memory. Cache memory is divided into partitions called slices which are assigned to clients. Clients can query the slice details, activate and deactivate them.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,glymur-llcc", "qcom,ipq5424-llcc", "qcom,kaanapali-llcc", "qcom,qcs615-llcc", "qcom,qcs8300-llcc", "qcom,qdu1000-llcc", "qcom,sa8775p-llcc", "qcom,sar1130p-llcc", "qcom,sar2130p-llcc", "qcom,sc7180-llcc", "qcom,sc7280-llcc", "qcom,sc8180x-llcc", "qcom,sc8280xp-llcc", "qcom,sdm845-llcc", "qcom,sm6350-llcc", "qcom,sm7150-llcc", "qcom,sm8150-llcc", "qcom,sm8250-llcc", "qcom,sm8350-llcc", "qcom,sm8450-llcc", "qcom,sm8550-llcc", "qcom,sm8650-llcc", "qcom,sm8750-llcc", "qcom,x1e80100-llcc"

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 14

reg-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 14

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

nvmem-cells — not listed as required here #

Array item rules (items) #

Item 1

Reference to an nvmem node for multi channel DDR

nvmem-cell-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "multi-chan-ddr"

Required in this object (required): "compatible", "reg", "reg-names"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,ipq5424-llcc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

LLCC0 base register region

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "llcc0_base"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,glymur-llcc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

LLCC0 base register region

Item 2

LLCC1 base register region

Item 3

LLCC2 base register region

Item 4

LLCC3 base register region

Item 5

LLCC4 base register region

Item 6

LLCC5 base register region

Item 7

LLCC6 base register region

Item 8

LLCC7 base register region

Item 9

LLCC8 base register region

Item 10

LLCC9 base register region

Item 11

LLCC10 base register region

Item 12

LLCC11 base register region

Item 13

LLCC broadcast base register region

Item 14

LLCC broadcast AND register region

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "llcc0_base"

Item 2

Exact value (const): "llcc1_base"

Item 3

Exact value (const): "llcc2_base"

Item 4

Exact value (const): "llcc3_base"

Item 5

Exact value (const): "llcc4_base"

Item 6

Exact value (const): "llcc5_base"

Item 7

Exact value (const): "llcc6_base"

Item 8

Exact value (const): "llcc7_base"

Item 9

Exact value (const): "llcc8_base"

Item 10

Exact value (const): "llcc9_base"

Item 11

Exact value (const): "llcc10_base"

Item 12

Exact value (const): "llcc11_base"

Item 13

Exact value (const): "llcc_broadcast_base"

Item 14

Exact value (const): "llcc_broadcast_and_base"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sar1130p-llcc", "qcom,sar2130p-llcc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

LLCC0 base register region

Item 2

LLCC1 base register region

Item 3

LLCC broadcast OR register region

Item 4

LLCC broadcast AND register region

Item 5

LLCC scratchpad broadcast OR register region

Item 6

LLCC scratchpad broadcast AND register region

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "llcc0_base"

Item 2

Exact value (const): "llcc1_base"

Item 3

Exact value (const): "llcc_broadcast_base"

Item 4

Exact value (const): "llcc_broadcast_and_base"

Item 5

Exact value (const): "llcc_scratchpad_broadcast_base"

Item 6

Exact value (const): "llcc_scratchpad_broadcast_and_base"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,qcs615-llcc", "qcom,sc7180-llcc", "qcom,sm6350-llcc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

LLCC0 base register region

Item 2

LLCC broadcast base register region

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "llcc0_base"

Item 2

Exact value (const): "llcc_broadcast_base"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sa8775p-llcc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

LLCC0 base register region

Item 2

LLCC1 base register region

Item 3

LLCC2 base register region

Item 4

LLCC3 base register region

Item 5

LLCC4 base register region

Item 6

LLCC5 base register region

Item 7

LLCC broadcast base register region

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "llcc0_base"

Item 2

Exact value (const): "llcc1_base"

Item 3

Exact value (const): "llcc2_base"

Item 4

Exact value (const): "llcc3_base"

Item 5

Exact value (const): "llcc4_base"

Item 6

Exact value (const): "llcc5_base"

Item 7

Exact value (const): "llcc_broadcast_base"

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sc7280-llcc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

LLCC0 base register region

Item 2

LLCC1 base register region

Item 3

LLCC broadcast base register region

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "llcc0_base"

Item 2

Exact value (const): "llcc1_base"

Item 3

Exact value (const): "llcc_broadcast_base"

Rule 7 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,qdu1000-llcc", "qcom,sc8180x-llcc", "qcom,sc8280xp-llcc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

LLCC0 base register region

Item 2

LLCC1 base register region

Item 3

LLCC2 base register region

Item 4

LLCC3 base register region

Item 5

LLCC4 base register region

Item 6

LLCC5 base register region

Item 7

LLCC6 base register region

Item 8

LLCC7 base register region

Item 9

LLCC broadcast base register region

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "llcc0_base"

Item 2

Exact value (const): "llcc1_base"

Item 3

Exact value (const): "llcc2_base"

Item 4

Exact value (const): "llcc3_base"

Item 5

Exact value (const): "llcc4_base"

Item 6

Exact value (const): "llcc5_base"

Item 7

Exact value (const): "llcc6_base"

Item 8

Exact value (const): "llcc7_base"

Item 9

Exact value (const): "llcc_broadcast_base"

Rule 8 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,x1e80100-llcc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

LLCC0 base register region

Item 2

LLCC1 base register region

Item 3

LLCC2 base register region

Item 4

LLCC3 base register region

Item 5

LLCC4 base register region

Item 6

LLCC5 base register region

Item 7

LLCC6 base register region

Item 8

LLCC7 base register region

Item 9

LLCC broadcast base register region

Item 10

LLCC broadcast AND register region

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "llcc0_base"

Item 2

Exact value (const): "llcc1_base"

Item 3

Exact value (const): "llcc2_base"

Item 4

Exact value (const): "llcc3_base"

Item 5

Exact value (const): "llcc4_base"

Item 6

Exact value (const): "llcc5_base"

Item 7

Exact value (const): "llcc6_base"

Item 8

Exact value (const): "llcc7_base"

Item 9

Exact value (const): "llcc_broadcast_base"

Item 10

Exact value (const): "llcc_broadcast_and_base"

Rule 9 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,qcs8300-llcc", "qcom,sdm845-llcc", "qcom,sm8150-llcc", "qcom,sm8250-llcc", "qcom,sm8350-llcc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

LLCC0 base register region

Item 2

LLCC1 base register region

Item 3

LLCC2 base register region

Item 4

LLCC3 base register region

Item 5

LLCC broadcast base register region

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "llcc0_base"

Item 2

Exact value (const): "llcc1_base"

Item 3

Exact value (const): "llcc2_base"

Item 4

Exact value (const): "llcc3_base"

Item 5

Exact value (const): "llcc_broadcast_base"

Rule 10 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,kaanapali-llcc", "qcom,sm8450-llcc", "qcom,sm8550-llcc", "qcom,sm8650-llcc", "qcom,sm8750-llcc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

LLCC0 base register region

Item 2

LLCC1 base register region

Item 3

LLCC2 base register region

Item 4

LLCC3 base register region

Item 5

LLCC broadcast OR register region

Item 6

LLCC broadcast AND register region

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "llcc0_base"

Item 2

Exact value (const): "llcc1_base"

Item 3

Exact value (const): "llcc2_base"

Item 4

Exact value (const): "llcc3_base"

Item 5

Exact value (const): "llcc_broadcast_base"

Item 6

Exact value (const): "llcc_broadcast_and_base"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    system-cache-controller@1100000 {
        compatible = "qcom,sdm845-llcc";
        reg = <0 0x01100000 0 0x50000>, <0 0x01180000 0 0x50000>,
            <0 0x01200000 0 0x50000>, <0 0x01280000 0 0x50000>,
            <0 0x01300000 0 0x50000>;
        reg-names = "llcc0_base", "llcc1_base", "llcc2_base",
            "llcc3_base", "llcc_broadcast_base";
        interrupts = <GIC_SPI 582 IRQ_TYPE_LEVEL_HIGH>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)

SiFive Composable Cache Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Cache bindings

Schema identifier ($id): "http://devicetree.org/schemas/cache/sifive,ccache0.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Paul Walmsley <paul.walmsley@sifive.com>"

The SiFive Composable Cache Controller is used to provide access to fast copies of memory for masters in a Core Complex. The Composable Cache Controller also acts as directory-based coherency manager. All the properties in ePAPR/DeviceTree specification applies for this platform.

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Allowed values (enum): "sifive,ccache0", "sifive,fu540-c000-ccache", "sifive,fu740-c000-ccache"

Required in this object (required): "compatible"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "sifive,ccache0", "sifive,fu540-c000-ccache", "sifive,fu740-c000-ccache"

Item 2

Exact value (const): "cache"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "eswin,eic7700-l3-cache", "starfive,jh7100-ccache", "starfive,jh7110-ccache"

Item 2

Exact value (const): "sifive,ccache0"

Item 3

Exact value (const): "cache"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "microchip,mpfs-ccache"

Item 2

Exact value (const): "sifive,fu540-c000-ccache"

Item 3

Exact value (const): "cache"

Rule 4

Array item rules (items)

Item 1

Exact value (const): "microchip,pic64gx-ccache"

Item 2

Exact value (const): "microchip,mpfs-ccache"

Item 3

Exact value (const): "sifive,fu540-c000-ccache"

Item 4

Exact value (const): "cache"

cache-block-size — required here #

Exact value (const): 64

cache-level — required here #

Allowed values (enum): 2, 3

cache-sets — required here #

Allowed values (enum): 1024, 2048, 4096

cache-size — required here #

Allowed values (enum): 2097152, 4194304

cache-unified — required here #

true — No constraints added by this property rule.

interrupts — required here #

Minimum number of items (minItems): 3

Array item rules (items) #

Item 1

DirError interrupt

Item 2

DataError interrupt

Item 3

DataFail interrupt

Item 4

DirFail interrupt

reg — required here #

Maximum number of items (maxItems): 1

next-level-cache — not listed as required here #

true — No constraints added by this property rule.

memory-region — not listed as required here #

Maximum number of items (maxItems): 1

The reference to the reserved-memory for the L2 Loosely Integrated Memory region. The reserved memory node should be defined as per the bindings in reserved-memory.txt.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/cache-controller.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "eswin,eic7700-l3-cache", "sifive,fu740-c000-ccache", "starfive,jh7100-ccache", "starfive,jh7110-ccache", "microchip,mpfs-ccache"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Must contain entries for DirError, DataError, DataFail, DirFail signals.

Minimum number of items (minItems): 4

When the condition does not match (else) #

Properties and child nodes (properties)

interrupts — not listed as required here

Must contain entries for DirError, DataError and DataFail signals.

Maximum number of items (maxItems): 3

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "eswin,eic7700-l3-cache"

When the condition matches (then) #

Properties and child nodes (properties)

cache-size — not listed as required here

Exact value (const): 4194304

When the condition does not match (else) #

Properties and child nodes (properties)

cache-size — not listed as required here

Exact value (const): 2097152

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "sifive,fu740-c000-ccache", "starfive,jh7100-ccache", "starfive,jh7110-ccache"

When the condition matches (then) #

Properties and child nodes (properties)

cache-sets — not listed as required here

Exact value (const): 2048

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "microchip,mpfs-ccache", "sifive,fu540-c000-ccache"

When the condition matches (then) #

Properties and child nodes (properties)

cache-sets — not listed as required here

Exact value (const): 1024

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "eswin,eic7700-l3-cache"

When the condition matches (then) #

Properties and child nodes (properties)

cache-sets — not listed as required here

Exact value (const): 4096

Rule 7 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "sifive,ccache0"

When the condition matches (then) #

Properties and child nodes (properties)

cache-level — not listed as required here

Allowed values (enum): 2, 3

When the condition does not match (else) #

Properties and child nodes (properties)

cache-level — not listed as required here

Exact value (const): 2

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "cache-block-size", "cache-level", "cache-sets", "cache-size", "cache-unified", "interrupts", "reg"

Examples (examples) #

cache-controller@2010000 {
    compatible = "sifive,fu540-c000-ccache", "cache";
    cache-block-size = <64>;
    cache-level = <2>;
    cache-sets = <1024>;
    cache-size = <2097152>;
    cache-unified;
    reg = <0x2010000 0x1000>;
    interrupt-parent = <&plic0>;
    interrupts = <1>,
                 <2>,
                 <3>;
    next-level-cache = <&L25>;
    memory-region = <&l2_lim>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 2: Copyright (C) 2020 SiFive, Inc.

UniPhier outer cache controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Cache bindings

Schema identifier ($id): "http://devicetree.org/schemas/cache/socionext,uniphier-system-cache.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

UniPhier ARM 32-bit SoCs are integrated with a full-custom outer cache controller system. All of them have a level 2 cache controller, and some have a level 3 cache controller as well.

Maintainers (maintainers): "Masahiro Yamada <yamada.masahiro@socionext.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "socionext,uniphier-system-cache"

reg — required here #

should contain 3 regions: control register, revision register, operation register, in this order.

Maximum number of items (maxItems): 3

interrupts — required here #

Interrupts can be used to notify the completion of cache operations. The number of interrupts should match to the number of CPU cores. The specified interrupts correspond to CPU0, CPU1, ... in this order.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

cache-unified — required here #

true — No constraints added by this property rule.

cache-size — required here #

true — No constraints added by this property rule.

cache-sets — required here #

true — No constraints added by this property rule.

cache-line-size — required here #

true — No constraints added by this property rule.

cache-level — required here #

Minimum value (minimum): 2

Maximum value (maximum): 3

next-level-cache — not listed as required here #

true — No constraints added by this property rule.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/cache-controller.yaml#

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts", "cache-unified", "cache-size", "cache-sets", "cache-line-size", "cache-level"

Examples (examples) #

// System with L2.
cache-controller@500c0000 {
    compatible = "socionext,uniphier-system-cache";
    reg = <0x500c0000 0x2000>, <0x503c0100 0x4>, <0x506c0000 0x400>;
    interrupts = <0 174 4>, <0 175 4>, <0 190 4>, <0 191 4>;
    cache-unified;
    cache-size = <0x140000>;
    cache-sets = <512>;
    cache-line-size = <128>;
    cache-level = <2>;
};
// System with L2 and L3.
//   L2 should specify the next level cache by 'next-level-cache'.
l2: cache-controller@500c0000 {
    compatible = "socionext,uniphier-system-cache";
    reg = <0x500c0000 0x2000>, <0x503c0100 0x8>, <0x506c0000 0x400>;
    interrupts = <0 190 4>, <0 191 4>;
    cache-unified;
    cache-size = <0x200000>;
    cache-sets = <512>;
    cache-line-size = <128>;
    cache-level = <2>;
    next-level-cache = <&l3>;
};

l3: cache-controller@500c8000 {
    compatible = "socionext,uniphier-system-cache";
    reg = <0x500c8000 0x2000>, <0x503c8100 0x8>, <0x506c8000 0x400>;
    interrupts = <0 174 4>, <0 175 4>;
    cache-unified;
    cache-size = <0x200000>;
    cache-sets = <512>;
    cache-line-size = <256>;
    cache-level = <3>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

StarFive StarLink Cache Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Cache bindings

Schema identifier ($id): "http://devicetree.org/schemas/cache/starfive,jh8100-starlink-cache.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Joshua Yeong <joshua.yeong@starfivetech.com>"

StarFive's StarLink Cache Controller manages the L3 cache shared between clusters of CPU cores. The cache driver enables RISC-V non-standard cache management as an alternative to instructions in the RISC-V Zicbom extension.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/cache-controller.yaml#

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Allowed values (enum): "starfive,jh8100-starlink-cache"

Required in this object (required): "compatible"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "starfive,jh8100-starlink-cache"

Item 2

Exact value (const): "cache"

reg — required here #

Maximum number of items (maxItems): 1

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "cache-block-size", "cache-level", "cache-sets", "cache-size", "cache-unified"

Examples (examples) #

soc {
  #address-cells = <2>;
  #size-cells = <2>;

  cache-controller@15000000 {
    compatible = "starfive,jh8100-starlink-cache", "cache";
    reg = <0x0 0x15000000 0x0 0x278>;
    cache-block-size = <64>;
    cache-level = <3>;
    cache-sets = <8192>;
    cache-size = <0x400000>;
    cache-unified;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 20: We need a select here so we don't match all nodes with 'cache'

Peios Learn — documentation for Peios software.

Built with Trail.