Re: [PATCH v13 4/5] dt-bindings: riscv: Add binding for CBQRI controllers
From: Drew Fustini
Date: Thu Dec 03 2026 - 17:04:46 EST
On Thu, Dec 03, 2026 at 08:58:32AM -0600, Rob Herring wrote:
> On Thu, Dec 03, 2026 at 01:57:05AM -0800, Drew Fustini wrote:
> > Document the device tree binding for RISC-V CBQRI capacity and bandwidth
> > controllers. Each controller is named by a device-specific compatible
> > followed by the generic compatible. The binding also describes the
> > common riscv,cbqri-rcid and riscv,cbqri-mcid properties, and the
> > riscv,cbqri-cache phandle, required for capacity controllers, that
> > links a capacity controller to the cache whose capacity it allocates.
> >
> > Reviewed-by: Conor Dooley <conor.dooley@xxxxxxxxxxxxx>
> > Reviewed-by: Zeng Heng <zengheng@xxxxxxxxxxxxx>
> > Co-developed-by: Adrien Ricciardi <aricciardi@xxxxxxxxxxxx>
> > Signed-off-by: Adrien Ricciardi <aricciardi@xxxxxxxxxxxx>
> > Signed-off-by: Drew Fustini <fustini@xxxxxxxxxx>
> > ---
> > .../devicetree/bindings/riscv/riscv,cbqri.yaml | 98 ++++++++++++++++++++++
> > MAINTAINERS | 1 +
> > 2 files changed, 99 insertions(+)
[..]
> > +examples:
> > + - |
> > + l2_cache: l2-cache {
> > + compatible = "cache";
> > + cache-level = <2>;
> > + cache-unified;
> > + cache-size = <0xc00000>;
> > + cache-sets = <8192>;
> > + cache-block-size = <64>;
> > + };
> > +
> > + qos-controller@a21a00c0 {
> > + compatible = "tenstorrent,ascalon-shared-cache-controller",
> > + "riscv,cbqri-capacity-controller";
> > + reg = <0xa21a00c0 0xf40>;
> > + riscv,cbqri-rcid = <16>;
> > + riscv,cbqri-cache = <&l2_cache>;
>
> Is there any reason why this node can't be the L2 cache? Is this really
> a separate block?
>
> Rob
After further discussion on irc, I am going to rework the schema for
v14. I will have a separate binding for the Ascalon Shared Cache that
describes the cache and include the CBQRI properties from a separate
CBQRI binding.
There are registers other than CBQRI in the Ascalon Shared Cache MMIO
block, so I agree it makes sense to describe it like that. Linux would
not touch any of the other SC registers but you made a good point that
it is becoming more common for firmware to parse DT as well.
Thanks,
Drew