summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/loongarch/cpus.yaml
blob: f175872995e117b18b3cc141d7044d1a390e0f06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/loongarch/cpus.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: LoongArch CPUs

maintainers:
  - Binbin Zhou <zhoubinbin@loongson.cn>

description:
  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.

allOf:
  - $ref: /schemas/cpu.yaml#

properties:
  compatible:
    enum:
      - loongson,la264
      - loongson,la364

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

required:
  - compatible
  - reg
  - clocks

unevaluatedProperties: false

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>;
        };
    };

...