Skip to content

Fix: Increase MAX_NODE_NAME_LEN to align with device tree specification#18

Open
oswin5656 wants to merge 1 commit intors-embedded:masterfrom
oswin5656:fix-node-name-length
Open

Fix: Increase MAX_NODE_NAME_LEN to align with device tree specification#18
oswin5656 wants to merge 1 commit intors-embedded:masterfrom
oswin5656:fix-node-name-length

Conversation

@oswin5656
Copy link
Copy Markdown

The device tree specification at https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#node-names says the following:

Each node in the devicetree is named according to the following convention:

    node-name@unit-address

The node-name component specifies the name of the node. It shall be 1 to 31 characters

...

The unit-address must match the first address specified in the reg property of the node.

To support up to a 64-bit address as part of the node name, the MAX_NODE_NAME_LEN constant has been increased from 31 characters to 48 characters.

The device tree specification at https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#node-names
says the following:

    Each node in the devicetree is named according to the following convention:

        node-name@unit-address

    The node-name component specifies the name of the node. It shall be 1 to 31 characters

    ...

    The unit-address must match the first address specified in the reg property of the node.

To support up to a 64-bit address as part of the node name, the MAX_NODE_NAME_LEN constant
has been increased from 31 characters to 48 characters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant