Debian Codegraph @

dtschema/schemas/cpu.yaml

raw
1 # SPDX-License-Identifier: GPL-2.0 OR BSD-2-clause
2 # Copyright (C) 2018-2019 SiFive, Inc.
3 #
4 # Description text is from the Devicetree Specification at
5 # https://www.devicetree.org/specifications/
6 # which is
7 # Copyright 2008,2011 Power.org, Inc.
8 # Copyright 2008,2011 Freescale Semiconductor, Inc.
9 # Copyright 2008,2011 International Business Machines Corporation
10 # Copyright 2016,2017 Linaro,Ltd.
11 # Copyright 2016,2017 Arm,Ltd.
12 #
13 %YAML 1.2
14 ---
15 $id: http://devicetree.org/schemas/cpu.yaml#
16 $schema: http://devicetree.org/meta-schemas/base.yaml#
17
18 title: CPU node common properties
19
20 maintainers:
21 - Devicetree Specification Mailing List <[email protected]>
22
23 description: |+
24 In Devicetree data files, the layout of CPUs is described in the
25 "cpus" node. This node in turn contains a number of subnodes
26 representing CPUs, which define properties for every cpu.
27
28 Bindings for CPU nodes follow the Devicetree Specification, available from:
29
30 https://www.devicetree.org/specifications/
31
32 select: false
33
34 allOf:
35 - $ref: cache-controller.yaml#
36
37 properties:
38 device_type:
39 const: cpu
40
41 reg:
42 description:
43 Defines a unique CPU/thread ID for the CPU/threads represented
44 by the CPU node.
45
46 compatible: true
47
48 '#cooling-cells':
49 const: 2
50
51 clock-frequency:
52 description:
53 Specifies the current clock speed of the CPU in Hertz.
54
55 clocks: true
56 clock-names: true
57
58 cpu-supply: true
59
60 timebase-frequency:
61 oneOf:
62 - $ref: /schemas/types.yaml#/definitions/uint32
63 - $ref: /schemas/types.yaml#/definitions/uint64
64 minimum: 1
65 description:
66 Specifies the current frequency at which the timebase and the
67 decrementer registers are updated (in Hertz).
68
69 status:
70 $ref: types.yaml#/definitions/string
71 enum: [ okay, disabled, fail ]
72 description:
73 A standard property describing the state of a CPU. A CPU may be
74 running ("okay"), in a quiescent state ("disabled") or be not
75 operational or not exist ("fail").
76
77 enable-method:
78 $ref: /schemas/types.yaml#/definitions/string-array
79 description:
80 Describes the method by which a CPU in a disabled state is enabled.
81 This property is required for CPUs with a status property with a
82 value of "disabled". The value consists of one or more strings
83 that define the method to release this CPU. If a client program
84 recognizes any of the methods, it may use it.
85
86 cpu-release-addr:
87 oneOf:
88 - $ref: /schemas/types.yaml#/definitions/uint64
89 - $ref: /schemas/types.yaml#/definitions/uint32
90 deprecated: true # Needed for some 32-bit Arm systems
91 description:
92 This value specifies the physical address of a spin table entry that
93 releases a secondary CPU from its spin loop.
94
95 cache-op-block-size:
96 $ref: /schemas/types.yaml#/definitions/uint32
97 description:
98 Specifies the block size in bytes upon which cache block instructions
99 operate. Required if different than the L1 cache block size.
100
101 reservation-granule-size:
102 $ref: /schemas/types.yaml#/definitions/uint32
103 description:
104 Specifies the reservation granule size supported by this processor
105 in bytes.
106
107 numa-node-id: true
108
109 mmu-type:
110 $ref: /schemas/types.yaml#/definitions/string
111 description:
112 Specifies the CPU's MMU type.
113
114 operating-points-v2: true
115
116 tlb-split:
117 $ref: /schemas/types.yaml#/definitions/flag
118 description:
119 If present, specifies that the TLB has a split configuration, with
120 separate TLBs for instructions and data. If absent, specifies that
121 the TLB has a unified configuration. Required for a CPU with a
122 TLB in a split configuration.
123
124 l2-cache:
125 oneOf:
126 - type: object
127 - $ref: /schemas/types.yaml#/definitions/phandle
128 deprecated: true
129
130 patternProperties:
131 "^(i-|d-|)tlb-(size|sets)$":
132 $ref: /schemas/types.yaml#/definitions/uint32
133 minimum: 1
134
135 anyOf:
136 - required:
137 - device_type
138 - required:
139 - reg
140 - required:
141 - compatible
142
143 dependencies:
144 cpu-release-addr: [ enable-method ]
145 d-tlb-size: [ tlb-split ]
146 d-tlb-sets: [ tlb-split ]
147 i-tlb-size: [ tlb-split ]
148 i-tlb-sets: [ tlb-split ]
149
150 additionalProperties: true
151
152 ...