CPU node common properties
Schema identifier ($id): "http://devicetree.org/schemas/cpu.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/base.yaml#"
Maintainers (maintainers): "Devicetree Specification Mailing List <devicetree-spec@vger.kernel.org>"
In Devicetree data files, the layout of CPUs is described in the "cpus" node. This node in turn contains a number of subnodes representing CPUs, which define properties for every cpu.
Bindings for CPU nodes follow the Devicetree Specification, available from:
https://www.devicetree.org/specifications/
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):cache-controller.yaml#
Properties and child nodes (properties) #
device_type — not listed as required here #
Exact value (const): "cpu"
reg — not listed as required here #
Defines a unique CPU/thread ID for the CPU/threads represented by the CPU node.
compatible — not listed as required here #
true — No constraints added by this property rule.
#cooling-cells — not listed as required here #
Exact value (const): 2
clock-frequency — not listed as required here #
Specifies the current clock speed of the CPU in Hertz.
clocks — not listed as required here #
true — No constraints added by this property rule.
clock-names — not listed as required here #
true — No constraints added by this property rule.
cpu-supply — not listed as required here #
true — No constraints added by this property rule.
timebase-frequency — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Shared schema rule (
$ref):/schemas/types.yaml#/definitions/uint32
Rule 2
Shared schema rule (
$ref):/schemas/types.yaml#/definitions/uint64
Minimum value (minimum): 1
Specifies the current frequency at which the timebase and the decrementer registers are updated (in Hertz).
status — not listed as required here #
Shared schema rule ($ref): types.yaml#/definitions/string
Allowed values (enum): "okay", "disabled", "fail"
A standard property describing the state of a CPU. A CPU may be running ("okay"), in a quiescent state ("disabled") or be not operational or not exist ("fail").
enable-method — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string-array
Describes the method by which a CPU in a disabled state is enabled. This property is required for CPUs with a status property with a value of "disabled". The value consists of one or more strings that define the method to release this CPU. If a client program recognizes any of the methods, it may use it.
cpu-release-addr — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Shared schema rule (
$ref):/schemas/types.yaml#/definitions/uint64
Rule 2
Shared schema rule (
$ref):/schemas/types.yaml#/definitions/uint32Deprecated (
deprecated):true
This value specifies the physical address of a spin table entry that releases a secondary CPU from its spin loop.
cache-op-block-size — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Specifies the block size in bytes upon which cache block instructions operate. Required if different than the L1 cache block size.
reservation-granule-size — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Specifies the reservation granule size supported by this processor in bytes.
numa-node-id — not listed as required here #
true — No constraints added by this property rule.
mmu-type — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Specifies the CPU's MMU type.
operating-points-v2 — not listed as required here #
true — No constraints added by this property rule.
tlb-split — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
If present, specifies that the TLB has a split configuration, with separate TLBs for instructions and data. If absent, specifies that the TLB has a unified configuration. Required for a CPU with a TLB in a split configuration.
l2-cache — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Value type (
type):"object"
Rule 2
Shared schema rule (
$ref):/schemas/types.yaml#/definitions/phandleDeprecated (
deprecated):true
Properties matching a name pattern (patternProperties) #
^(i-|d-|)tlb-(size|sets)$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
At least one of these rules must match (anyOf) #
Rule 1 #
Rule 2 #
Rule 3 #
Property dependencies (dependencies) #
cpu-release-addr — applies when this property is present #
Also requires: "enable-method"
d-tlb-size — applies when this property is present #
Also requires: "tlb-split"
d-tlb-sets — applies when this property is present #
Also requires: "tlb-split"
i-tlb-size — applies when this property is present #
Also requires: "tlb-split"
i-tlb-sets — applies when this property is present #
Also requires: "tlb-split"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-clause
Line 2: Copyright (C) 2018-2019 SiFive, Inc.
Line 3:
Line 4: Description text is from the Devicetree Specification at
Line 5: https://www.devicetree.org/specifications/
Line 6: which is
Line 7: Copyright 2008,2011 Power.org, Inc.
Line 8: Copyright 2008,2011 Freescale Semiconductor, Inc.
Line 9: Copyright 2008,2011 International Business Machines Corporation
Line 10: Copyright 2016,2017 Linaro,Ltd.
Line 11: Copyright 2016,2017 Arm,Ltd.
Line 12:
Line 88: Needed for some 32-bit Arm systems