Skip to content

Commit

Permalink
schemas: Add singular "cpu" property
Browse files Browse the repository at this point in the history
Add a "cpu" property as the singular form of "cpus" property. Like
"cpus", we need to allow for node names as well.

Signed-off-by: Rob Herring <robh@kernel.org>
  • Loading branch information
robherring committed Sep 19, 2023
1 parent 033d0b1 commit 5e5e659
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dtschema/schemas/dt-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ properties:
items:
# Keep in sync with make_compatible_schema()
pattern: "^[a-zA-Z0-9][a-zA-Z0-9,+\\-._/]+$"
cpu:
description:
Phandles to a CPU node associated with the referring node.
oneOf:
- type: object
- $ref: types.yaml#/definitions/phandle
cpus:
description:
Phandles to CPU nodes associated with the referring node.
Expand Down

0 comments on commit 5e5e659

Please sign in to comment.