| 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/cpus.yaml# |
| 16 |
$schema: http://devicetree.org/meta-schemas/base.yaml# |
| 17 |
|
| 18 |
title: Common CPU Nodes 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 |
properties: |
| 33 |
$nodename: |
| 34 |
const: cpus |
| 35 |
description: |
| 36 |
A /cpus node is required for all Devicetrees. It does not represent |
| 37 |
a real device in the system, but acts as a container for child "cpu" |
| 38 |
nodes which represent the systems' CPUs. |
| 39 |
|
| 40 |
'#address-cells': |
| 41 |
minimum: 1 |
| 42 |
description: |
| 43 |
The value specifies how many cells each element of the reg property |
| 44 |
array takes in children of this node. |
| 45 |
|
| 46 |
'#size-cells': |
| 47 |
const: 0 |
| 48 |
|
| 49 |
cpu-map: |
| 50 |
$ref: /schemas/cpu-map.yaml# |
| 51 |
|
| 52 |
patternProperties: |
| 53 |
'^cpu@[0-9a-f]+$': |
| 54 |
$ref: cpu.yaml# |
| 55 |
|
| 56 |
required: |
| 57 |
- '#address-cells' |
| 58 |
- '#size-cells' |
| 59 |
|
| 60 |
additionalProperties: true |
| 61 |
|
| 62 |
... |