UniPhier outer cache controller
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