October 2017
Intermediate to advanced
586 pages
14h 8m
English
When the driver expects a list of resources of a certain type, you have no guarantee the list is ordered in a manner the driver expects, since the guy who writes the board-level device tree is usually not the one that wrote the driver. A driver may expect, for example, its device node with two IRQ lines, one for the Tx event at index 0, the other for Rx at index 1. What happens if the order is not respected? The driver will have unwanted behavior. To avoid such mismatches, the concept of named resources (clock, irq, dma, reg) has been introduced. It consists of defining our resource list and naming them, so that whatever their indexes are, a given name will always match the resource.
The corresponding properties ...