MIPS CPUs
Schema identifier ($id): "http://devicetree.org/schemas/mips/cpus.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thomas Bogendoerfer <tsbogend@alpha.franken.de>", "周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>"
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 and child nodes (properties) #
compatible — required here #
Allowed values (enum): "brcm,bmips3300", "brcm,bmips4350", "brcm,bmips4380", "brcm,bmips5000", "brcm,bmips5200", "img,i6500", "ingenic,xburst-fpu1.0-mxu1.1", "ingenic,xburst-fpu2.0-mxu2.0", "ingenic,xburst-mxu1.0", "ingenic,xburst2-fpu2.1-mxu2.1-smt", "loongson,gs264", "mips,m14Kc", "mips,mips1004Kc", "mips,mips24KEc", "mips,mips24Kc", "mips,mips34Kc", "mips,mips4KEc", "mips,mips4Kc", "mips,mips74Kc", "mti,interaptiv", "mti,mips14KEc", "mti,mips14Kc", "mti,mips24KEc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
device_type — not listed as required here #
true — No constraints added by this property rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/opp/opp-v1.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"ingenic,xburst-mxu1.0","ingenic,xburst-fpu1.0-mxu1.1","ingenic,xburst-fpu2.0-mxu2.0","ingenic,xburst2-fpu2.1-mxu2.1-smt"When the condition matches (
then) #
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
cpus {
#size-cells = <0>;
#address-cells = <1>;
cpu@0 {
compatible = "mips,mips1004Kc";
device_type = "cpu";
reg = <0>;
};
cpu@1 {
compatible = "mips,mips1004Kc";
device_type = "cpu";
reg = <1>;
};
};
// Example 2 (Ingenic CPU)
#include <dt-bindings/clock/ingenic,jz4780-cgu.h>
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
compatible = "ingenic,xburst-fpu1.0-mxu1.1";
device_type = "cpu";
reg = <0>;
clocks = <&cgu JZ4780_CLK_CPU>;
};
cpu@1 {
compatible = "ingenic,xburst-fpu1.0-mxu1.1";
device_type = "cpu";
reg = <1>;
clocks = <&cgu JZ4780_CLK_CORE1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)