Re: [PATCH 1/2] dt-bindings: add DTS example style checker

From: Krzysztof Kozlowski

Date: Tue Apr 21 2026 - 07:37:35 EST


On Mon, Apr 20, 2026 at 04:50:27PM +0100, Daniel Golle wrote:
> Add a Python script that enforces coding style rules from
> dts-coding-style.rst on examples embedded in YAML binding files.
>
> Checks indentation, property and child node ordering, blank line
> placement, node naming, tabs, trailing whitespace and unused labels.
> Produces a canonical form and diffs it against the original.

Thanks for working on this, I like it a lot.

I would be happy to see at least a few test cases for it - bad and good
binding examples here - so development will be easier.

Best regards,
Krzysztof