| 1 |
# SPDX-License-Identifier: BSD-2-Clause |
| 2 |
# Copyright 2018 Linaro Ltd. |
| 3 |
# Copyright 2018 Arm Ltd. |
| 4 |
%YAML 1.2 |
| 5 |
--- |
| 6 |
$id: http://devicetree.org/schemas/dt-core.yaml# |
| 7 |
$schema: http://devicetree.org/meta-schemas/base.yaml# |
| 8 |
|
| 9 |
title: Core Devicetree Properties |
| 10 |
|
| 11 |
description: Schema for core devicetree bindings |
| 12 |
maintainers: |
| 13 |
- Rob Herring <[email protected]> |
| 14 |
|
| 15 |
# always select the core schema |
| 16 |
select: true |
| 17 |
|
| 18 |
properties: |
| 19 |
$nodename: |
| 20 |
$ref: types.yaml#/definitions/string |
| 21 |
compatible: |
| 22 |
$ref: types.yaml#/definitions/string-array |
| 23 |
items: |
| 24 |
# Keep in sync with make_compatible_schema() |
| 25 |
pattern: "^[a-zA-Z0-9][a-zA-Z0-9,+\\-._/]+$" |
| 26 |
cpu: |
| 27 |
description: |
| 28 |
Phandles to a CPU node associated with the referring node. |
| 29 |
oneOf: |
| 30 |
- type: object |
| 31 |
- $ref: types.yaml#/definitions/phandle |
| 32 |
cpus: |
| 33 |
description: |
| 34 |
Phandles to CPU nodes associated with the referring node. |
| 35 |
oneOf: |
| 36 |
- type: object |
| 37 |
- $ref: types.yaml#/definitions/phandle-array |
| 38 |
items: |
| 39 |
maxItems: 1 |
| 40 |
label: |
| 41 |
$ref: types.yaml#/definitions/string |
| 42 |
dma-coherent: |
| 43 |
$ref: types.yaml#/definitions/flag |
| 44 |
dma-noncoherent: |
| 45 |
$ref: types.yaml#/definitions/flag |
| 46 |
firmware-name: |
| 47 |
$ref: types.yaml#/definitions/string-array |
| 48 |
description: |
| 49 |
The filename for a device's firmware file. It is typically a single |
| 50 |
entry, but some devices have multiple firmware files. It can also |
| 51 |
be just a stem name used to construct the full firmware filename(s). |
| 52 |
secure-status: |
| 53 |
$ref: types.yaml#/definitions/string |
| 54 |
enum: [ okay, disabled, reserved, fail ] |
| 55 |
status: |
| 56 |
oneOf: |
| 57 |
- type: object |
| 58 |
- $ref: types.yaml#/definitions/string |
| 59 |
enum: [ okay, disabled, reserved, fail, fail-needs-probe ] |
| 60 |
phandle: |
| 61 |
$ref: types.yaml#/definitions/uint32 |
| 62 |
|
| 63 |
patternProperties: |
| 64 |
"^#.*-cells$": |
| 65 |
$ref: types.yaml#/definitions/uint32 |
| 66 |
maximum: 8 |
| 67 |
|
| 68 |
".*-names$": |
| 69 |
$ref: types.yaml#/definitions/non-unique-string-array |
| 70 |
|
| 71 |
".*-supply$": |
| 72 |
oneOf: |
| 73 |
- type: object |
| 74 |
- $ref: types.yaml#/definitions/phandle |
| 75 |
|
| 76 |
# property and node namespace overlaps. Catch both here |
| 77 |
"^[a-zA-Z0-9][a-zA-Z0-9#,+\\-._]{0,63}$": |
| 78 |
type: [object, integer, array, boolean, 'null'] |
| 79 |
|
| 80 |
# Anything with a '@' is definitely a node |
| 81 |
"^[a-zA-Z0-9][a-zA-Z0-9,+\\-._]{0,63}@[0-9a-fA-F]+(,[0-9a-fA-F]+)*$": |
| 82 |
type: object |
| 83 |
|
| 84 |
# Anything beginnning and ending with '__' is a generated node |
| 85 |
"^__.*__$": |
| 86 |
type: object |
| 87 |
|
| 88 |
# Anything with a '#' is single cell number |
| 89 |
"^#[a-zA-Z0-9,+\\-._]{0,63}$": |
| 90 |
$ref: types.yaml#/definitions/uint32 |
| 91 |
|
| 92 |
additionalProperties: false |
| 93 |
|
| 94 |
... |