Skip to content
  • Maxime Ripard's avatar
    dtc: add ability to make nodes conditional on them being referenced · 5ed2dc56
    Maxime Ripard authored and Simon Glass's avatar Simon Glass committed
    This is needed when importing mainline DTs into U-Boot, as some started
    using this /omit-if-no-ref/ tag, so won't compile with U-Boot's current
    dtc copy. This is just a cherry-pick of the patch introducing this
    feature.
    Original commit message from Maxime:
    ------------------
    A number of platforms have a need to reduce the number of DT nodes,
    mostly because of two similar constraints: the size of the DT blob, and
    the time it takes to parse it.
    
    As the DT is used in more and more SoCs, and by more projects, some
    constraints start to appear in bootloaders running from SRAM with an
    order of magnitude of 10kB. A typical DT is in the same order of
    magnitude, so any effort to reduce the blob size is welcome in such an
    environment.
    
    Some platforms also want to reach very fast boot time, and the time it
    takes to parse a typical DT starts to be noticeable.
    
    Both of these issues can be mitigated by reducing the number of nodes in
    the DT. The biggest...
    5ed2dc56