Skip to content
  • Simon Glass's avatar
    dm: Provide a function to scan child FDT nodes · 1ca7e206
    Simon Glass authored
    
    
    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: default avatarSimon Glass <sjg@chromium.org>
    1ca7e206