dts: bindings: base: Undeprecate label

Label property is described in DT spec and does not need to be
deprecated in base.yaml anymore. It was originally deprecated to
discourage what was previously the most common use case of labels in
zephyr which was the old device_get_binding, which was rightfully
removed. However, labels do have a purpose as described in DT spec of
providing a human readable string to software to describe the device,
which there is some use for.

The description of a label should be given in the device binding, as
stated in DT spec.

Label properties should be of type string.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2024-11-04 11:47:00 -06:00 committed by Anas Nashif
parent e544465cd6
commit 8e87d55473

View file

@ -46,11 +46,11 @@ properties:
type: phandle
description: phandle to interrupt controller node
# description of label should be given in bindings inheriting base.yaml
# label property is included here to help enforce its type being string
label:
type: string
deprecated: true
description: |
Human readable string describing the device (used as device_get_binding() argument)
description: No description provided for this label
clocks:
type: phandle-array