-
- Downloads
dm: Provide a function to scan child FDT nodes
At present only root nodes in the device tree are scanned for devices.
But some devices can have children. For example a SPI bus may have
several children for each of its chip selects.
Add a function which scans subnodes and binds devices for each one. This
can be used for the root node scan also, so change it.
A device can call this function in its bind() or probe() methods to bind
its children.
Signed-off-by:
Simon Glass <sjg@chromium.org>
Showing
- doc/driver-model/README.txt 5 additions, 1 deletiondoc/driver-model/README.txt
- drivers/core/root.c 18 additions, 15 deletionsdrivers/core/root.c
- include/dm/root.h 16 additions, 0 deletionsinclude/dm/root.h
- include/dm/test.h 9 additions, 0 deletionsinclude/dm/test.h
- include/dm/uclass-id.h 1 addition, 0 deletionsinclude/dm/uclass-id.h
- test/dm/Makefile 1 addition, 0 deletionstest/dm/Makefile
- test/dm/bus.c 63 additions, 0 deletionstest/dm/bus.c
- test/dm/test-fdt.c 38 additions, 25 deletionstest/dm/test-fdt.c
- test/dm/test.dts 15 additions, 1 deletiontest/dm/test.dts
Loading
Please register or sign in to comment