xref: /linux/Documentation/devicetree/bindings/loongarch/cpus.yaml (revision 06d07429858317ded2db7986113a9e0129cd599b)
1*8e07e0e3SBinbin Zhou# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*8e07e0e3SBinbin Zhou%YAML 1.2
3*8e07e0e3SBinbin Zhou---
4*8e07e0e3SBinbin Zhou$id: http://devicetree.org/schemas/loongarch/cpus.yaml#
5*8e07e0e3SBinbin Zhou$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8e07e0e3SBinbin Zhou
7*8e07e0e3SBinbin Zhoutitle: LoongArch CPUs
8*8e07e0e3SBinbin Zhou
9*8e07e0e3SBinbin Zhoumaintainers:
10*8e07e0e3SBinbin Zhou  - Binbin Zhou <zhoubinbin@loongson.cn>
11*8e07e0e3SBinbin Zhou
12*8e07e0e3SBinbin Zhoudescription:
13*8e07e0e3SBinbin Zhou  This document describes the list of LoongArch CPU cores that support FDT,
14*8e07e0e3SBinbin Zhou  it describe the layout of CPUs in a system through the "cpus" node.
15*8e07e0e3SBinbin Zhou
16*8e07e0e3SBinbin ZhouallOf:
17*8e07e0e3SBinbin Zhou  - $ref: /schemas/cpu.yaml#
18*8e07e0e3SBinbin Zhou
19*8e07e0e3SBinbin Zhouproperties:
20*8e07e0e3SBinbin Zhou  compatible:
21*8e07e0e3SBinbin Zhou    enum:
22*8e07e0e3SBinbin Zhou      - loongson,la264
23*8e07e0e3SBinbin Zhou      - loongson,la364
24*8e07e0e3SBinbin Zhou
25*8e07e0e3SBinbin Zhou  reg:
26*8e07e0e3SBinbin Zhou    maxItems: 1
27*8e07e0e3SBinbin Zhou
28*8e07e0e3SBinbin Zhou  clocks:
29*8e07e0e3SBinbin Zhou    maxItems: 1
30*8e07e0e3SBinbin Zhou
31*8e07e0e3SBinbin Zhourequired:
32*8e07e0e3SBinbin Zhou  - compatible
33*8e07e0e3SBinbin Zhou  - reg
34*8e07e0e3SBinbin Zhou  - clocks
35*8e07e0e3SBinbin Zhou
36*8e07e0e3SBinbin ZhouunevaluatedProperties: false
37*8e07e0e3SBinbin Zhou
38*8e07e0e3SBinbin Zhouexamples:
39*8e07e0e3SBinbin Zhou  - |
40*8e07e0e3SBinbin Zhou    #include <dt-bindings/clock/loongson,ls2k-clk.h>
41*8e07e0e3SBinbin Zhou
42*8e07e0e3SBinbin Zhou    cpus {
43*8e07e0e3SBinbin Zhou        #size-cells = <0>;
44*8e07e0e3SBinbin Zhou        #address-cells = <1>;
45*8e07e0e3SBinbin Zhou
46*8e07e0e3SBinbin Zhou        cpu@0 {
47*8e07e0e3SBinbin Zhou            compatible = "loongson,la264";
48*8e07e0e3SBinbin Zhou            device_type = "cpu";
49*8e07e0e3SBinbin Zhou            reg = <0>;
50*8e07e0e3SBinbin Zhou            clocks = <&clk LOONGSON2_NODE_CLK>;
51*8e07e0e3SBinbin Zhou        };
52*8e07e0e3SBinbin Zhou
53*8e07e0e3SBinbin Zhou        cpu@1 {
54*8e07e0e3SBinbin Zhou            compatible = "loongson,la264";
55*8e07e0e3SBinbin Zhou            device_type = "cpu";
56*8e07e0e3SBinbin Zhou            reg = <1>;
57*8e07e0e3SBinbin Zhou            clocks = <&clk LOONGSON2_NODE_CLK>;
58*8e07e0e3SBinbin Zhou        };
59*8e07e0e3SBinbin Zhou    };
60*8e07e0e3SBinbin Zhou
61*8e07e0e3SBinbin Zhou...
62