Path: blob/master/Documentation/devicetree/bindings/cache/sifive,ccache0.yaml
26307 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: cache5051cache-block-size:52const: 645354cache-level:55enum: [2, 3]5657cache-sets:58enum: [1024, 2048, 4096]5960cache-size:61enum: [2097152, 4194304]6263cache-unified: true6465interrupts:66minItems: 367items:68- description: DirError interrupt69- description: DataError interrupt70- description: DataFail interrupt71- description: DirFail interrupt7273reg:74maxItems: 17576next-level-cache: true7778memory-region:79maxItems: 180description: |81The reference to the reserved-memory for the L2 Loosely Integrated Memory region.82The reserved memory node should be defined as per the bindings in reserved-memory.txt.8384allOf:85- $ref: /schemas/cache-controller.yaml#8687- if:88properties:89compatible:90contains:91enum:92- eswin,eic7700-l3-cache93- sifive,fu740-c000-ccache94- starfive,jh7100-ccache95- starfive,jh7110-ccache96- microchip,mpfs-ccache9798then:99properties:100interrupts:101description: |102Must contain entries for DirError, DataError, DataFail, DirFail signals.103minItems: 4104105else:106properties:107interrupts:108description: |109Must contain entries for DirError, DataError and DataFail signals.110maxItems: 3111112- if:113properties:114compatible:115contains:116const: eswin,eic7700-l3-cache117118then:119properties:120cache-size:121const: 4194304122123else:124properties:125cache-size:126const: 2097152127128- if:129properties:130compatible:131contains:132enum:133- sifive,fu740-c000-ccache134- starfive,jh7100-ccache135- starfive,jh7110-ccache136137then:138properties:139cache-sets:140const: 2048141142- if:143properties:144compatible:145contains:146enum:147- microchip,mpfs-ccache148- sifive,fu540-c000-ccache149150then:151properties:152cache-sets:153const: 1024154155- if:156properties:157compatible:158contains:159enum:160- eswin,eic7700-l3-cache161162then:163properties:164cache-sets:165const: 4096166167- if:168properties:169compatible:170contains:171const: sifive,ccache0172173then:174properties:175cache-level:176enum: [2, 3]177178else:179properties:180cache-level:181const: 2182183additionalProperties: false184185required:186- compatible187- cache-block-size188- cache-level189- cache-sets190- cache-size191- cache-unified192- interrupts193- reg194195examples:196- |197cache-controller@2010000 {198compatible = "sifive,fu540-c000-ccache", "cache";199cache-block-size = <64>;200cache-level = <2>;201cache-sets = <1024>;202cache-size = <2097152>;203cache-unified;204reg = <0x2010000 0x1000>;205interrupt-parent = <&plic0>;206interrupts = <1>,207<2>,208<3>;209next-level-cache = <&L25>;210memory-region = <&l2_lim>;211};212213214