SiFive Composable Cache Controller

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.

Edit this page