Path: blob/master/Documentation/devicetree/bindings/cache/sifive,ccache0.yaml
51485 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1# Copyright (C) 2020 SiFive, Inc.2%YAML 1.23---4$id: http://devicetree.org/schemas/cache/sifive,ccache0.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#67title: SiFive Composable Cache Controller89maintainers:10- Paul Walmsley <paul.walmsley@sifive.com>1112description:13The SiFive Composable Cache Controller is used to provide access to fast copies14of memory for masters in a Core Complex. The Composable Cache Controller also15acts as directory-based coherency manager.16All the properties in ePAPR/DeviceTree specification applies for this platform.1718select:19properties:20compatible:21contains:22enum:23- sifive,ccache024- sifive,fu540-c000-ccache25- sifive,fu740-c000-ccache2627required:28- compatible2930properties:31compatible:32oneOf:33- items:34- enum:35- sifive,ccache036- sifive,fu540-c000-ccache37- sifive,fu740-c000-ccache38- const: cache39- items:40- enum:41- eswin,eic7700-l3-cache42- starfive,jh7100-ccache43- starfive,jh7110-ccache44- const: sifive,ccache045- const: cache46- items:47- const: microchip,mpfs-ccache48- const: sifive,fu540-c000-ccache49- const: cache50- items:51- const: microchip,pic64gx-ccache52- const: microchip,mpfs-ccache53- const: sifive,fu540-c000-ccache54- const: cache5556cache-block-size:57const: 645859cache-level:60enum: [2, 3]6162cache-sets:63enum: [1024, 2048, 4096]6465cache-size:66enum: [2097152, 4194304]6768cache-unified: true6970interrupts:71minItems: 372items:73- description: DirError interrupt74- description: DataError interrupt75- description: DataFail interrupt76- description: DirFail interrupt7778reg:79maxItems: 18081next-level-cache: true8283memory-region:84maxItems: 185description: |86The reference to the reserved-memory for the L2 Loosely Integrated Memory region.87The reserved memory node should be defined as per the bindings in reserved-memory.txt.8889allOf:90- $ref: /schemas/cache-controller.yaml#9192- if:93properties:94compatible:95contains:96enum:97- eswin,eic7700-l3-cache98- sifive,fu740-c000-ccache99- starfive,jh7100-ccache100- starfive,jh7110-ccache101- microchip,mpfs-ccache102103then:104properties:105interrupts:106description: |107Must contain entries for DirError, DataError, DataFail, DirFail signals.108minItems: 4109110else:111properties:112interrupts:113description: |114Must contain entries for DirError, DataError and DataFail signals.115maxItems: 3116117- if:118properties:119compatible:120contains:121const: eswin,eic7700-l3-cache122123then:124properties:125cache-size:126const: 4194304127128else:129properties:130cache-size:131const: 2097152132133- if:134properties:135compatible:136contains:137enum:138- sifive,fu740-c000-ccache139- starfive,jh7100-ccache140- starfive,jh7110-ccache141142then:143properties:144cache-sets:145const: 2048146147- if:148properties:149compatible:150contains:151enum:152- microchip,mpfs-ccache153- sifive,fu540-c000-ccache154155then:156properties:157cache-sets:158const: 1024159160- if:161properties:162compatible:163contains:164enum:165- eswin,eic7700-l3-cache166167then:168properties:169cache-sets:170const: 4096171172- if:173properties:174compatible:175contains:176const: sifive,ccache0177178then:179properties:180cache-level:181enum: [2, 3]182183else:184properties:185cache-level:186const: 2187188additionalProperties: false189190required:191- compatible192- cache-block-size193- cache-level194- cache-sets195- cache-size196- cache-unified197- interrupts198- reg199200examples:201- |202cache-controller@2010000 {203compatible = "sifive,fu540-c000-ccache", "cache";204cache-block-size = <64>;205cache-level = <2>;206cache-sets = <1024>;207cache-size = <2097152>;208cache-unified;209reg = <0x2010000 0x1000>;210interrupt-parent = <&plic0>;211interrupts = <1>,212<2>,213<3>;214next-level-cache = <&L25>;215memory-region = <&l2_lim>;216};217218219