diff --git a/Documentation/devicetree/bindings/soc/foobar/foobar,cache-controller.yaml b/Documentation/devicetree/bindings/soc/foobar/foobar,cache-controller.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6348483bbe096d6a3e04529bb40ab172d3bf9dea --- /dev/null +++ b/Documentation/devicetree/bindings/soc/foobar/foobar,cache-controller.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/foobar/foobar,cache-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Foobar SoC Cache Controller + +maintainers: + - Drew Fustini <dfustini@baylibre.com> + +description: + Foobar SoC cache controller implements the RISC-V CBQRI interface for + capacity allocaiton and usage monitoring. + +allOf: + - $ref: /schemas/cache-controller.yaml# + - $ref: /schemas/riscv/riscv,cbqri.yaml# + +properties: + compatible: + items: + - const: foobar,cache-controller + reg: + maxItems: 1 + description: A memory region containing registers as defined in CBQRI spec + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + + cache-controller@fff12000 { + compatible = "foobar,cache-controller"; + reg = <0xfff12000 0x2000>; + cache-level = <2>; + riscv,cbqri-rcid = <64>; + riscv,cbqri-mcid = <256>; + }; + +...