3 ms·
> this guide doesn't cover the Devicetree APIs Is there a guide for that?
by matheusmoreira 5y ago
> this guide doesn't cover the Devicetree APIs
Is there a guide for that?
- mkipper 5y agoRead the Documentation/devicetree directory in the kernel sources and look at how a few drivers implement their documented bindings. This isn't a snarky RTFM comment. The usage model file in the kernel documentation gives good motivation for what device trees are used for and their basic structure, and the APIs to pull data from them are straightforward enough that you can probably figure them out by looking at an example.