Devicetree config generation

Petr Buchta <cz7asm@...>

Hi, I just started looking around Zephyr and coming from Linux world I really like the idea of using Devicetree for driver configuration.

I noticed, however, that config generation that enables particular low level driver must be dobe manualy using Kconfig. I know that this is the same in Linux but given the way Zephyr leverages DT I would think that, in this case, config generation based on DT could simplify things.

For example looking at led_strip driver code samples, there are projects that duplicate almost all code only to bind to a different low level driver, like samples/drivers/apa102 and samples/drivers/ws2812. They even have the same prj.conf. 
If the DT processing could provide things like mapping "enabled device compatible string" -> "LL driver CONFIG_xx parameter", then there would be no need for code duplication and all the samples utilizing same driver api could share same project.

Is this something that's been considered but abandoned for a reason?


Join to automatically receive all group messages.