LoongArch CPUs
Schema identifier ($id): "http://devicetree.org/schemas/loongarch/cpus.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Binbin Zhou <zhoubinbin@loongson.cn>"
This document describes the list of LoongArch CPU cores that support FDT, it describe the layout of CPUs in a system through the "cpus" node.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/cpu.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "loongson,la264", "loongson,la364"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/loongson,ls2k-clk.h>
cpus {
#size-cells = <0>;
#address-cells = <1>;
cpu@0 {
compatible = "loongson,la264";
device_type = "cpu";
reg = <0>;
clocks = <&clk LOONGSON2_NODE_CLK>;
};
cpu@1 {
compatible = "loongson,la264";
device_type = "cpu";
reg = <1>;
clocks = <&clk LOONGSON2_NODE_CLK>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)