* [PATCH] dt-bindings: mips: add CPU bindings for MIPS architecture
@ 2022-09-15 5:55 Sergio Paracuellos
2022-09-16 19:34 ` Rob Herring
0 siblings, 1 reply; 3+ messages in thread
From: Sergio Paracuellos @ 2022-09-15 5:55 UTC (permalink / raw)
To: devicetree; +Cc: tsbogend, robh+dt, krzk+dt, arinc.unal
Add the yaml binding for available CPUs in MIPS architecture.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
.../devicetree/bindings/mips/cpus.yaml | 66 +++++++++++++++++++
1 file changed, 66 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mips/cpus.yaml
diff --git a/Documentation/devicetree/bindings/mips/cpus.yaml b/Documentation/devicetree/bindings/mips/cpus.yaml
new file mode 100644
index 000000000000..4277adc65ed6
--- /dev/null
+++ b/Documentation/devicetree/bindings/mips/cpus.yaml
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mips/cpus.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MIPS CPUs bindings
+
+maintainers:
+ - Sergio Paracuellos <sergio.paracuellos@gmail.com>
+
+description: |+
+ The device tree allows to describe the layout of CPUs in a system through
+ the "cpus" node, which in turn contains a number of subnodes (ie "cpu")
+ defining properties for every cpu.
+
+properties:
+ reg:
+ maxItems: 1
+
+ compatible:
+ enum:
+ - brcm,bmips3300
+ - brcm,bmips4350
+ - brcm,bmips4380
+ - brcm,bmips5000
+ - brcm,bmips5200
+ - ingenic,xburst-mxu1.0
+ - ingenic,xburst-fpu1.0-mxu1.1
+ - ingenic,xburst-fpu2.0-mxu2.0
+ - loongson,gs264
+ - mips,mips1004Kc
+ - mips,m14Kc
+ - mips,mips24KEc
+ - mips,mips4KEc
+ - mips,mips74Kc
+ - mips,mips24Kc
+ - mti,mips24KEc
+ - mti,mips14KEc
+ - mti,mips14Kc
+ - mti,interaptiv
+
+required:
+ - compatible
+
+additionalProperties: true
+
+examples:
+ - |
+ cpus {
+ #size-cells = <0>;
+ #address-cells = <1>;
+
+ cpu@0 {
+ device_type = "cpu";
+ compatible = "mips,mips1004Kc";
+ reg = <0>;
+ };
+
+ cpu@1 {
+ device_type = "cpu";
+ compatible = "mips,mips1004Kc";
+ reg = <1>;
+ };
+ };
+
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: mips: add CPU bindings for MIPS architecture
2022-09-15 5:55 [PATCH] dt-bindings: mips: add CPU bindings for MIPS architecture Sergio Paracuellos
@ 2022-09-16 19:34 ` Rob Herring
2022-09-17 4:15 ` Sergio Paracuellos
0 siblings, 1 reply; 3+ messages in thread
From: Rob Herring @ 2022-09-16 19:34 UTC (permalink / raw)
To: Sergio Paracuellos; +Cc: devicetree, tsbogend, krzk+dt, arinc.unal
On Thu, Sep 15, 2022 at 07:55:14AM +0200, Sergio Paracuellos wrote:
> Add the yaml binding for available CPUs in MIPS architecture.
>
> Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
> ---
> .../devicetree/bindings/mips/cpus.yaml | 66 +++++++++++++++++++
> 1 file changed, 66 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/mips/cpus.yaml
>
> diff --git a/Documentation/devicetree/bindings/mips/cpus.yaml b/Documentation/devicetree/bindings/mips/cpus.yaml
> new file mode 100644
> index 000000000000..4277adc65ed6
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mips/cpus.yaml
> @@ -0,0 +1,66 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mips/cpus.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: MIPS CPUs bindings
> +
> +maintainers:
> + - Sergio Paracuellos <sergio.paracuellos@gmail.com>
> +
> +description: |+
> + The device tree allows to describe the layout of CPUs in a system through
> + the "cpus" node, which in turn contains a number of subnodes (ie "cpu")
> + defining properties for every cpu.
> +
> +properties:
> + reg:
> + maxItems: 1
> +
> + compatible:
> + enum:
> + - brcm,bmips3300
> + - brcm,bmips4350
> + - brcm,bmips4380
> + - brcm,bmips5000
> + - brcm,bmips5200
You need to remove bindings/mips/brcm/brcm,bmips.txt. But it also
defines a property which needs to be added.
I didn't check the rest for existing documentation...
> + - ingenic,xburst-mxu1.0
> + - ingenic,xburst-fpu1.0-mxu1.1
> + - ingenic,xburst-fpu2.0-mxu2.0
> + - loongson,gs264
> + - mips,mips1004Kc
> + - mips,m14Kc
> + - mips,mips24KEc
> + - mips,mips4KEc
> + - mips,mips74Kc
> + - mips,mips24Kc
> + - mti,mips24KEc
> + - mti,mips14KEc
> + - mti,mips14Kc
> + - mti,interaptiv
> +
> +required:
> + - compatible
> +
> +additionalProperties: true
> +
> +examples:
> + - |
> + cpus {
> + #size-cells = <0>;
> + #address-cells = <1>;
> +
> + cpu@0 {
> + device_type = "cpu";
> + compatible = "mips,mips1004Kc";
> + reg = <0>;
> + };
> +
> + cpu@1 {
> + device_type = "cpu";
> + compatible = "mips,mips1004Kc";
> + reg = <1>;
> + };
> + };
> +
> --
> 2.25.1
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: mips: add CPU bindings for MIPS architecture
2022-09-16 19:34 ` Rob Herring
@ 2022-09-17 4:15 ` Sergio Paracuellos
0 siblings, 0 replies; 3+ messages in thread
From: Sergio Paracuellos @ 2022-09-17 4:15 UTC (permalink / raw)
To: Rob Herring
Cc: open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Thomas Bogendoerfer, Krzysztof Kozlowski,
Arınç ÜNAL
Hi Rob,
On Fri, Sep 16, 2022 at 9:34 PM Rob Herring <robh@kernel.org> wrote:
>
> On Thu, Sep 15, 2022 at 07:55:14AM +0200, Sergio Paracuellos wrote:
> > Add the yaml binding for available CPUs in MIPS architecture.
> >
> > Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
> > ---
> > .../devicetree/bindings/mips/cpus.yaml | 66 +++++++++++++++++++
> > 1 file changed, 66 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/mips/cpus.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/mips/cpus.yaml b/Documentation/devicetree/bindings/mips/cpus.yaml
> > new file mode 100644
> > index 000000000000..4277adc65ed6
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/mips/cpus.yaml
> > @@ -0,0 +1,66 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/mips/cpus.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: MIPS CPUs bindings
> > +
> > +maintainers:
> > + - Sergio Paracuellos <sergio.paracuellos@gmail.com>
> > +
> > +description: |+
> > + The device tree allows to describe the layout of CPUs in a system through
> > + the "cpus" node, which in turn contains a number of subnodes (ie "cpu")
> > + defining properties for every cpu.
> > +
> > +properties:
> > + reg:
> > + maxItems: 1
> > +
> > + compatible:
> > + enum:
> > + - brcm,bmips3300
> > + - brcm,bmips4350
> > + - brcm,bmips4380
> > + - brcm,bmips5000
> > + - brcm,bmips5200
>
> You need to remove bindings/mips/brcm/brcm,bmips.txt. But it also
> defines a property which needs to be added.
I have addressed this in v2:
https://lore.kernel.org/linux-devicetree/20220917041136.526446-1-sergio.paracuellos@gmail.com/T/#u
>
> I didn't check the rest for existing documentation...
The rest of compatible strings for cpu's that I am listing here seems
to not contain associated txt bindings description, so I guess if
anything extra is needed / required can be added afterwards?
Thanks,
Sergio Paracuellos
>
> > + - ingenic,xburst-mxu1.0
> > + - ingenic,xburst-fpu1.0-mxu1.1
> > + - ingenic,xburst-fpu2.0-mxu2.0
> > + - loongson,gs264
> > + - mips,mips1004Kc
> > + - mips,m14Kc
> > + - mips,mips24KEc
> > + - mips,mips4KEc
> > + - mips,mips74Kc
> > + - mips,mips24Kc
> > + - mti,mips24KEc
> > + - mti,mips14KEc
> > + - mti,mips14Kc
> > + - mti,interaptiv
> > +
> > +required:
> > + - compatible
> > +
> > +additionalProperties: true
> > +
> > +examples:
> > + - |
> > + cpus {
> > + #size-cells = <0>;
> > + #address-cells = <1>;
> > +
> > + cpu@0 {
> > + device_type = "cpu";
> > + compatible = "mips,mips1004Kc";
> > + reg = <0>;
> > + };
> > +
> > + cpu@1 {
> > + device_type = "cpu";
> > + compatible = "mips,mips1004Kc";
> > + reg = <1>;
> > + };
> > + };
> > +
> > --
> > 2.25.1
> >
> >
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-17 4:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-15 5:55 [PATCH] dt-bindings: mips: add CPU bindings for MIPS architecture Sergio Paracuellos
2022-09-16 19:34 ` Rob Herring
2022-09-17 4:15 ` Sergio Paracuellos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).