Path: blob/main/sys/contrib/device-tree/Bindings/cache/sifive,ccache0.yaml
48377 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- starfive,jh7100-ccache42- starfive,jh7110-ccache43- const: sifive,ccache044- const: cache45- items:46- const: microchip,mpfs-ccache47- const: sifive,fu540-c000-ccache48- const: cache4950cache-block-size:51const: 645253cache-level:54enum: [2, 3]5556cache-sets:57enum: [1024, 2048]5859cache-size:60const: 20971526162cache-unified: true6364interrupts:65minItems: 366items:67- description: DirError interrupt68- description: DataError interrupt69- description: DataFail interrupt70- description: DirFail interrupt7172reg:73maxItems: 17475next-level-cache: true7677memory-region:78maxItems: 179description: |80The reference to the reserved-memory for the L2 Loosely Integrated Memory region.81The reserved memory node should be defined as per the bindings in reserved-memory.txt.8283allOf:84- $ref: /schemas/cache-controller.yaml#8586- if:87properties:88compatible:89contains:90enum:91- sifive,fu740-c000-ccache92- starfive,jh7100-ccache93- starfive,jh7110-ccache94- microchip,mpfs-ccache9596then:97properties:98interrupts:99description: |100Must contain entries for DirError, DataError, DataFail, DirFail signals.101minItems: 4102103else:104properties:105interrupts:106description: |107Must contain entries for DirError, DataError and DataFail signals.108maxItems: 3109110- if:111properties:112compatible:113contains:114enum:115- sifive,fu740-c000-ccache116- starfive,jh7100-ccache117- starfive,jh7110-ccache118119then:120properties:121cache-sets:122const: 2048123124else:125properties:126cache-sets:127const: 1024128129- if:130properties:131compatible:132contains:133const: sifive,ccache0134135then:136properties:137cache-level:138enum: [2, 3]139140else:141properties:142cache-level:143const: 2144145additionalProperties: false146147required:148- compatible149- cache-block-size150- cache-level151- cache-sets152- cache-size153- cache-unified154- interrupts155- reg156157examples:158- |159cache-controller@2010000 {160compatible = "sifive,fu540-c000-ccache", "cache";161cache-block-size = <64>;162cache-level = <2>;163cache-sets = <1024>;164cache-size = <2097152>;165cache-unified;166reg = <0x2010000 0x1000>;167interrupt-parent = <&plic0>;168interrupts = <1>,169<2>,170<3>;171next-level-cache = <&L25>;172memory-region = <&l2_lim>;173};174175176