[RFC PATCH dtc] C-based DT schema checker integrated into dtc

Arnd Bergmann arnd at arndb.de
Mon Nov 4 04:28:49 EST 2013


On Monday 04 November 2013 00:26:29 Tomasz Figa wrote:
> 
> Aha, one more thing. As it was mentioned on ARM Mini Summit, as a long 
> term goal, we will eventually have to introduce another validation tool 
> that checks device drivers against device tree bindings. We should keep 
> this in mind when considering schema design.

Incidentally I have just had an idea for a new driver-level API that
should let us do this much easier. I hope to find some time in the
next few days to come up with draft kernel patches. If you don't hear
back from me soon but want to work on validating the drivers against
the bindings, please contact me again.

The basic idea is to extend 'devres' to automatically register
all the resources (registers, irq, dma, gpio, pinctrl, clk, regulator, ...)
and simple properties before the ->probe() callback is even called,
based on a per-driver data structure that describes them, and that
can be easily parsed by an external tool.

	Arnd



More information about the linux-arm-kernel mailing list