Skip to content

Commit 8e87d55

Browse files
decsnynashif
authored andcommitted
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 <[email protected]>
1 parent e544465 commit 8e87d55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dts/bindings/base/base.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ properties:
4646
type: phandle
4747
description: phandle to interrupt controller node
4848

49+
# description of label should be given in bindings inheriting base.yaml
50+
# label property is included here to help enforce its type being string
4951
label:
5052
type: string
51-
deprecated: true
52-
description: |
53-
Human readable string describing the device (used as device_get_binding() argument)
53+
description: No description provided for this label
5454

5555
clocks:
5656
type: phandle-array

0 commit comments

Comments
 (0)