Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
104 lines
2.1 KiB
YAML
104 lines
2.1 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
# Copyright (C) 2023 Renesas Electronics Corp.
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/cache/andestech,ax45mp-cache.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Andestech AX45MP L2 Cache Controller
|
|
|
|
maintainers:
|
|
- Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
|
|
|
|
description:
|
|
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.
|
|
|
|
select:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- andestech,ax45mp-cache
|
|
|
|
required:
|
|
- compatible
|
|
|
|
properties:
|
|
compatible:
|
|
items:
|
|
- enum:
|
|
- andestech,qilai-ax45mp-cache
|
|
- renesas,r9a07g043f-ax45mp-cache
|
|
- const: andestech,ax45mp-cache
|
|
- const: cache
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
|
|
cache-line-size:
|
|
const: 64
|
|
|
|
cache-level:
|
|
const: 2
|
|
|
|
cache-sets:
|
|
enum: [1024, 2048]
|
|
|
|
cache-size:
|
|
enum: [131072, 262144, 524288, 1048576, 2097152]
|
|
|
|
cache-unified: true
|
|
|
|
next-level-cache: true
|
|
|
|
additionalProperties: false
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- interrupts
|
|
- cache-line-size
|
|
- cache-level
|
|
- cache-sets
|
|
- cache-size
|
|
- cache-unified
|
|
|
|
allOf:
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
const: andestech,qilai-ax45mp-cache
|
|
|
|
then:
|
|
properties:
|
|
cache-sets:
|
|
const: 2048
|
|
cache-size:
|
|
const: 2097152
|
|
else:
|
|
properties:
|
|
cache-sets:
|
|
const: 1024
|
|
|
|
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;
|
|
};
|