Skip to content

Linting for DTS files #91862

Open
Open
@yishai1999

Description

@yishai1999

Problem Description

Today the zephyr Devicetree Style Guidelines (which also references the Linux Devicetree Coding Style) are not enforced in any way and many contributors and even reviewers don't know about them.

Proposed Change (Summary)

Create a DTS lint script that will be run in CI

Proposed Change (Detailed)

There should be a linting script that run for every PR that makes sure the DTS files are acceptable and match the guidelines.
The PR should be blocked until the script passes.

Dependencies

No response

Concerns and Unresolved Questions

No response

Alternatives Considered

  • Making this issue more known so that reviewers don't let bad DTS files be merged
  • Staying with the current situation where many many DTS files don't follow the guidelines.

Metadata

Metadata

Assignees

Labels

RFCRequest For Comments: want input from the communityarea: Devicetree

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions