Skip to content

Commit ad22d34

Browse files
dottspinakartben
authored andcommitted
edtlib: amend Node.props API documentation
Node properties are not created for all properties defined by the node's binding (Binding.prop2specs), only for those that actually have a value. Signed-off-by: Christophe Dufaza <[email protected]>
1 parent c6e3de2 commit ad22d34

File tree

1 file changed

+3
-2
lines changed
  • scripts/dts/python-devicetree/src/devicetree

1 file changed

+3
-2
lines changed

scripts/dts/python-devicetree/src/devicetree/edtlib.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -962,8 +962,9 @@ class Node:
962962
963963
props:
964964
A dict that maps property names to Property objects.
965-
Property objects are created for all devicetree properties on the node
966-
that are mentioned in 'properties:' in the binding.
965+
Property objects are created for the devicetree properties
966+
defined by the node's binding and that have a default value
967+
or for which a value is set in the DTS.
967968
968969
aliases:
969970
A list of aliases for the node. This is fetched from the /aliases node.

0 commit comments

Comments
 (0)