Skip to content

Codify array values syntax #66

Open
@konradybcio

Description

@konradybcio

Currently dtc happily eats both:

val = <0 1 2 3 4 5 6 7>;

in the same way as:

val = <0 1>, <2 3>, <4 5>, <6 7>;

so long as the -cells values match.

Requiring the second format (one entry per <...>) would allow to dynamically derive -cells values and reduce boilerplate (by e.g. defaulting to #address-cells == #size-cells == <2> when ARRAY_SIZE(reg) is a multiple of 4 etc., while still allowing to manually override it where it's not obvious.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions