Re: [PATCH] [RFC] of: Add debug aid to find unused device tree properties

From: Krzysztof Kozlowski
Date: Mon Oct 14 2024 - 03:49:25 EST


On Sun, Oct 13, 2024 at 10:07:30PM +0200, Richard Weinberger wrote:
> This is a proof-of-concept patch that introduces a debug feature I find
> particularly useful. I frequently encounter situations where I'm
> uncertain if my device tree configuration is correct or being utilized
> by the kernel. This is especially common when porting device trees
> from vendor kernels, as some properties may have slightly different
> names in the upstream kernel, or upstream drivers may not use certain
> properties at all.

In general I don't mind, but I have a comment about above rationale.
It's just wrong. The point of DT is to describe hardware, not the one
given, fixed in time implementation.

What's more, writing bindings mentions this explicit: make binding
complete, even if it is not used.

Best regards,
Krzysztof