dt-bindings: mips: add CPU bindings for MIPS architecture
Subsystems (2)
PATCH 1/1 dt-bindings: mips: add CPU bindings for MIPS architecture
Add the yaml binding for available CPUs in MIPS architecture.
--- .../devicetree/bindings/mips/cpus.yaml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Documentation/devicetree/bindings/mips/cpus.yaml
Documentation/devicetree/bindings/mips/cpus.yaml new file +66 -0
@@ -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 <[email protected]> + +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>; + }; + }; +
Signature · 1 line
2.25.1
Rob Herring
maintainerQuoted 31 lines · Sergio Paracuellos
Add the yaml binding for available CPUs in MIPS architecture.
Signed-off-by Sergio Paracuellos <[email protected]>--- .../devicetree/bindings/mips/cpus.yaml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Documentation/devicetree/bindings/mips/cpus.yamlDocumentation/devicetree/bindings/mips/cpus.yaml new file +17
-0@@ -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 <[email protected]> + +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:
Documentation/devicetree/bindings/mips/cpus.yaml line 27
Quoted 10 lines
Documentation/devicetree/bindings/mips/cpus.yaml new file +10
-0+ 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...
Quoted 43 lines
Documentation/devicetree/bindings/mips/cpus.yaml new file +39
-0+ - 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>; + }; + }; +Signature · 1 line
2.25.1
Hi Rob,
Quoted 38 lines · Rob Herring
Quoted 36 lines · Sergio Paracuellos
Add the yaml binding for available CPUs in MIPS architecture.
Signed-off-by Sergio Paracuellos <[email protected]>--- .../devicetree/bindings/mips/cpus.yaml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Documentation/devicetree/bindings/mips/cpus.yamlDocumentation/devicetree/bindings/mips/cpus.yaml new file +22
-0@@ -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 <[email protected]> + +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:
Quoted 8 lines
Documentation/devicetree/bindings/mips/cpus.yaml line 27
Quoted 5 lines
Documentation/devicetree/bindings/mips/cpus.yaml new file +5
-0+ - brcm,bmips3300 + - brcm,bmips4350 + - brcm,bmips4380 + - brcm,bmips5000 + - brcm,bmips5200You 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/[email protected]/T/#u
Quoted 2 lines
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
Quoted 44 lines
Quoted 44 lines
Documentation/devicetree/bindings/mips/cpus.yaml new file +39
-1+ - 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