Messages in this thread | | | Date | Tue, 7 May 2024 17:50:49 +0100 | From | Conor Dooley <> | Subject | Re: [PATCH 4/5] dt-bindings: mips: Document mti,mips-cm |
| |
On Tue, May 07, 2024 at 10:01:52AM +0100, Jiaxun Yang wrote: > Add devicetree binding documentation for MIPS Coherence Manager. > > Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> > --- > .../devicetree/bindings/mips/mips-cm.yaml | 37 ++++++++++++++++++++++ > 1 file changed, 37 insertions(+) > > diff --git a/Documentation/devicetree/bindings/mips/mips-cm.yaml b/Documentation/devicetree/bindings/mips/mips-cm.yaml > new file mode 100644 > index 000000000000..b92b008d7758 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mips/mips-cm.yaml
Filename matching the compatible please.
> @@ -0,0 +1,37 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mips/mips-cm.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MIPS Coherence Manager > + > +description: | > + Defines a location of the MIPS Coherence Manager registers. > + > +maintainers: > + - Jiaxun Yang <jiaxun.yang@flygoat.com> > + > +properties: > + compatible: > + const: mti,mips-cm
Is it actually only available on mips? Google seems to report there being Coherence Managers on their RISC-V offerings too.
> + reg: > + description: |
The | isn't needed, there's no formatting to preserve.
> + Base address and size of an unoccupied memory region, which will be > + used to map the MIPS CM registers block.
This sounds like it should actually be a memory-region that references some reserved memory, not a reg, given the description. I think the commit message here is lacking any information about what the intentions are for this binding.
> + maxItems: 1 > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + cm@1fbf8000 {
And a generic node name here please. I actually don't quite know what to suggest though, but "coherency-manager" would likely be better than "cm".
Thanks, Conor.
> + compatible = "mti,mips-cm"; > + reg = <0x1bde8000 0x8000>; > + }; > +... > > -- > 2.34.1 > [unhandled content-type:application/pgp-signature] | |